Versions in this module Expand all Collapse all v0 v0.2.1 Jul 6, 2015 Changes in this version + const CIFF_NO_PI + const CIFF_ONE_QUEUE + const CIFF_TAP + const DEFAULT_CHANGE + const IFNAMSIZ + const SIOC_BRADDBR + const SIOC_BRADDIF + const SIOC_BRDELBR + var BridgeIP string + var BridgeIface string + func AddToBridge(iface, master *net.Interface) error + func CreateBridgeIface(name string) error + func DeleteBridge(name string) error + func GenRandomMac() (string, error) + func GetIfaceAddr(name string) (net.Addr, error) + func InitNetwork(bIface, bIP string) error + func Modprobe(module string) error + func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error + func NetworkLinkDelIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error + func NetworkLinkDown(iface *net.Interface) error + func NetworkLinkUp(iface *net.Interface) error + func Release(releasedIP string, maps []pod.UserContainerPort, file *os.File) error + func ReleasePortMaps(containerip string, maps []pod.UserContainerPort) error + func SetupPortMaps(containerip string, maps []pod.UserContainerPort) error + func UpAndAddToBridge(name string) error + type IfAddr struct + type IfAddrmsg struct + func (msg *IfAddrmsg) Len() int + func (msg *IfAddrmsg) ToWireFormat() []byte + type IfInfomsg struct + func (msg *IfInfomsg) Len() int + func (msg *IfInfomsg) ToWireFormat() []byte + type NetlinkRequest struct + Data []NetlinkRequestData + func (rr *NetlinkRequest) AddData(data NetlinkRequestData) + func (rr *NetlinkRequest) ToWireFormat() []byte + type NetlinkRequestData interface + Len func() int + ToWireFormat func() []byte + type NetlinkSocket struct + func (s *NetlinkSocket) CheckMessage(m syscall.NetlinkMessage, seq, pid uint32) error + func (s *NetlinkSocket) Close() + func (s *NetlinkSocket) GetPid() (uint32, error) + func (s *NetlinkSocket) HandleAck(seq uint32) error + func (s *NetlinkSocket) Receive() ([]syscall.NetlinkMessage, error) + func (s *NetlinkSocket) Send(request *NetlinkRequest) error + type RtAttr struct + Data []byte + func (a *RtAttr) Len() int + func (a *RtAttr) ToWireFormat() []byte + type Settings struct + Bridge string + Device string + File *os.File + Gateway string + IPAddress string + IPPrefixLen int + Mac string + func Allocate(requestedIP string, addrOnly bool, maps []pod.UserContainerPort) (*Settings, error)