Documentation
¶
Index ¶
- Constants
- func AddFilter(idx, fd int) error
- func AttachLink(idx, fd int) error
- func ConvertToIP(ipStr string) net.IP
- func ConvertToIPStrs(ips []net.IP) []string
- func ConvertToIPs(ipStrs []string) ([]net.IP, error)
- func DelFilter(idx int) error
- func DetachLink(idx int) error
- func GetUint16(b []byte) uint16
- func GetUint32(b []byte) uint32
- func GetUint64(b []byte) uint64
- func GetUptime() (uint64, error)
- func IsLittleEndian() bool
- func JoinIP(ip, parentIP string) string
- func PutBeAddr(b []byte, proto SockProto, ip net.IP, port uint16)
- func PutSession(se *Session)
- func PutUint16(b []byte, v uint16)
- func PutUint32(b []byte, v uint32)
- func PutUint64(b []byte, v uint64)
- func SplitIP(ip string) (string, string)
- func StrToMac(macStr string) net.HardwareAddr
- type AfType
- type BpfMode
- type ConnKey
- type ConnVal
- type Service
- type Session
- type SockProto
- type SrvKey
- type SrvVal
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AttachLink ¶
func ConvertToIP ¶
func ConvertToIPStrs ¶
func DetachLink ¶
func IsLittleEndian ¶
func IsLittleEndian() bool
func PutSession ¶
func PutSession(se *Session)
func StrToMac ¶
func StrToMac(macStr string) net.HardwareAddr
Types ¶
type ConnKey ¶
type ConnVal ¶
type Session ¶
type Session struct {
CIP string
CPort uint16
VIP string
VPort uint16
LIP string
LPort uint16
RIP string
RPort uint16
Proto SockProto
IsLocal bool
}
func GetSession ¶
func GetSession() *Session
Click to show internal directories.
Click to hide internal directories.