Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPToUint ¶
IPToUint converts an IP address to a uint32 for BPF map operations. On little-endian hosts (x86_64), this produces the same byte representation that the BPF program sees when reading ip->saddr/ip->daddr as __u32.
func MaskToUint ¶
MaskToUint converts a netmask to a uint32 for BPF map operations.
func ToHostBytes32 ¶
func ToNetBytes16 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.