Documentation
¶
Index ¶
- Constants
- func AddClsactQdisc(attachTo string) (*netlink.GenericQdisc, error)
- func Close(ebpfProg *tc_programObjects, qdisc *netlink.GenericQdisc, ...) error
- func InitializeTCProgram() (*tc_programObjects, error)
- func PrepareAnalyzingIngressPackets(nwInterface string, objs *tc_programObjects) (*netlink.BpfFilter, error)
- func PrepareDropingRSTPacket(nwInterface string, objs *tc_programObjects) (*netlink.BpfFilter, error)
- type AnalyzedPackets
Constants ¶
View Source
const ( // ebpfプログラム側と合わせること。ただ、現状のWSL2だと同一mapに複数のkey指定できない?みたいだった SUM_COUNT_KEY = uint32(0) )
Variables ¶
This section is empty.
Functions ¶
func AddClsactQdisc ¶
func AddClsactQdisc(attachTo string) (*netlink.GenericQdisc, error)
func Close ¶
func Close(ebpfProg *tc_programObjects, qdisc *netlink.GenericQdisc, filters ...*netlink.BpfFilter) error
TODO: err即returnではなくすべての処理してからerr返すようにしたほうがいいかも
func InitializeTCProgram ¶
func InitializeTCProgram() (*tc_programObjects, error)
Types ¶
type AnalyzedPackets ¶
type AnalyzedPackets struct {
Sum uint64
}
func GetAnalyzedPackets ¶
func GetAnalyzedPackets(analysisMap *ebpf.Map) (*AnalyzedPackets, error)
Click to show internal directories.
Click to hide internal directories.