converters

package
v0.0.0-...-798ae07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAPIAddrtoNetIP

func ConvertAPIAddrtoNetIP(addr *api.IPAddress) net.IP

func ConvertAPIAddrtoNetlinkAddr

func ConvertAPIAddrtoNetlinkAddr(addr *api.IPCIDR) *rtnetlink.AddressMessage

func ConvertAPIAddrtoNetlinkAddrNew

func ConvertAPIAddrtoNetlinkAddrNew(addr *api.LinkAddress) *netlink.Addr

func ConvertAPICDRtoNetIP

func ConvertAPICDRtoNetIP(cidr *api.IPCIDR) *net.IPNet
func ConvertAPILinkToNetlinkLink(link *api.Link) *rtnetlink.LinkMessage

Converts an API Link to a netlink message object to be sent over the wire.

Should be validated before conversion.

func ConvertAPILinkToNetlinkLinkNew

func ConvertAPILinkToNetlinkLinkNew(link *api.Link) *netlink.Link

func ConvertAPIMasktoNetMask

func ConvertAPIMasktoNetMask(mask *api.IPMask) net.IPMask

func ConvertAPINeighborToNetlinkNeighbor

func ConvertAPINeighborToNetlinkNeighbor(neigh *api.Neighbor) *rtnetlink.NeighMessage

func ConvertAPINeighborToNetlinkNeighborNew

func ConvertAPINeighborToNetlinkNeighborNew(neigh *api.Neighbor) *netlink.Neigh

func ConvertAPIRouteToNetlinkRoute

func ConvertAPIRouteToNetlinkRoute(route *api.Route) *rtnetlink.RouteMessage

func ConvertAPIRouteToNetlinkRouteNew

func ConvertAPIRouteToNetlinkRouteNew(route *api.Route) *netlink.Route

func ConvertNetlinkAddrNewToAPIAddr

func ConvertNetlinkAddrNewToAPIAddr(addr *netlink.Addr) *api.LinkAddress

func ConvertNetlinkAddrToAPIAddr

func ConvertNetlinkAddrToAPIAddr(addr *rtnetlink.AddressMessage) *api.LinkAddress
func ConvertNetlinkLinkAPILink(link *rtnetlink.LinkMessage) *api.Link

Converts a netlink message to an API link message.

func ConvertNetlinkLinkNewToAPILink(link *netlink.Link) *api.Link

func ConvertNetlinkNeighborNewToAPINeighbor

func ConvertNetlinkNeighborNewToAPINeighbor(neigh *netlink.Neigh) *api.Neighbor

func ConvertNetlinkNeighborToAPINeighbor

func ConvertNetlinkNeighborToAPINeighbor(neigh *rtnetlink.NeighMessage) *api.Neighbor

func ConvertNetlinkRouteNewToAPIRoute

func ConvertNetlinkRouteNewToAPIRoute(route *netlink.Route) *api.Route

func ConvertNetlinkRouteToAPIRoute

func ConvertNetlinkRouteToAPIRoute(route *rtnetlink.RouteMessage) *api.Route

func GetIsArpEnabled

func GetIsArpEnabled(flags uint32) bool

func GetIsBroadcast

func GetIsBroadcast(flags uint32) bool

func GetIsDynamic

func GetIsDynamic(flags uint32) bool

func GetIsInterfaceUp

func GetIsInterfaceUp(flags uint32) bool

func GetIsLoopback

func GetIsLoopback(flags uint32) bool

func GetIsMulticast

func GetIsMulticast(flags uint32) bool

func GetIsP2P

func GetIsP2P(flags uint32) bool

func GetIsPromiscuous

func GetIsPromiscuous(flags uint32) bool

func SetIsArpEnabled

func SetIsArpEnabled(flags uint32, set bool) uint32

func SetIsBroadcast

func SetIsBroadcast(flags uint32, set bool) uint32

func SetIsDynamic

func SetIsDynamic(flags uint32, set bool) uint32

func SetIsInterfaceUp

func SetIsInterfaceUp(flags uint32, set bool) uint32

func SetIsLoopback

func SetIsLoopback(flags uint32, set bool) uint32

func SetIsMulticast

func SetIsMulticast(flags uint32, set bool) uint32

func SetIsP2P

func SetIsP2P(flags uint32, set bool) uint32

func SetIsPromiscuous

func SetIsPromiscuous(flags uint32, set bool) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL