unpack

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AF_LOCAL   = 1
	AF_INET    = 2
	AF_INET6   = 10
	AF_PACKET  = 17
	AF_NETLINK = 16
)

Variables

This section is empty.

Functions

func MmapFlag

func MmapFlag(reg uint64) enum.MmapFlag

func MmapProt

func MmapProt(reg uint64) enum.MmapProt

func OpenFlag

func OpenFlag(reg uint64) enum.OpenFlag

func Sockaddr

func Sockaddr(buf common.Buf, length int) syscall.Sockaddr

Types

type SockaddrInet4

type SockaddrInet4 struct {
	Family uint16
	Port   uint16
	Addr   [4]byte
}

type SockaddrInet6

type SockaddrInet6 struct {
	Family   uint16
	Port     uint16
	Flowinfo uint32
	Addr     [16]byte
	Scope_id uint32
}

type SockaddrLinklayer

type SockaddrLinklayer struct {
	Family   uint16
	Protocol uint16
	Ifindex  int32
	Hatype   uint16
	Pkttype  uint8
	Halen    uint8
	Addr     [8]uint8
}
type SockaddrNetlink struct {
	Family uint16
	Pad    uint16
	Pid    uint32
	Groups uint32
}

type SockaddrUnix

type SockaddrUnix struct {
	Family uint16
	Path   [108]byte
}

Jump to

Keyboard shortcuts

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