github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/route/zsys_netbsd.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_netbsd.go
     3  
     4  package route
     5  
     6  const (
     7  	sysAF_UNSPEC = 0x0
     8  	sysAF_INET   = 0x2
     9  	sysAF_ROUTE  = 0x22
    10  	sysAF_LINK   = 0x12
    11  	sysAF_INET6  = 0x18
    12  
    13  	sysSOCK_RAW = 0x3
    14  
    15  	sysNET_RT_DUMP   = 0x1
    16  	sysNET_RT_FLAGS  = 0x2
    17  	sysNET_RT_IFLIST = 0x5
    18  	sysNET_RT_MAXID  = 0x6
    19  )
    20  
    21  const (
    22  	sysCTL_MAXNAME = 0xc
    23  
    24  	sysCTL_UNSPEC   = 0x0
    25  	sysCTL_KERN     = 0x1
    26  	sysCTL_VM       = 0x2
    27  	sysCTL_VFS      = 0x3
    28  	sysCTL_NET      = 0x4
    29  	sysCTL_DEBUG    = 0x5
    30  	sysCTL_HW       = 0x6
    31  	sysCTL_MACHDEP  = 0x7
    32  	sysCTL_USER     = 0x8
    33  	sysCTL_DDB      = 0x9
    34  	sysCTL_PROC     = 0xa
    35  	sysCTL_VENDOR   = 0xb
    36  	sysCTL_EMUL     = 0xc
    37  	sysCTL_SECURITY = 0xd
    38  	sysCTL_MAXID    = 0xe
    39  )
    40  
    41  const (
    42  	sysRTM_VERSION = 0x4
    43  
    44  	sysRTM_ADD        = 0x1
    45  	sysRTM_DELETE     = 0x2
    46  	sysRTM_CHANGE     = 0x3
    47  	sysRTM_GET        = 0x4
    48  	sysRTM_LOSING     = 0x5
    49  	sysRTM_REDIRECT   = 0x6
    50  	sysRTM_MISS       = 0x7
    51  	sysRTM_LOCK       = 0x8
    52  	sysRTM_OLDADD     = 0x9
    53  	sysRTM_OLDDEL     = 0xa
    54  	sysRTM_RESOLVE    = 0xb
    55  	sysRTM_NEWADDR    = 0xc
    56  	sysRTM_DELADDR    = 0xd
    57  	sysRTM_IFANNOUNCE = 0x10
    58  	sysRTM_IEEE80211  = 0x11
    59  	sysRTM_SETGATE    = 0x12
    60  	sysRTM_LLINFO_UPD = 0x13
    61  	sysRTM_IFINFO     = 0x14
    62  	sysRTM_CHGADDR    = 0x15
    63  
    64  	sysRTA_DST     = 0x1
    65  	sysRTA_GATEWAY = 0x2
    66  	sysRTA_NETMASK = 0x4
    67  	sysRTA_GENMASK = 0x8
    68  	sysRTA_IFP     = 0x10
    69  	sysRTA_IFA     = 0x20
    70  	sysRTA_AUTHOR  = 0x40
    71  	sysRTA_BRD     = 0x80
    72  	sysRTA_TAG     = 0x100
    73  
    74  	sysRTAX_DST     = 0x0
    75  	sysRTAX_GATEWAY = 0x1
    76  	sysRTAX_NETMASK = 0x2
    77  	sysRTAX_GENMASK = 0x3
    78  	sysRTAX_IFP     = 0x4
    79  	sysRTAX_IFA     = 0x5
    80  	sysRTAX_AUTHOR  = 0x6
    81  	sysRTAX_BRD     = 0x7
    82  	sysRTAX_TAG     = 0x8
    83  	sysRTAX_MAX     = 0x9
    84  )
    85  
    86  const (
    87  	sizeofIfMsghdrNetBSD7         = 0x98
    88  	sizeofIfaMsghdrNetBSD7        = 0x18
    89  	sizeofIfAnnouncemsghdrNetBSD7 = 0x18
    90  
    91  	sizeofRtMsghdrNetBSD7  = 0x78
    92  	sizeofRtMetricsNetBSD7 = 0x50
    93  
    94  	sizeofSockaddrStorage = 0x80
    95  	sizeofSockaddrInet    = 0x10
    96  	sizeofSockaddrInet6   = 0x1c
    97  )