Documentation ¶
Index ¶
- type Configsocket
- func (cs Configsocket) AddRoute(dst, gateway net.IP, genmask net.IPMask) syscall.Errno
- func (cs Configsocket) Close() error
- func (cs Configsocket) DelRoute(dst, gateway net.IP, genmask net.IPMask) syscall.Errno
- func (cs Configsocket) SetAddress(addr net.IP) error
- func (cs Configsocket) SetBroadcast(addr net.IP) error
- func (cs Configsocket) SetNetmask(addr net.IPMask) error
- func (cs Configsocket) Up() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configsocket ¶
type Configsocket struct {
// contains filtered or unexported fields
}
func NewConfigSocket ¶
func NewConfigSocket(iface string) (Configsocket, error)
func (Configsocket) Close ¶
func (cs Configsocket) Close() error
func (Configsocket) SetAddress ¶
func (cs Configsocket) SetAddress(addr net.IP) error
func (Configsocket) SetBroadcast ¶
func (cs Configsocket) SetBroadcast(addr net.IP) error
func (Configsocket) SetNetmask ¶
func (cs Configsocket) SetNetmask(addr net.IPMask) error
func (Configsocket) Up ¶
func (cs Configsocket) Up() error
Click to show internal directories.
Click to hide internal directories.