package
0.2.8
Repository: https://github.com/spidernet-io/cni-plugins.git
Documentation: pkg.go.dev

# Functions

AddFromRuleTable add route rule for calico/cilium cidr(ipv4 and ipv6) Equivalent to: `ip rule add from <cidr> `.
No description provided by the author
AddStaticNeighTable fix the problem of communication failure between pods and hosts by adding neigh table on pod and host.
AddToRuleTable.
CheckInterfaceMiss returns true by checking if the veth0 exists in the container.
No description provided by the author
GetChainedInterfaceIps return all ip addresses on the NIC of a given netns, including ipv4 and ipv6.
GetDefaultRouteInterface return last interface from given iface.
GetHostIps return all ip addresses on the node, filter by ipFamily skipping any interfaces whose name matches any of the exclusion list regexes.
No description provided by the author
GetRuleNumber return the number of rule table corresponding to the previous interface from the given interface.
HijackCustomSubnet set ip rule : to Subnet table $routeTable if first macvlan interface, move service/pod subnet route to table 100: ip rule add from all to service/pod look table 100 else only move custom route to table <ruleTable>: ip rule add from all to <custom_subnet> look table <ruletable>.
MigrateRoute make sure that the reply packets accessing the overlay interface are still sent from the overlay interface.
NeighborAdd add static neighborhood tales.
OverwriteMacAddress overwrite mac-address.
RouteAdd add route tables from given ips and iface Equivalent: ip route add <dst> device <iface>.
No description provided by the author
SysctlRPFilter set rp_filter value.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author