Documentation ¶
Index ¶
- func Contain(keys []netlink.TcU32Key, subKeys []netlink.TcU32Key) bool
- func FilterBySrcIP(link netlink.Link, parent uint32, ipNet *net.IPNet) (*netlink.U32, error)
- func MatchSrc(u32 *netlink.U32, ipNet *net.IPNet)
- func SetRule(dev netlink.Link, rule *TrafficShapingRule) error
- func U32IPv4Src(ipNet *net.IPNet) netlink.TcU32Key
- func U32IPv6Src(ipNet *net.IPNet) []netlink.TcU32Key
- func U32MatchSrc(ipNet *net.IPNet) []netlink.TcU32Key
- type TrafficShapingRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterBySrcIP ¶ added in v1.3.0
FilterBySrcIP found u32 filter by pod ip used for prio only
Types ¶
type TrafficShapingRule ¶ added in v1.1.0
type TrafficShapingRule struct { // rate in bytes Rate uint64 }
TrafficShapingRule the interface traffic shaping rule
Click to show internal directories.
Click to hide internal directories.