Documentation ¶
Index ¶
- Variables
- func GetDefaultGatewayIface() (*net.Interface, error)
- func GetIfaceIP4Addr(iface *net.Interface) (net.IP, error)
- func GetIfaceIP4AddrMatch(iface *net.Interface, matchAddr net.IP) error
- func GetInterfaceByIP(ip net.IP) (*net.Interface, error)
- func NativelyLittle() bool
- func OpenTun(name string) (*os.File, string, error)
- type IP4
- type IP4Net
- func (n IP4Net) Contains(ip IP4) bool
- func (n IP4Net) Equal(other IP4Net) bool
- func (n IP4Net) MarshalJSON() ([]byte, error)
- func (n IP4Net) Mask() uint32
- func (n IP4Net) Network() IP4Net
- func (n IP4Net) Next() IP4Net
- func (n IP4Net) Overlaps(other IP4Net) bool
- func (n IP4Net) String() string
- func (n IP4Net) StringSep(octetSep, prefixSep string) string
- func (n IP4Net) ToIPNet() *net.IPNet
- func (n *IP4Net) UnmarshalJSON(j []byte) error
- type IPTables
Constants ¶
This section is empty.
Variables ¶
View Source
var NativeEndian binary.ByteOrder
NativeEndian is the ByteOrder of the current system.
Functions ¶
func GetDefaultGatewayIface ¶
func NativelyLittle ¶
func NativelyLittle() bool
Types ¶
type IPTables ¶
type IPTables struct {
// contains filtered or unexported fields
}
func NewIPTables ¶
func (*IPTables) AppendUnique ¶
AppendUnique acts like Append except that it won't add a duplicate
func (*IPTables) ClearChain ¶
Click to show internal directories.
Click to hide internal directories.