Documentation ¶
Index ¶
- func ConvertAPIAddrtoNetIP(addr *api.IPAddress) net.IP
- func ConvertAPIAddrtoNetlinkAddr(addr *api.IPCIDR) *rtnetlink.AddressMessage
- func ConvertAPIAddrtoNetlinkAddrNew(addr *api.LinkAddress) *netlink.Addr
- func ConvertAPICDRtoNetIP(cidr *api.IPCIDR) *net.IPNet
- func ConvertAPILinkToNetlinkLink(link *api.Link) *rtnetlink.LinkMessage
- func ConvertAPILinkToNetlinkLinkNew(link *api.Link) *netlink.Link
- func ConvertAPIMasktoNetMask(mask *api.IPMask) net.IPMask
- func ConvertAPINeighborToNetlinkNeighbor(neigh *api.Neighbor) *rtnetlink.NeighMessage
- func ConvertAPINeighborToNetlinkNeighborNew(neigh *api.Neighbor) *netlink.Neigh
- func ConvertAPIRouteToNetlinkRoute(route *api.Route) *rtnetlink.RouteMessage
- func ConvertAPIRouteToNetlinkRouteNew(route *api.Route) *netlink.Route
- func ConvertNetlinkAddrNewToAPIAddr(addr *netlink.Addr) *api.LinkAddress
- func ConvertNetlinkAddrToAPIAddr(addr *rtnetlink.AddressMessage) *api.LinkAddress
- func ConvertNetlinkLinkAPILink(link *rtnetlink.LinkMessage) *api.Link
- func ConvertNetlinkLinkNewToAPILink(link *netlink.Link) *api.Link
- func ConvertNetlinkNeighborNewToAPINeighbor(neigh *netlink.Neigh) *api.Neighbor
- func ConvertNetlinkNeighborToAPINeighbor(neigh *rtnetlink.NeighMessage) *api.Neighbor
- func ConvertNetlinkRouteNewToAPIRoute(route *netlink.Route) *api.Route
- func ConvertNetlinkRouteToAPIRoute(route *rtnetlink.RouteMessage) *api.Route
- func GetIsArpEnabled(flags uint32) bool
- func GetIsBroadcast(flags uint32) bool
- func GetIsDynamic(flags uint32) bool
- func GetIsInterfaceUp(flags uint32) bool
- func GetIsLoopback(flags uint32) bool
- func GetIsMulticast(flags uint32) bool
- func GetIsP2P(flags uint32) bool
- func GetIsPromiscuous(flags uint32) bool
- func SetIsArpEnabled(flags uint32, set bool) uint32
- func SetIsBroadcast(flags uint32, set bool) uint32
- func SetIsDynamic(flags uint32, set bool) uint32
- func SetIsInterfaceUp(flags uint32, set bool) uint32
- func SetIsLoopback(flags uint32, set bool) uint32
- func SetIsMulticast(flags uint32, set bool) uint32
- func SetIsP2P(flags uint32, set bool) uint32
- func SetIsPromiscuous(flags uint32, set bool) uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAPIAddrtoNetlinkAddr ¶
func ConvertAPIAddrtoNetlinkAddr(addr *api.IPCIDR) *rtnetlink.AddressMessage
func ConvertAPIAddrtoNetlinkAddrNew ¶
func ConvertAPIAddrtoNetlinkAddrNew(addr *api.LinkAddress) *netlink.Addr
func ConvertAPILinkToNetlinkLink ¶
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 ConvertAPINeighborToNetlinkNeighbor ¶
func ConvertAPINeighborToNetlinkNeighbor(neigh *api.Neighbor) *rtnetlink.NeighMessage
func ConvertAPIRouteToNetlinkRoute ¶
func ConvertAPIRouteToNetlinkRoute(route *api.Route) *rtnetlink.RouteMessage
func ConvertNetlinkAddrNewToAPIAddr ¶
func ConvertNetlinkAddrNewToAPIAddr(addr *netlink.Addr) *api.LinkAddress
func ConvertNetlinkAddrToAPIAddr ¶
func ConvertNetlinkAddrToAPIAddr(addr *rtnetlink.AddressMessage) *api.LinkAddress
func ConvertNetlinkLinkAPILink ¶
func ConvertNetlinkLinkAPILink(link *rtnetlink.LinkMessage) *api.Link
Converts a netlink message to an API link message.
func ConvertNetlinkNeighborToAPINeighbor ¶
func ConvertNetlinkNeighborToAPINeighbor(neigh *rtnetlink.NeighMessage) *api.Neighbor
func ConvertNetlinkRouteToAPIRoute ¶
func ConvertNetlinkRouteToAPIRoute(route *rtnetlink.RouteMessage) *api.Route
func GetIsArpEnabled ¶
func GetIsBroadcast ¶
func GetIsDynamic ¶
func GetIsInterfaceUp ¶
func GetIsLoopback ¶
func GetIsMulticast ¶
func GetIsPromiscuous ¶
func SetIsArpEnabled ¶
func SetIsBroadcast ¶
func SetIsDynamic ¶
func SetIsInterfaceUp ¶
func SetIsLoopback ¶
func SetIsMulticast ¶
func SetIsPromiscuous ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.