Documentation
¶
Overview ¶
handle provides utility functions to configure interface BPF handles.
gre/packet provides a function to GRE encapsulate existing packets.
handle provides utility functions to configure interface BPF handles.
Index ¶
- func EncapsulatePacket(packet []byte, key uint32) gopacket.Packet
- func GetLanPacketHandle(writeHandle *pcap.Handle) func(packet gopacket.Packet)
- func GetStartHandler(LanBPFFilter string, TapBPFFilter string, runLan chan bool, runTap chan bool, ...) func(http.ResponseWriter, *http.Request)
- func GetStopHandler(runTap chan bool, runLan chan bool, quitLan chan bool, quitTap chan bool) func(http.ResponseWriter, *http.Request)
- func GetTapPacketHandle(writeHandle *pcap.Handle, writeIface *net.Interface) func(packet gopacket.Packet)
- func PktSourceHandle(tapSrc gopacket.PacketDataSource, run chan bool, quit chan bool, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncapsulatePacket ¶
Build an new packet that encapsulates the existing packet with GRE header.
func GetLanPacketHandle ¶
func GetStartHandler ¶
func GetStopHandler ¶
func GetTapPacketHandle ¶
func PktSourceHandle ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.