SYMBOL INDEX (646 symbols across 79 files) FILE: main.go type flagSlice (line 61) | type flagSlice method String (line 63) | func (t *flagSlice) String() string { method Set (line 67) | func (t *flagSlice) Set(val string) error { type CmdLineOpts (line 72) | type CmdLineOpts struct function init (line 110) | func init() { function copyFlag (line 166) | func copyFlag(name string) { function usage (line 170) | func usage() { function newSubnetManager (line 176) | func newSubnetManager(ctx context.Context) (subnet.Manager, error) { function main (line 203) | func main() { function shutdownHandler (line 499) | func shutdownHandler(ctx context.Context, sigs chan os.Signal, cancel co... function getConfig (line 514) | func getConfig(ctx context.Context, sm subnet.Manager) (*subnet.Config, ... function mustRunHealthz (line 535) | func mustRunHealthz(stopChan <-chan struct{}, wg *sync.WaitGroup) { function ReadCIDRFromSubnetFile (line 574) | func ReadCIDRFromSubnetFile(path string, CIDRKey string) ip.IP4Net { function ReadCIDRsFromSubnetFile (line 587) | func ReadCIDRsFromSubnetFile(path string, CIDRKey string) []ip.IP4Net { function ReadIP6CIDRFromSubnetFile (line 609) | func ReadIP6CIDRFromSubnetFile(path string, CIDRKey string) ip.IP6Net { function ReadIP6CIDRsFromSubnetFile (line 622) | func ReadIP6CIDRsFromSubnetFile(path string, CIDRKey string) []ip.IP6Net { function newTrafficManager (line 644) | func newTrafficManager(useNftables bool) trafficmngr.TrafficManager { FILE: pkg/backend/alloc/alloc.go function init (line 28) | func init() { type AllocBackend (line 32) | type AllocBackend struct method RegisterNetwork (line 45) | func (be *AllocBackend) RegisterNetwork(ctx context.Context, wg *sync.... function New (line 37) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... FILE: pkg/backend/common.go type ExternalInterface (line 26) | type ExternalInterface struct type Backend (line 39) | type Backend interface type Network (line 44) | type Network interface type BackendCtor (line 50) | type BackendCtor FILE: pkg/backend/extension/extension.go function init (line 34) | func init() { type ExtensionBackend (line 38) | type ExtensionBackend struct method Run (line 54) | func (*ExtensionBackend) Run(ctx context.Context) { method RegisterNetwork (line 58) | func (be *ExtensionBackend) RegisterNetwork(ctx context.Context, wg *s... function New (line 44) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... function runCmd (line 144) | func runCmd(env []string, stdin string, name string, arg ...string) (str... FILE: pkg/backend/extension/extension_network.go type network (line 29) | type network struct method Lease (line 39) | func (n *network) Lease() *lease.Lease { method MTU (line 43) | func (n *network) MTU() int { method Run (line 47) | func (n *network) Run(ctx context.Context) { method handleSubnetEvents (line 70) | func (n *network) handleSubnetEvents(batch []lease.Event) { FILE: pkg/backend/hostgw/hostgw.go function init (line 32) | func init() { type HostgwBackend (line 36) | type HostgwBackend struct method RegisterNetwork (line 53) | func (be *HostgwBackend) RegisterNetwork(ctx context.Context, wg *sync... function New (line 41) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... FILE: pkg/backend/hostgw/hostgw_windows.go function init (line 36) | func init() { type HostgwBackend (line 40) | type HostgwBackend struct method RegisterNetwork (line 58) | func (be *HostgwBackend) RegisterNetwork(ctx context.Context, wg *sync... function New (line 45) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... FILE: pkg/backend/ipip/ipip.go constant backendType (line 36) | backendType = "ipip" constant tunnelName (line 37) | tunnelName = "flannel.ipip" function init (line 40) | func init() { type IPIPBackend (line 44) | type IPIPBackend struct method RegisterNetwork (line 57) | func (be *IPIPBackend) RegisterNetwork(ctx context.Context, wg *sync.W... method configureIPIPDevice (line 128) | func (be *IPIPBackend) configureIPIPDevice(lease *lease.Lease, flannel... function New (line 49) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... FILE: pkg/backend/ipsec/handle_charon.go type Uri (line 35) | type Uri struct type CharonIKEDaemon (line 39) | type CharonIKEDaemon struct method getClient (line 81) | func (charon *CharonIKEDaemon) getClient(wait bool) (client *goStrongs... method run (line 105) | func (charon *CharonIKEDaemon) run(execPath string) (cmd *exec.Cmd, er... method LoadSharedKey (line 118) | func (charon *CharonIKEDaemon) LoadSharedKey(remotePublicIP, password ... method LoadConnection (line 155) | func (charon *CharonIKEDaemon) LoadConnection(localLease, remoteLease ... method UnloadCharonConnection (line 222) | func (charon *CharonIKEDaemon) UnloadCharonConnection(localLease, function NewCharonIKEDaemon (line 45) | func NewCharonIKEDaemon(ctx context.Context, wg *sync.WaitGroup, espProp... function formatConnectionName (line 250) | func formatConnectionName(localLease, remoteLease *lease.Lease) string { function formatChildSAConfName (line 255) | func formatChildSAConfName(localLease, remoteLease *lease.Lease) string { function findExecPath (line 259) | func findExecPath() (string, error) { FILE: pkg/backend/ipsec/handle_xfrm.go function AddXFRMPolicy (line 30) | func AddXFRMPolicy(myLease, remoteLease *lease.Lease, dir netlink.Dir, r... function DeleteXFRMPolicy (line 72) | func DeleteXFRMPolicy(localSubnet, remoteSubnet *net.IPNet, localPublicI... FILE: pkg/backend/ipsec/ipsec.go constant defaultESPProposal (line 50) | defaultESPProposal = "aes128gcm16-sha256-prfsha256-ecp256" constant minPasswordLength (line 51) | minPasswordLength = 96 function init (line 54) | func init() { type IPSECBackend (line 58) | type IPSECBackend struct method RegisterNetwork (line 73) | func (be *IPSECBackend) RegisterNetwork( function New (line 63) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) ( FILE: pkg/backend/ipsec/ipsec_network.go constant ipsecOverhead (line 44) | ipsecOverhead = 77 constant udpEncapOverhead (line 45) | udpEncapOverhead = 8 constant defaultReqID (line 47) | defaultReqID = 11 type network (line 50) | type network struct method Run (line 75) | func (n *network) Run(ctx context.Context) { method handleSubnetEvents (line 108) | func (n *network) handleSubnetEvents(batch []lease.Event) { method MTU (line 162) | func (n *network) MTU() int { method AddIPSECPolicies (line 171) | func (n *network) AddIPSECPolicies(remoteLease *lease.Lease, reqID int... method DeleteIPSECPolicies (line 190) | func (n *network) DeleteIPSECPolicies(localSubnet, remoteSubnet *net.I... function newNetwork (line 58) | func newNetwork(sm subnet.Manager, extIface *backend.ExternalInterface, FILE: pkg/backend/manager.go type Manager (line 28) | type Manager interface type manager (line 32) | type manager struct method GetBackend (line 50) | func (bm *manager) GetBackend(backendType string) (Backend, error) { function NewManager (line 41) | func NewManager(ctx context.Context, sm subnet.Manager, extIface *Extern... function Register (line 91) | func Register(name string, ctor BackendCtor) { FILE: pkg/backend/route_network.go constant routeCheckRetries (line 34) | routeCheckRetries = 10 type RouteNetwork (line 37) | type RouteNetwork struct method MTU (line 49) | func (n *RouteNetwork) MTU() int { method Run (line 53) | func (n *RouteNetwork) Run(ctx context.Context) { method handleSubnetEvents (line 83) | func (n *RouteNetwork) handleSubnetEvents(batch []lease.Event) { method addToRouteList (line 177) | func (n *RouteNetwork) addToRouteList(route netlink.Route) { method addToV6RouteList (line 181) | func (n *RouteNetwork) addToV6RouteList(route netlink.Route) { method removeFromV4RouteList (line 194) | func (n *RouteNetwork) removeFromV4RouteList(route netlink.Route) { method removeFromV6RouteList (line 198) | func (n *RouteNetwork) removeFromV6RouteList(route netlink.Route) { method removeFromRouteList (line 202) | func (n *RouteNetwork) removeFromRouteList(route *netlink.Route, route... method routeCheck (line 212) | func (n *RouteNetwork) routeCheck(ctx context.Context) { method checkSubnetExistInV4Routes (line 224) | func (n *RouteNetwork) checkSubnetExistInV4Routes() { method checkSubnetExistInV6Routes (line 228) | func (n *RouteNetwork) checkSubnetExistInV6Routes() { method checkSubnetExistInRoutes (line 232) | func (n *RouteNetwork) checkSubnetExistInRoutes(routes []netlink.Route... function routeAdd (line 142) | func routeAdd(route *netlink.Route, ipFamily int, addToRouteList, remove... function addToRouteList (line 185) | func addToRouteList(route *netlink.Route, routes []netlink.Route) []netl... function routeEqual (line 263) | func routeEqual(x, y netlink.Route) bool { FILE: pkg/backend/route_network_test.go function TestRouteCache (line 29) | func TestRouteCache(t *testing.T) { function TestV6RouteCache (line 81) | func TestV6RouteCache(t *testing.T) { FILE: pkg/backend/route_network_windows.go constant routeCheckRetries (line 30) | routeCheckRetries = 10 type RouteNetwork (line 33) | type RouteNetwork struct method MTU (line 44) | func (n *RouteNetwork) MTU() int { method Run (line 48) | func (n *RouteNetwork) Run(ctx context.Context) { method handleSubnetEvents (line 80) | func (n *RouteNetwork) handleSubnetEvents(batch []lease.Event) { method addToRouteList (line 144) | func (n *RouteNetwork) addToRouteList(newRoute *routing.Route) { method removeFromRouteList (line 154) | func (n *RouteNetwork) removeFromRouteList(oldRoute *routing.Route) { method routeCheck (line 163) | func (n *RouteNetwork) routeCheck(ctx context.Context) { method checkSubnetExistInRoutes (line 174) | func (n *RouteNetwork) checkSubnetExistInRoutes() { FILE: pkg/backend/simple_network.go type SimpleNetwork (line 23) | type SimpleNetwork struct method Lease (line 28) | func (n *SimpleNetwork) Lease() *lease.Lease { method MTU (line 32) | func (n *SimpleNetwork) MTU() int { method Run (line 36) | func (*SimpleNetwork) Run(ctx context.Context) { FILE: pkg/backend/tencentvpc/tencentvpc.go function init (line 38) | func init() { type TencentVpcBackend (line 42) | type TencentVpcBackend struct method RegisterNetwork (line 96) | func (be *TencentVpcBackend) RegisterNetwork(ctx context.Context, wg *... function New (line 47) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... function get_vm_metadata (line 55) | func get_vm_metadata(url string) (string, error) { function get_vm_region (line 73) | func get_vm_region() (string, error) { function get_vm_vpcid (line 78) | func get_vm_vpcid() (string, error) { FILE: pkg/backend/udp/cproxy_amd64.go function runCProxy (line 31) | func runCProxy(tun *os.File, conn *net.UDPConn, ctl *os.File, tunIP ip.I... function writeCommand (line 59) | func writeCommand(f *os.File, cmd *C.command) { function setRoute (line 69) | func setRoute(ctl *os.File, dst ip.IP4Net, nextHopIP ip.IP4, nextHopPort... function removeRoute (line 81) | func removeRoute(ctl *os.File, dst ip.IP4Net) { function stopProxy (line 91) | func stopProxy(ctl *os.File) { FILE: pkg/backend/udp/proxy_amd64.c type ip_net (line 35) | struct ip_net { type route_entry (line 40) | struct route_entry { type icmp_pkt (line 45) | typedef struct icmp_pkt { type route_entry (line 56) | struct route_entry function in_addr_t (line 65) | static inline in_addr_t netmask(int prefix_len) { function contains (line 69) | static inline int contains(struct ip_net net, in_addr_t ip) { function log_error (line 73) | static void log_error(const char *fmt, ...) { function cksum (line 84) | static uint16_t cksum(aliasing_uint32_t *buf, int len) { function send_net_unreachable (line 105) | static void send_net_unreachable(int tun, char *offender) { function set_route (line 164) | static int set_route(struct ip_net dst, struct sockaddr_in *next_hop) { function del_route (line 191) | static int del_route(struct ip_net dst) { type sockaddr_in (line 205) | struct sockaddr_in type route_entry (line 212) | struct route_entry type in_addr (line 225) | struct in_addr function tun_recv_packet (line 234) | static ssize_t tun_recv_packet(int tun, char *buf, size_t buflen) { function sock_recv_packet (line 250) | static ssize_t sock_recv_packet(int sock, char *buf, size_t buflen) { function sock_send_packet (line 266) | static void sock_send_packet(int sock, char *pkt, size_t pktlen, struct ... function tun_send_packet (line 280) | static void tun_send_packet(int tun, char *pkt, size_t pktlen) { function decrement_ttl (line 297) | inline static int decrement_ttl(struct iphdr *iph) { function tun_to_udp (line 316) | static int tun_to_udp(int tun, int sock, char *buf, size_t buflen) { function udp_to_tun (line 344) | static int udp_to_tun(int sock, int tun, char *buf, size_t buflen) { function process_cmd (line 365) | static void process_cmd(int ctl) { type PFD (line 398) | enum PFD { function run_proxy (line 405) | void run_proxy(int tun, int sock, int ctl, in_addr_t tun_ip, size_t tun_... FILE: pkg/backend/udp/proxy_amd64.h type command (line 31) | typedef struct command { FILE: pkg/backend/udp/udp.go function init (line 26) | func init() { function New (line 30) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... FILE: pkg/backend/udp/udp_amd64.go function init (line 31) | func init() { constant defaultPort (line 36) | defaultPort = 8285 type UdpBackend (line 39) | type UdpBackend struct method RegisterNetwork (line 52) | func (be *UdpBackend) RegisterNetwork(ctx context.Context, wg *sync.Wa... function New (line 44) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... FILE: pkg/backend/udp/udp_network.go function newNetwork (line 28) | func newNetwork(sm subnet.Manager, extIface *backend.ExternalInterface, ... FILE: pkg/backend/udp/udp_network_amd64.go constant encapOverhead (line 37) | encapOverhead = 28 type network (line 40) | type network struct method Run (line 81) | func (n *network) Run(ctx context.Context) { method MTU (line 132) | func (n *network) MTU() int { method initTun (line 147) | func (n *network) initTun() error { method processSubnetEvents (line 201) | func (n *network) processSubnetEvents(batch []lease.Event) { function newNetwork (line 51) | func newNetwork(sm subnet.Manager, extIface *backend.ExternalInterface, ... function newCtlSockets (line 136) | func newCtlSockets() (*os.File, *os.File, error) { function configureIface (line 160) | func configureIface(ifname string, ipn ip.IP4Net, mtu int) error { FILE: pkg/backend/vxlan/device.go type vxlanDeviceAttrs (line 32) | type vxlanDeviceAttrs struct type vxlanDevice (line 44) | type vxlanDevice struct method Configure (line 129) | func (dev *vxlanDevice) Configure(ipa ip.IP4Net, flannelnet ip.IP4Net)... method ConfigureIPv6 (line 152) | func (dev *vxlanDevice) ConfigureIPv6(ipn ip.IP6Net, flannelnet ip.IP6... method MACAddr (line 175) | func (dev *vxlanDevice) MACAddr() net.HardwareAddr { method AddFDB (line 185) | func (dev *vxlanDevice) AddFDB(n neighbor) error { method AddV6FDB (line 197) | func (dev *vxlanDevice) AddV6FDB(n neighbor) error { method DelFDB (line 209) | func (dev *vxlanDevice) DelFDB(n neighbor) error { method DelV6FDB (line 220) | func (dev *vxlanDevice) DelV6FDB(n neighbor) error { method AddARP (line 231) | func (dev *vxlanDevice) AddARP(n neighbor) error { method AddV6ARP (line 242) | func (dev *vxlanDevice) AddV6ARP(n neighbor) error { method DelARP (line 253) | func (dev *vxlanDevice) DelARP(n neighbor) error { method DelV6ARP (line 264) | func (dev *vxlanDevice) DelV6ARP(n neighbor) error { function newVXLANDevice (line 49) | func newVXLANDevice(devAttrs *vxlanDeviceAttrs) (*vxlanDevice, error) { function ensureLink (line 85) | func ensureLink(vxlan *netlink.Vxlan) (*netlink.Vxlan, error) { type neighbor (line 179) | type neighbor struct function vxlanLinksIncompat (line 275) | func vxlanLinksIncompat(l1, l2 netlink.Link) string { FILE: pkg/backend/vxlan/device_windows.go type vxlanDeviceAttrs (line 32) | type vxlanDeviceAttrs struct type vxlanDevice (line 40) | type vxlanDevice struct type NetAdapterNameSettings (line 46) | type NetAdapterNameSettings struct function newVXLANDevice (line 50) | func newVXLANDevice(ctx context.Context, devAttrs *vxlanDeviceAttrs) (*v... function ensureNetwork (line 104) | func ensureNetwork(ctx context.Context, expectedNetwork *hcn.HostCompute... function getManagementIP (line 183) | func getManagementIP(network *hcn.HostComputeNetwork) string { function createSubnet (line 197) | func createSubnet(AddressPrefix string, NextHop string, DestPrefix strin... function addNetAdapterName (line 210) | func addNetAdapterName(network *hcn.HostComputeNetwork, netAdapterName s... function checkHostNetworkReady (line 231) | func checkHostNetworkReady(ctx context.Context, network *hcn.HostCompute... FILE: pkg/backend/vxlan/vxlan.go function init (line 70) | func init() { constant defaultVNI (line 75) | defaultVNI = 1 type VXLANBackend (line 78) | type VXLANBackend struct method RegisterNetwork (line 122) | func (be *VXLANBackend) RegisterNetwork(ctx context.Context, wg *sync.... function New (line 83) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... function newSubnetAttrs (line 92) | func newSubnetAttrs(publicIP net.IP, publicIPv6 net.IP, vnid uint32, dev... type VXLANConfig (line 159) | type VXLANConfig struct function parseVXLANConfig (line 168) | func parseVXLANConfig(config json.RawMessage, defaultMTU int) (VXLANConf... function createVXLANDevice (line 182) | func createVXLANDevice(ctx context.Context, function configureDeviceIPv4IPv6 (line 252) | func configureDeviceIPv4IPv6(dev *vxlanDevice, v6Dev *vxlanDevice, lease... type hardwareAddr (line 277) | type hardwareAddr method MarshalJSON (line 279) | func (hw hardwareAddr) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 283) | func (hw *hardwareAddr) UnmarshalJSON(bytes []byte) error { FILE: pkg/backend/vxlan/vxlan_network.go type network (line 38) | type network struct method Run (line 65) | func (nw *network) Run(ctx context.Context) { method watchVXLANDevice (line 114) | func (nw *network) watchVXLANDevice(ctx context.Context, vxlanMissingC... method reCreateVxlan (line 154) | func (nw *network) reCreateVxlan(ctx context.Context) error { method MTU (line 251) | func (nw *network) MTU() int { method handleSubnetEvents (line 260) | func (nw *network) handleSubnetEvents(batch []lease.Event) { constant encapOverhead (line 47) | encapOverhead = 50 function newNetwork (line 50) | func newNetwork(subnetMgr subnet.Manager, extIface *backend.ExternalInte... function retryAfterBackoff (line 238) | func retryAfterBackoff(backoff *time.Duration, maxBackoff time.Duration) { function minDuration (line 244) | func minDuration(a, b time.Duration) time.Duration { type vxlanLeaseAttrs (line 255) | type vxlanLeaseAttrs struct FILE: pkg/backend/vxlan/vxlan_network_windows.go type network (line 32) | type network struct method Run (line 60) | func (nw *network) Run(ctx context.Context) { method MTU (line 86) | func (nw *network) MTU() int { method handleSubnetEvents (line 90) | func (nw *network) handleSubnetEvents(batch []lease.Event) { type vxlanLeaseAttrs (line 38) | type vxlanLeaseAttrs struct constant encapOverhead (line 44) | encapOverhead = 50 function newNetwork (line 47) | func newNetwork(subnetMgr subnet.Manager, extIface *backend.ExternalInte... FILE: pkg/backend/vxlan/vxlan_windows.go function init (line 43) | func init() { constant defaultVNI (line 48) | defaultVNI = 4096 constant vxlanPort (line 49) | vxlanPort = 4789 type VXLANBackend (line 52) | type VXLANBackend struct method RegisterNetwork (line 87) | func (be *VXLANBackend) RegisterNetwork(ctx context.Context, wg *sync.... function New (line 57) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... function newSubnetAttrs (line 66) | func newSubnetAttrs(publicIP net.IP, vnid uint16, mac net.HardwareAddr) ... type hardwareAddr (line 209) | type hardwareAddr method MarshalJSON (line 211) | func (hw hardwareAddr) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 215) | func (hw *hardwareAddr) UnmarshalJSON(bytes []byte) error { FILE: pkg/backend/wireguard/device.go type wgDeviceAttrs (line 37) | type wgDeviceAttrs struct method setupKeys (line 82) | func (devAttrs *wgDeviceAttrs) setupKeys(psk string) error { type wgDevice (line 47) | type wgDevice struct method remove (line 216) | func (dev *wgDevice) remove() error { method upAndAddRoute (line 224) | func (dev *wgDevice) upAndAddRoute(dst *net.IPNet) error { method addRoute (line 237) | func (dev *wgDevice) addRoute(dst *net.IPNet) error { method Configure (line 252) | func (dev *wgDevice) Configure(devIP ip.IP4, flannelnet ip.IP4Net) err... method ConfigureV6 (line 266) | func (dev *wgDevice) ConfigureV6(devIP *ip.IP6, flannelnet ip.IP6Net) ... method addPeer (line 280) | func (dev *wgDevice) addPeer(publicEndpoint string, peerPublicKeyRaw s... method removePeer (line 325) | func (dev *wgDevice) removePeer(peerPublicKeyRaw string) error { function writePrivateKey (line 52) | func writePrivateKey(path string, content string) error { function newWGDevice (line 129) | func newWGDevice(devAttrs *wgDeviceAttrs, ctx context.Context, wg *sync.... function ensureLink (line 186) | func ensureLink(wglan *netlink.GenericLink) (*netlink.GenericLink, error) { FILE: pkg/backend/wireguard/wireguard.go type Mode (line 33) | type Mode constant Separate (line 36) | Separate Mode = "separate" constant Auto (line 37) | Auto Mode = "auto" constant Ipv4 (line 38) | Ipv4 Mode = "ipv4" constant Ipv6 (line 39) | Ipv6 Mode = "ipv6" function init (line 42) | func init() { type WireguardBackend (line 46) | type WireguardBackend struct method RegisterNetwork (line 113) | func (be *WireguardBackend) RegisterNetwork(ctx context.Context, wg *s... function New (line 51) | func New(sm subnet.Manager, extIface *backend.ExternalInterface) (backen... function newSubnetAttrs (line 60) | func newSubnetAttrs(publicIP net.IP, publicIPv6 net.IP, enableIPv4, enab... function createWGDev (line 99) | func createWGDev(ctx context.Context, wg *sync.WaitGroup, name string, p... FILE: pkg/backend/wireguard/wireguard_network.go constant overhead (line 43) | overhead = 80 type network (line 46) | type network struct method Lease (line 70) | func (n *network) Lease() *lease.Lease { method MTU (line 74) | func (n *network) MTU() int { method Run (line 78) | func (n *network) Run(ctx context.Context) { method selectMode (line 118) | func (n *network) selectMode(ip4 ip.IP4, ip6 *ip.IP6) Mode { method handleSubnetEvents (line 131) | func (n *network) handleSubnetEvents(ctx context.Context, batch []leas... function newNetwork (line 56) | func newNetwork(sm subnet.Manager, extIface *backend.ExternalInterface, ... type wireguardLeaseAttrs (line 102) | type wireguardLeaseAttrs struct FILE: pkg/ip/endianess.go function init (line 28) | func init() { function NativelyLittle (line 40) | func NativelyLittle() bool { FILE: pkg/ip/iface.go function getIfaceAddrs (line 32) | func getIfaceAddrs(iface *net.Interface) ([]netlink.Addr, error) { function getIfaceV6Addrs (line 42) | func getIfaceV6Addrs(iface *net.Interface) ([]netlink.Addr, error) { function GetInterfaceIP4Addrs (line 52) | func GetInterfaceIP4Addrs(iface *net.Interface) ([]net.IP, error) { function GetInterfaceIP6Addrs (line 80) | func GetInterfaceIP6Addrs(iface *net.Interface) ([]net.IP, error) { function GetInterfaceIP4AddrMatch (line 108) | func GetInterfaceIP4AddrMatch(iface *net.Interface, matchAddr net.IP) er... function GetInterfaceIP6AddrMatch (line 127) | func GetInterfaceIP6AddrMatch(iface *net.Interface, matchAddr net.IP) er... function GetDefaultGatewayInterface (line 146) | func GetDefaultGatewayInterface() (*net.Interface, error) { function GetDefaultV6GatewayInterface (line 164) | func GetDefaultV6GatewayInterface() (*net.Interface, error) { function GetInterfaceByIP (line 182) | func GetInterfaceByIP(ip net.IP) (*net.Interface, error) { function GetInterfaceByIP6 (line 198) | func GetInterfaceByIP6(ip net.IP) (*net.Interface, error) { function GetInterfaceBySpecificIPRouting (line 214) | func GetInterfaceBySpecificIPRouting(ip net.IP) (*net.Interface, net.IP,... function DirectRouting (line 232) | func DirectRouting(ip net.IP) (bool, error) { function EnsureV4AddressOnLink (line 245) | func EnsureV4AddressOnLink(ipa IP4Net, ipn IP4Net, link netlink.Link) er... function EnsureV6AddressOnLink (line 279) | func EnsureV6AddressOnLink(ipa IP6Net, ipn IP6Net, link netlink.Link) er... function AddBlackholeV4Route (line 315) | func AddBlackholeV4Route(ipV4Dest *net.IPNet) error { function AddBlackholeV6Route (line 324) | func AddBlackholeV6Route(ipV6Dest *net.IPNet) error { function compareAddrs (line 335) | func compareAddrs(a, b netlink.Addr) int { FILE: pkg/ip/iface_test.go function TestEnsureV4AddressOnLink (line 28) | func TestEnsureV4AddressOnLink(t *testing.T) { function TestEnsureV6AddressOnLink (line 67) | func TestEnsureV6AddressOnLink(t *testing.T) { FILE: pkg/ip/iface_windows.go function GetInterfaceIP4Addrs (line 29) | func GetInterfaceIP4Addrs(iface *net.Interface) ([]net.IP, error) { function GetDefaultGatewayInterface (line 59) | func GetDefaultGatewayInterface() (*net.Interface, error) { function getDefaultGatewayInterfaceIndex (line 68) | func getDefaultGatewayInterfaceIndex() (int, error) { function GetInterfaceByIP (line 86) | func GetInterfaceByIP(search net.IP) (*net.Interface, error) { function EnableForwardingForInterface (line 118) | func EnableForwardingForInterface(iface *net.Interface) error { function DisableForwardingForInterface (line 124) | func DisableForwardingForInterface(iface *net.Interface) error { function setForwardingForInterface (line 128) | func setForwardingForInterface(iface *net.Interface, forwarding bool) er... function IsForwardingEnabledForInterface (line 142) | func IsForwardingEnabledForInterface(iface *net.Interface) (bool, error) { function GetInterfaceByIP6 (line 155) | func GetInterfaceByIP6(ip net.IP) (*net.Interface, error) ... function GetInterfaceIP6Addrs (line 156) | func GetInterfaceIP6Addrs(iface *net.Interface) ([]net.IP, error) ... function GetInterfaceBySpecificIPRouting (line 157) | func GetInterfaceBySpecificIPRouting(ip net.IP) (*net.Interface, net.IP,... function GetDefaultV6GatewayInterface (line 158) | func GetDefaultV6GatewayInterface() (*net.Interface, error) ... function AddBlackholeV4Route (line 159) | func AddBlackholeV4Route(ipV4Dest *net.IPNet) error ... function AddBlackholeV6Route (line 160) | func AddBlackholeV6Route(ipV6Dest *net.IPNet) error ... FILE: pkg/ip/iface_windows_test.go function TestGetInterfaceIP4Addr (line 24) | func TestGetInterfaceIP4Addr(t *testing.T) { function TestGetDefaultGatewayInterface (line 36) | func TestGetDefaultGatewayInterface(t *testing.T) { function TestGetInterfaceByIP (line 43) | func TestGetInterfaceByIP(t *testing.T) { function TestEnableForwardingForInterface (line 66) | func TestEnableForwardingForInterface(t *testing.T) { FILE: pkg/ip/ip6net.go type IP6 (line 25) | type IP6 method ToIP (line 81) | func (ip6 *IP6) ToIP() net.IP { method String (line 90) | func (ip6 IP6) String() string { method MarshalJSON (line 95) | func (ip6 IP6) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 100) | func (ip6 *IP6) UnmarshalJSON(j []byte) error { method Cmp (line 110) | func (ip6 *IP6) Cmp(other *IP6) int { method IsPrivate (line 116) | func (ip6 *IP6) IsPrivate() bool { function FromIP16Bytes (line 27) | func FromIP16Bytes(ip []byte) *IP6 { function FromIP6 (line 31) | func FromIP6(ip net.IP) *IP6 { function ParseIP6 (line 41) | func ParseIP6(s string) (*IP6, error) { function Mask (line 49) | func Mask(prefixLen int) *big.Int { function IsEmpty (line 54) | func IsEmpty(subnet *IP6) bool { function GetIPv6SubnetMin (line 61) | func GetIPv6SubnetMin(networkIP *IP6, subnetSize *big.Int) *IP6 { function GetIPv6SubnetMax (line 65) | func GetIPv6SubnetMax(networkIP *IP6, subnetSize *big.Int) *IP6 { function CheckIPv6Subnet (line 69) | func CheckIPv6Subnet(subnetIP *IP6, mask *big.Int) bool { function MustParseIP6 (line 73) | func MustParseIP6(s string) *IP6 { type IP6Net (line 121) | type IP6Net struct method String (line 126) | func (n IP6Net) String() string { method StringSep (line 133) | func (n IP6Net) StringSep(hexSep, prefixSep string) string { method Network (line 145) | func (n IP6Net) Network() IP6Net { method Next (line 153) | func (n IP6Net) Next() IP6Net { method IncrementIP (line 161) | func (n *IP6Net) IncrementIP() { method ToIPNet (line 173) | func (n IP6Net) ToIPNet() *net.IPNet { method Overlaps (line 180) | func (n IP6Net) Overlaps(other IP6Net) bool { method Equal (line 191) | func (n IP6Net) Equal(other IP6Net) bool { method Mask (line 196) | func (n IP6Net) Mask() *big.Int { method Contains (line 201) | func (n IP6Net) Contains(ip *IP6) bool { method ContainsCIDR (line 207) | func (n *IP6Net) ContainsCIDR(other *IP6Net) bool { method Empty (line 213) | func (n IP6Net) Empty() bool { method MarshalJSON (line 218) | func (n IP6Net) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 223) | func (n *IP6Net) UnmarshalJSON(j []byte) error { function MapIP6ToString (line 137) | func MapIP6ToString(nws []IP6Net) []string { function FromIP6Net (line 165) | func FromIP6Net(n *net.IPNet) IP6Net { FILE: pkg/ip/ip6net_test.go function mkIP6Net (line 23) | func mkIP6Net(s string, plen uint) IP6Net { function mkIP6 (line 31) | func mkIP6(s string) *IP6 { function TestIP6 (line 39) | func TestIP6(t *testing.T) { function TestIP6Net (line 101) | func TestIP6Net(t *testing.T) { FILE: pkg/ip/ipnet.go type IP4 (line 24) | type IP4 method Octets (line 59) | func (ip IP4) Octets() (a, b, c, d byte) { method ToIP (line 64) | func (ip IP4) ToIP() net.IP { method NetworkOrder (line 68) | func (ip IP4) NetworkOrder() uint32 { method String (line 77) | func (ip IP4) String() string { method StringSep (line 81) | func (ip IP4) StringSep(sep string) string { method MarshalJSON (line 87) | func (ip IP4) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 92) | func (ip *IP4) UnmarshalJSON(j []byte) error { method IsPrivate (line 104) | func (ip IP4) IsPrivate() bool { function FromBytes (line 26) | func FromBytes(ip []byte) IP4 { function FromIP (line 33) | func FromIP(ip net.IP) IP4 { function ParseIP4 (line 43) | func ParseIP4(s string) (IP4, error) { function MustParseIP4 (line 51) | func MustParseIP4(s string) IP4 { type IP4Net (line 111) | type IP4Net struct method String (line 116) | func (n IP4Net) String() string { method StringSep (line 120) | func (n IP4Net) StringSep(octetSep, prefixSep string) string { method Network (line 132) | func (n IP4Net) Network() IP4Net { method Next (line 139) | func (n IP4Net) Next() IP4Net { method IncrementIP (line 147) | func (n *IP4Net) IncrementIP() { method ToIPNet (line 159) | func (n IP4Net) ToIPNet() *net.IPNet { method Overlaps (line 166) | func (n IP4Net) Overlaps(other IP4Net) bool { method Equal (line 176) | func (n IP4Net) Equal(other IP4Net) bool { method Mask (line 180) | func (n IP4Net) Mask() uint32 { method Contains (line 185) | func (n IP4Net) Contains(ip IP4) bool { method ContainsCIDR (line 189) | func (n *IP4Net) ContainsCIDR(other *IP4Net) bool { method Empty (line 195) | func (n IP4Net) Empty() bool { method MarshalJSON (line 200) | func (n IP4Net) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 205) | func (n *IP4Net) UnmarshalJSON(j []byte) error { function MapIP4ToString (line 124) | func MapIP4ToString(nws []IP4Net) []string { function FromIPNet (line 151) | func FromIPNet(n *net.IPNet) IP4Net { FILE: pkg/ip/ipnet_test.go function mkIP4Net (line 23) | func mkIP4Net(s string, plen uint) IP4Net { function mkIP4 (line 31) | func mkIP4(s string) IP4 { function TestIP4 (line 39) | func TestIP4(t *testing.T) { function TestIP4Net (line 100) | func TestIP4Net(t *testing.T) { FILE: pkg/ip/tun.go constant tunDevice (line 28) | tunDevice = "/dev/net/tun" constant ifnameSize (line 29) | ifnameSize = 16 type ifreqFlags (line 32) | type ifreqFlags struct function ioctl (line 37) | func ioctl(fd int, request, argp uintptr) error { function fromZeroTerm (line 45) | func fromZeroTerm(s []byte) string { function OpenTun (line 49) | func OpenTun(name string) (*os.File, string, error) { FILE: pkg/ipmatch/match.go constant ipv4Stack (line 31) | ipv4Stack int = iota constant ipv6Stack (line 32) | ipv6Stack constant dualStack (line 33) | dualStack constant noneStack (line 34) | noneStack type PublicIPOpts (line 37) | type PublicIPOpts struct function GetIPFamily (line 42) | func GetIPFamily(autoDetectIPv4, autoDetectIPv6 bool) (int, error) { function LookupExtIface (line 53) | func LookupExtIface(ifname string, ifregexS string, ifcanreach string, i... function matchIP (line 318) | func matchIP(ifregex *regexp.Regexp, ifaceIPs []net.IP) net.IP { FILE: pkg/ipmatch/match_test.go function TestLookupExtIface (line 25) | func TestLookupExtIface(t *testing.T) { FILE: pkg/lease/lease.go constant EventAdded (line 28) | EventAdded EventType = iota constant EventRemoved (line 29) | EventRemoved type EventType (line 33) | type EventType type Event (line 35) | type Event struct type LeaseAttrs (line 42) | type LeaseAttrs struct method String (line 76) | func (la *LeaseAttrs) String() string { type Lease (line 51) | type Lease struct type LeaseWatchResult (line 62) | type LeaseWatchResult struct type LeaseWatcher (line 71) | type LeaseWatcher struct method Reset (line 106) | func (lw *LeaseWatcher) Reset(leases []Lease) []Event { method Update (line 141) | func (lw *LeaseWatcher) Update(events []Event) []Event { method add (line 162) | func (lw *LeaseWatcher) add(lease *Lease) Event { method remove (line 176) | func (lw *LeaseWatcher) remove(lease *Lease) Event { function sameSubnet (line 189) | func sameSubnet(ipv4Enabled, ipv6Enabled bool, firstLease, secondLease L... FILE: pkg/mac/mac.go function NewHardwareAddr (line 25) | func NewHardwareAddr() (net.HardwareAddr, error) { FILE: pkg/mac/mac_test.go function TestNewHardwareAddr (line 21) | func TestNewHardwareAddr(t *testing.T) { FILE: pkg/ns/ns.go function SetUpNetlinkTest (line 27) | func SetUpNetlinkTest(t *testing.T) func() { FILE: pkg/powershell/powershell.go constant commandWrapper (line 29) | commandWrapper = `$ErrorActionPreference="Stop";try { %s } catch { Write... function RunCommand (line 34) | func RunCommand(command string) ([]byte, error) { function RunCommandf (line 53) | func RunCommandf(command string, a ...interface{}) ([]byte, error) { function RunCommandWithJsonResult (line 63) | func RunCommandWithJsonResult(command string, v interface{}) error { FILE: pkg/retry/retry.go function Do (line 25) | func Do(f func() error) error { FILE: pkg/routing/router.go type Router (line 23) | type Router interface type Route (line 38) | type Route struct method Equal (line 44) | func (r *Route) Equal(other Route) bool { FILE: pkg/routing/router_windows.go type RouterWindows (line 29) | type RouterWindows struct method GetAllRoutes (line 31) | func (r RouterWindows) GetAllRoutes() ([]Route, error) { method GetRoutesFromInterfaceToSubnet (line 35) | func (r RouterWindows) GetRoutesFromInterfaceToSubnet(interfaceIndex i... method CreateRoute (line 39) | func (r RouterWindows) CreateRoute(interfaceIndex int, destinationSubn... method DeleteRoute (line 44) | func (r RouterWindows) DeleteRoute(interfaceIndex int, destinationSubn... type winNetRoute (line 49) | type winNetRoute struct function parseNetRoutes (line 55) | func parseNetRoutes(cmd string) ([]Route, error) { FILE: pkg/routing/router_windows_test.go function TestGetAllRoutes (line 27) | func TestGetAllRoutes(t *testing.T) { function TestCreateAndRemoveRoute (line 39) | func TestCreateAndRemoveRoute(t *testing.T) { FILE: pkg/subnet/config.go type Config (line 26) | type Config struct function parseBackendType (line 42) | func parseBackendType(be json.RawMessage) (string, error) { function ParseConfig (line 56) | func ParseConfig(s string) (*Config, error) { function CheckNetworkConfig (line 76) | func CheckNetworkConfig(config *Config) error { FILE: pkg/subnet/config_test.go function TestConfigDefaults (line 21) | func TestConfigDefaults(t *testing.T) { function TestIPv6ConfigDefaults (line 51) | func TestIPv6ConfigDefaults(t *testing.T) { function TestConfigOverrides (line 81) | func TestConfigOverrides(t *testing.T) { function TestIPv6ConfigOverrides (line 107) | func TestIPv6ConfigOverrides(t *testing.T) { FILE: pkg/subnet/etcd/local_manager.go constant raceRetries (line 33) | raceRetries = 10 constant subnetTTL (line 34) | subnetTTL = 24 * time.Hour type LocalManager (line 43) | type LocalManager struct method GetStoredMacAddresses (line 82) | func (m *LocalManager) GetStoredMacAddresses(ctx context.Context) (str... method GetStoredPublicIP (line 86) | func (m *LocalManager) GetStoredPublicIP(ctx context.Context) (string,... method GetNetworkConfig (line 90) | func (m *LocalManager) GetNetworkConfig(ctx context.Context) (*subnet.... method AcquireLease (line 107) | func (m *LocalManager) AcquireLease(ctx context.Context, attrs *lease.... method tryAcquireLease (line 148) | func (m *LocalManager) tryAcquireLease(ctx context.Context, config *su... method allocateSubnet (line 225) | func (m *LocalManager) allocateSubnet(config *subnet.Config, leases []... method RenewLease (line 276) | func (m *LocalManager) RenewLease(ctx context.Context, lease *lease.Le... method leaseWatchReset (line 304) | func (m *LocalManager) leaseWatchReset(ctx context.Context, sn ip.IP4N... method WatchLease (line 316) | func (m *LocalManager) WatchLease(ctx context.Context, sn ip.IP4Net, s... method WatchLeases (line 339) | func (m *LocalManager) WatchLeases(ctx context.Context, receiver chan ... method CompleteLease (line 363) | func (m *LocalManager) CompleteLease(ctx context.Context, myLease *lea... method Name (line 432) | func (m *LocalManager) Name() string { method HandleSubnetFile (line 441) | func (m *LocalManager) HandleSubnetFile(path string, config *subnet.Co... type watchCursor (line 50) | type watchCursor struct method String (line 61) | func (c watchCursor) String() string { function isErrEtcdNodeExist (line 54) | func isErrEtcdNodeExist(e error) bool { function NewLocalManager (line 65) | func NewLocalManager(ctx context.Context, config *EtcdConfig, prevSubnet... function newLocalManager (line 73) | func newLocalManager(r Registry, prevSubnet ip.IP4Net, prevIPv6Subnet ip... function findLeaseByIP (line 128) | func findLeaseByIP(leases []lease.Lease, pubIP ip.IP4) *lease.Lease { function findLeaseBySubnet (line 138) | func findLeaseBySubnet(leases []lease.Lease, subnet ip.IP4Net) *lease.Le... function getNextIndex (line 286) | func getNextIndex(cursor interface{}) (int64, error) { function isIndexTooSmall (line 409) | func isIndexTooSmall(err error) bool { function isSubnetConfigCompat (line 413) | func isSubnetConfigCompat(config *subnet.Config, sn ip.IP4Net) bool { function isIPv6SubnetConfigCompat (line 421) | func isIPv6SubnetConfigCompat(config *subnet.Config, sn6 ip.IP6Net) bool { FILE: pkg/subnet/etcd/mock_registry.go type netwk (line 32) | type netwk struct method sendSubnetEvent (line 41) | func (n *netwk) sendSubnetEvent(sn ip.IP4Net, e event) { method findSubnet (line 243) | func (n *netwk) findSubnet(sn ip.IP4Net) (lease.Lease, int, error) { type event (line 55) | type event struct type MockSubnetRegistry (line 60) | type MockSubnetRegistry struct method getNetworkConfig (line 79) | func (msr *MockSubnetRegistry) getNetworkConfig(ctx context.Context) (... method setConfig (line 83) | func (msr *MockSubnetRegistry) setConfig(config string) error { method getSubnets (line 88) | func (msr *MockSubnetRegistry) getSubnets(ctx context.Context) ([]leas... method getSubnet (line 98) | func (msr *MockSubnetRegistry) getSubnet(ctx context.Context, sn ip.IP... method createSubnet (line 111) | func (msr *MockSubnetRegistry) createSubnet(ctx context.Context, sn ip... method updateSubnet (line 146) | func (msr *MockSubnetRegistry) updateSubnet(ctx context.Context, sn ip... method deleteSubnet (line 176) | func (msr *MockSubnetRegistry) deleteSubnet(ctx context.Context, sn ip... method watchSubnets (line 200) | func (msr *MockSubnetRegistry) watchSubnets(ctx context.Context, lease... method watchSubnet (line 227) | func (msr *MockSubnetRegistry) watchSubnet(ctx context.Context, since ... method leasesWatchReset (line 231) | func (msr *MockSubnetRegistry) leasesWatchReset(ctx context.Context) (... function NewMockRegistry (line 66) | func NewMockRegistry(config string, initialSubnets []lease.Lease) *MockS... FILE: pkg/subnet/etcd/mock_subnet.go function NewMockManager (line 22) | func NewMockManager(registry *MockSubnetRegistry) subnet.Manager { function NewMockManagerWithSubnet (line 26) | func NewMockManagerWithSubnet(registry *MockSubnetRegistry, sn ip.IP4Net... FILE: pkg/subnet/etcd/rand.go function init (line 24) | func init() { function randInt (line 29) | func randInt(lo, hi int) int { FILE: pkg/subnet/etcd/registry.go type Registry (line 45) | type Registry interface type EtcdConfig (line 57) | type EtcdConfig struct type etcdNewFunc (line 67) | type etcdNewFunc type etcdSubnetRegistry (line 69) | type etcdSubnetRegistry struct method getNetworkConfig (line 154) | func (esr *etcdSubnetRegistry) getNetworkConfig(ctx context.Context) (... method getSubnets (line 171) | func (esr *etcdSubnetRegistry) getSubnets(ctx context.Context) ([]leas... method getSubnet (line 201) | func (esr *etcdSubnetRegistry) getSubnet(ctx context.Context, sn ip.IP... method createSubnet (line 220) | func (esr *etcdSubnetRegistry) createSubnet(ctx context.Context, sn ip... method updateSubnet (line 255) | func (esr *etcdSubnetRegistry) updateSubnet(ctx context.Context, sn ip... method deleteSubnet (line 281) | func (esr *etcdSubnetRegistry) deleteSubnet(ctx context.Context, sn ip... method watchSubnets (line 287) | func (esr *etcdSubnetRegistry) watchSubnets(ctx context.Context, lease... method watchSubnet (line 372) | func (esr *etcdSubnetRegistry) watchSubnet(ctx context.Context, since ... method kv (line 444) | func (esr *etcdSubnetRegistry) kv() etcd.KV { method leasesWatchReset (line 532) | func (esr *etcdSubnetRegistry) leasesWatchReset(ctx context.Context) (... function newTlsConfig (line 78) | func newTlsConfig(c *EtcdConfig) (*tls.Config, error) { function newEtcdClient (line 106) | func newEtcdClient(ctx context.Context, c *EtcdConfig) (*etcd.Client, et... function newEtcdSubnetRegistry (line 134) | func newEtcdSubnetRegistry(ctx context.Context, config *EtcdConfig, cliN... function parseSubnetWatchResponse (line 450) | func parseSubnetWatchResponse(ctx context.Context, cli *etcd.Client, ev ... function kvToIPLease (line 500) | func kvToIPLease(kv *mvccpb.KeyValue, ttl int64) (*lease.Lease, error) { FILE: pkg/subnet/etcd/registry_test.go function newTestEtcdRegistry (line 31) | func newTestEtcdRegistry(t *testing.T, ctx context.Context, client *etcd... function watchSubnets (line 49) | func watchSubnets(t *testing.T, r Registry, ctx context.Context, sn ip.I... function TestEtcdRegistry (line 100) | func TestEtcdRegistry(t *testing.T) { FILE: pkg/subnet/etcd/subnet_test.go function initTestRegistry (line 33) | func initTestRegistry(ctx context.Context, t *testing.T, r Registry, kvA... function newDummyRegistry (line 66) | func newDummyRegistry() *MockSubnetRegistry { function TestAcquireLease (line 88) | func TestAcquireLease(t *testing.T) { function TestConfigChanged (line 141) | func TestConfigChanged(t *testing.T) { function acquireLease (line 176) | func acquireLease(ctx context.Context, t *testing.T, sm subnet.Manager) ... function TestWatchLeaseAdded (line 190) | func TestWatchLeaseAdded(t *testing.T) { function TestWatchLeaseRemoved (line 257) | func TestWatchLeaseRemoved(t *testing.T) { function TestCompleteLease (line 335) | func TestCompleteLease(t *testing.T) { type leaseData (line 394) | type leaseData struct function TestRenewLease (line 398) | func TestRenewLease(t *testing.T) { function inAllocatableRange (line 480) | func inAllocatableRange(ctx context.Context, sm subnet.Manager, ipn ip.I... function generateKey (line 489) | func generateKey(ipv4Subnet ip.IP4Net, ipv6Subnet ip.IP6Net) string { FILE: pkg/subnet/kube/annotations.go type annotations (line 23) | type annotations struct function newAnnotations (line 36) | func newAnnotations(prefix string) (annotations, error) { FILE: pkg/subnet/kube/annotations_test.go function Test_newAnnotations (line 19) | func Test_newAnnotations(t *testing.T) { FILE: pkg/subnet/kube/kube.go constant resyncPeriod (line 51) | resyncPeriod = 5 * time.Minute constant nodeControllerSyncTimeout (line 52) | nodeControllerSyncTimeout = 10 * time.Minute type subnetFileInfo (line 55) | type subnetFileInfo struct type kubeSubnetManager (line 63) | type kubeSubnetManager struct method enqueueLeaseEvent (line 250) | func (ksm *kubeSubnetManager) enqueueLeaseEvent(ctx context.Context, e... method handleAddLeaseEvent (line 296) | func (ksm *kubeSubnetManager) handleAddLeaseEvent(ctx context.Context,... method handleUpdateLeaseEvent (line 312) | func (ksm *kubeSubnetManager) handleUpdateLeaseEvent(ctx context.Conte... method GetNetworkConfig (line 343) | func (ksm *kubeSubnetManager) GetNetworkConfig(ctx context.Context) (*... method AcquireLease (line 350) | func (ksm *kubeSubnetManager) AcquireLease(ctx context.Context, attrs ... method WatchLeases (line 521) | func (ksm *kubeSubnetManager) WatchLeases(ctx context.Context, receive... method Run (line 536) | func (ksm *kubeSubnetManager) Run(ctx context.Context) { method nodeToLease (line 542) | func (ksm *kubeSubnetManager) nodeToLease(n v1.Node) (l lease.Lease, e... method RenewLease (line 619) | func (ksm *kubeSubnetManager) RenewLease(ctx context.Context, lease *l... method WatchLease (line 623) | func (ksm *kubeSubnetManager) WatchLease(ctx context.Context, sn ip.IP... method Name (line 627) | func (ksm *kubeSubnetManager) Name() string { method CompleteLease (line 633) | func (ksm *kubeSubnetManager) CompleteLease(ctx context.Context, lease... method HandleSubnetFile (line 680) | func (m *kubeSubnetManager) HandleSubnetFile(path string, config *subn... method GetStoredMacAddresses (line 692) | func (ksm *kubeSubnetManager) GetStoredMacAddresses(ctx context.Contex... method GetStoredPublicIP (line 728) | func (ksm *kubeSubnetManager) GetStoredPublicIP(ctx context.Context) (... function NewSubnetManager (line 81) | func NewSubnetManager(ctx context.Context, apiUrl, kubeconfig, prefix, n... function newKubeSubnetManager (line 171) | func newKubeSubnetManager(ctx context.Context, c clientset.Interface, sc... function containsCIDR (line 671) | func containsCIDR(ipnet1, ipnet2 *net.IPNet) bool { FILE: pkg/subnet/kube/kube_test.go function TestContainsCIDR (line 23) | func TestContainsCIDR(t *testing.T) { FILE: pkg/subnet/subnet.go function ParseSubnetKey (line 37) | func ParseSubnetKey(s string) (*ip.IP4Net, *ip.IP6Net) { function MakeSubnetKey (line 63) | func MakeSubnetKey(sn ip.IP4Net, sn6 ip.IP6Net) string { function WriteSubnetFile (line 71) | func WriteSubnetFile(path string, config *Config, ipMasq bool, sn ip.IP4... type Manager (line 106) | type Manager interface function WatchLeases (line 124) | func WatchLeases(ctx context.Context, sm Manager, ownLease *lease.Lease,... function WatchLease (line 165) | func WatchLease(ctx context.Context, sm Manager, sn ip.IP4Net, sn6 ip.IP... FILE: pkg/subnet/subnet_test.go function TestSubnetNodev4 (line 22) | func TestSubnetNodev4(t *testing.T) { function TestSubnetNodev6 (line 49) | func TestSubnetNodev6(t *testing.T) { function TestSubnetNodeInvalid (line 81) | func TestSubnetNodeInvalid(t *testing.T) { FILE: pkg/trafficmngr/iptables/iptables.go type IPTables (line 31) | type IPTables interface type IPTablesError (line 39) | type IPTablesError interface type IPTablesManager (line 44) | type IPTablesManager struct method Init (line 49) | func (iptm *IPTablesManager) Init(ctx context.Context) error { method CleanUp (line 58) | func (iptm *IPTablesManager) CleanUp(ctx context.Context) error { method SetupAndEnsureMasqRules (line 92) | func (iptm *IPTablesManager) SetupAndEnsureMasqRules(ctx context.Conte... method masqRules (line 135) | func (iptm *IPTablesManager) masqRules(ccidr ip.IP4Net, lease *lease.L... method masqIP6Rules (line 171) | func (iptm *IPTablesManager) masqIP6Rules(ccidr ip.IP6Net, lease *leas... method SetupAndEnsureForwardRules (line 210) | func (iptm *IPTablesManager) SetupAndEnsureForwardRules(ctx context.Co... method forwardRules (line 223) | func (iptm *IPTablesManager) forwardRules(flannelNetwork string) []tra... method CreateIP4Chain (line 233) | func (iptm *IPTablesManager) CreateIP4Chain(table, chain string) { method CreateIP6Chain (line 248) | func (iptm *IPTablesManager) CreateIP6Chain(table, chain string) { method setupAndEnsureIP4Tables (line 363) | func (iptm *IPTablesManager) setupAndEnsureIP4Tables(ctx context.Conte... method setupAndEnsureIP6Tables (line 399) | func (iptm *IPTablesManager) setupAndEnsureIP6Tables(ctx context.Conte... method deleteIP4Tables (line 435) | func (iptm *IPTablesManager) deleteIP4Tables(rules []trafficmngr.IPTab... method deleteIP6Tables (line 457) | func (iptm *IPTablesManager) deleteIP6Tables(rules []trafficmngr.IPTab... function ipTablesRulesExist (line 263) | func ipTablesRulesExist(ipt IPTables, rules []trafficmngr.IPTablesRule) ... function ipTablesCleanAndBuild (line 296) | func ipTablesCleanAndBuild(ipt IPTables, rules []trafficmngr.IPTablesRul... function ipTablesBootstrap (line 344) | func ipTablesBootstrap(ipt IPTables, iptRestore IPTablesRestore, rules [... function ensureIPTables (line 479) | func ensureIPTables(ipt IPTables, iptRestore IPTablesRestore, rules []tr... function teardownIPTables (line 499) | func teardownIPTables(ipt IPTables, iptr IPTablesRestore, rules []traffi... FILE: pkg/trafficmngr/iptables/iptables_restore.go constant ipTablesRestoreCmd (line 33) | ipTablesRestoreCmd string = "iptables-restore" constant ip6TablesRestoreCmd (line 34) | ip6TablesRestoreCmd string = "ip6tables-restore" constant ipTablesCmd (line 35) | ipTablesCmd string = "iptables" constant ip6TablesCmd (line 36) | ip6TablesCmd string = "ip6tables" type IPTablesRestore (line 40) | type IPTablesRestore interface type ipTablesRestore (line 46) | type ipTablesRestore struct method ApplyWithoutFlush (line 89) | func (iptr *ipTablesRestore) ApplyWithoutFlush(rules IPTablesRestoreRu... method runWithOutput (line 104) | func (iptr *ipTablesRestore) runWithOutput(args []string, stdin io.Rea... type IPTablesRestoreRules (line 57) | type IPTablesRestoreRules type IPTablesRestoreRuleSpec (line 60) | type IPTablesRestoreRuleSpec function NewIPTablesRestoreWithProtocol (line 63) | func NewIPTablesRestoreWithProtocol(protocol iptables.Protocol) (IPTable... function buildIPTablesRestorePayload (line 124) | func buildIPTablesRestorePayload(tableRules IPTablesRestoreRules) string { function getIptablesRestoreSupport (line 153) | func getIptablesRestoreSupport(path string) (hasWait bool, err error) { function ipTablesHasWaitSupport (line 166) | func ipTablesHasWaitSupport(v1, v2, v3 int) bool { function extractIptablesRestoreVersion (line 181) | func extractIptablesRestoreVersion(str string) (int, int, int, error) { function getIptablesRestoreVersionString (line 206) | func getIptablesRestoreVersionString(path string) (string, error) { function getIptablesRestoreCommand (line 218) | func getIptablesRestoreCommand(proto iptables.Protocol) string { function getIptablesCommand (line 226) | func getIptablesCommand(proto iptables.Protocol) string { FILE: pkg/trafficmngr/iptables/iptables_restore_test.go function TestRules (line 21) | func TestRules(t *testing.T) { FILE: pkg/trafficmngr/iptables/iptables_test.go function testingLease (line 31) | func testingLease() *lease.Lease { type MockIPTables (line 40) | type MockIPTables struct method ruleIndex (line 73) | func (mock *MockIPTables) ruleIndex(table string, chain string, rulesp... method ChainExists (line 82) | func (mock *MockIPTables) ChainExists(table, chain string) (bool, erro... method ClearChain (line 86) | func (mock *MockIPTables) ClearChain(table, chain string) error { method Delete (line 90) | func (mock *MockIPTables) Delete(table string, chain string, rulespec ... method Exists (line 104) | func (mock *MockIPTables) Exists(table string, chain string, rulespec ... method AppendUnique (line 112) | func (mock *MockIPTables) AppendUnique(table string, chain string, rul... type MockIPTablesRestore (line 46) | type MockIPTablesRestore struct method ApplyFully (line 63) | func (mock *MockIPTablesRestore) ApplyFully(rules IPTablesRestoreRules... method ApplyWithoutFlush (line 68) | func (mock *MockIPTablesRestore) ApplyWithoutFlush(rules IPTablesResto... type MockIPTablesError (line 51) | type MockIPTablesError struct method IsNotExist (line 55) | func (mock *MockIPTablesError) IsNotExist() bool { method Error (line 59) | func (mock *MockIPTablesError) Error() string { function TestDeleteRules (line 120) | func TestDeleteRules(t *testing.T) { function TestDeleteMoreRules (line 154) | func TestDeleteMoreRules(t *testing.T) { function TestBootstrapRules (line 198) | func TestBootstrapRules(t *testing.T) { function TestDeleteIP6Rules (line 260) | func TestDeleteIP6Rules(t *testing.T) { function TestEnsureRules (line 290) | func TestEnsureRules(t *testing.T) { function TestEnsureIP6Rules (line 340) | func TestEnsureIP6Rules(t *testing.T) { function setupIPTables (line 383) | func setupIPTables(ipt IPTables, rules []trafficmngr.IPTablesRule) error { function expectedTearDownIPTablesRestoreRules (line 394) | func expectedTearDownIPTablesRestoreRules(rules []trafficmngr.IPTablesRu... function IP6Rules (line 406) | func IP6Rules(ipn ip.IP6Net, lease *lease.Lease) []trafficmngr.IPTablesR... function IP6RestoreRules (line 418) | func IP6RestoreRules(ipn ip.IP6Net, lease *lease.Lease) IPTablesRestoreR... function IP6RestoreDeleteRules (line 431) | func IP6RestoreDeleteRules(ipn ip.IP6Net, lease *lease.Lease) IPTablesRe... FILE: pkg/trafficmngr/iptables/iptables_windows.go type IPTablesManager (line 27) | type IPTablesManager struct method Init (line 37) | func (iptm IPTablesManager) Init(ctx context.Context) error { method CleanUp (line 42) | func (iptm *IPTablesManager) CleanUp(ctx context.Context) error { method SetupAndEnsureForwardRules (line 46) | func (iptm *IPTablesManager) SetupAndEnsureForwardRules(ctx context.Co... method SetupAndEnsureMasqRules (line 49) | func (iptm *IPTablesManager) SetupAndEnsureMasqRules(ctx context.Conte... type IPTables (line 29) | type IPTables interface FILE: pkg/trafficmngr/nftables/nftables.go constant ipv4Table (line 31) | ipv4Table = "flannel-ipv4" constant ipv6Table (line 32) | ipv6Table = "flannel-ipv6" constant forwardChain (line 33) | forwardChain = "forward" constant postrtgChain (line 34) | postrtgChain = "postrtg" type NFTablesManager (line 37) | type NFTablesManager struct method Init (line 42) | func (nftm *NFTablesManager) Init(ctx context.Context) error { method SetupAndEnsureForwardRules (line 77) | func (nftm *NFTablesManager) SetupAndEnsureForwardRules(ctx context.Co... method SetupAndEnsureMasqRules (line 149) | func (nftm *NFTablesManager) SetupAndEnsureMasqRules(ctx context.Conte... method addMasqRules (line 208) | func (nftm *NFTablesManager) addMasqRules(ctx context.Context, method CleanUp (line 279) | func (nftm *NFTablesManager) CleanUp(ctx context.Context) error { function initTable (line 58) | func initTable(ctx context.Context, ipFamily knftables.Family, name stri... FILE: pkg/trafficmngr/nftables/nftables_windows.go type NFTablesManager (line 27) | type NFTablesManager struct method Init (line 30) | func (nftm *NFTablesManager) Init(ctx context.Context) error { method CleanUp (line 35) | func (nftm *NFTablesManager) CleanUp(ctx context.Context) error { method SetupAndEnsureForwardRules (line 39) | func (nftm *NFTablesManager) SetupAndEnsureForwardRules(ctx context.Co... method SetupAndEnsureMasqRules (line 43) | func (nftm *NFTablesManager) SetupAndEnsureMasqRules(ctx context.Conte... FILE: pkg/trafficmngr/nftables/utils.go constant masqueradeTestTable (line 27) | masqueradeTestTable = "masqueradeTest" method checkRandomfully (line 31) | func (nftm *NFTablesManager) checkRandomfully(ctx context.Context) bool { FILE: pkg/trafficmngr/trafficmngr.go type IPTablesRule (line 25) | type IPTablesRule struct constant KubeProxyMark (line 36) | KubeProxyMark string = "0x4000/0x4000" type TrafficManager (line 38) | type TrafficManager interface