github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/route/zsys_darwin.go (about)

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs defs_darwin.go
     3  
     4  package route
     5  
     6  const (
     7  	sysAF_UNSPEC = 0x0
     8  	sysAF_INET   = 0x2
     9  	sysAF_ROUTE  = 0x11
    10  	sysAF_LINK   = 0x12
    11  	sysAF_INET6  = 0x1e
    12  
    13  	sysSOCK_RAW = 0x3
    14  
    15  	sysNET_RT_DUMP    = 0x1
    16  	sysNET_RT_FLAGS   = 0x2
    17  	sysNET_RT_IFLIST  = 0x3
    18  	sysNET_RT_STAT    = 0x4
    19  	sysNET_RT_TRASH   = 0x5
    20  	sysNET_RT_IFLIST2 = 0x6
    21  	sysNET_RT_DUMP2   = 0x7
    22  	sysNET_RT_MAXID   = 0xa
    23  )
    24  
    25  const (
    26  	sysCTL_MAXNAME = 0xc
    27  
    28  	sysCTL_UNSPEC  = 0x0
    29  	sysCTL_KERN    = 0x1
    30  	sysCTL_VM      = 0x2
    31  	sysCTL_VFS     = 0x3
    32  	sysCTL_NET     = 0x4
    33  	sysCTL_DEBUG   = 0x5
    34  	sysCTL_HW      = 0x6
    35  	sysCTL_MACHDEP = 0x7
    36  	sysCTL_USER    = 0x8
    37  	sysCTL_MAXID   = 0x9
    38  )
    39  
    40  const (
    41  	sysRTM_VERSION = 0x5
    42  
    43  	sysRTM_ADD       = 0x1
    44  	sysRTM_DELETE    = 0x2
    45  	sysRTM_CHANGE    = 0x3
    46  	sysRTM_GET       = 0x4
    47  	sysRTM_LOSING    = 0x5
    48  	sysRTM_REDIRECT  = 0x6
    49  	sysRTM_MISS      = 0x7
    50  	sysRTM_LOCK      = 0x8
    51  	sysRTM_OLDADD    = 0x9
    52  	sysRTM_OLDDEL    = 0xa
    53  	sysRTM_RESOLVE   = 0xb
    54  	sysRTM_NEWADDR   = 0xc
    55  	sysRTM_DELADDR   = 0xd
    56  	sysRTM_IFINFO    = 0xe
    57  	sysRTM_NEWMADDR  = 0xf
    58  	sysRTM_DELMADDR  = 0x10
    59  	sysRTM_IFINFO2   = 0x12
    60  	sysRTM_NEWMADDR2 = 0x13
    61  	sysRTM_GET2      = 0x14
    62  
    63  	sysRTA_DST     = 0x1
    64  	sysRTA_GATEWAY = 0x2
    65  	sysRTA_NETMASK = 0x4
    66  	sysRTA_GENMASK = 0x8
    67  	sysRTA_IFP     = 0x10
    68  	sysRTA_IFA     = 0x20
    69  	sysRTA_AUTHOR  = 0x40
    70  	sysRTA_BRD     = 0x80
    71  
    72  	sysRTAX_DST     = 0x0
    73  	sysRTAX_GATEWAY = 0x1
    74  	sysRTAX_NETMASK = 0x2
    75  	sysRTAX_GENMASK = 0x3
    76  	sysRTAX_IFP     = 0x4
    77  	sysRTAX_IFA     = 0x5
    78  	sysRTAX_AUTHOR  = 0x6
    79  	sysRTAX_BRD     = 0x7
    80  	sysRTAX_MAX     = 0x8
    81  )
    82  
    83  const (
    84  	sizeofIfMsghdrDarwin15    = 0x70
    85  	sizeofIfaMsghdrDarwin15   = 0x14
    86  	sizeofIfmaMsghdrDarwin15  = 0x10
    87  	sizeofIfMsghdr2Darwin15   = 0xa0
    88  	sizeofIfmaMsghdr2Darwin15 = 0x14
    89  	sizeofIfDataDarwin15      = 0x60
    90  	sizeofIfData64Darwin15    = 0x80
    91  
    92  	sizeofRtMsghdrDarwin15  = 0x5c
    93  	sizeofRtMsghdr2Darwin15 = 0x5c
    94  	sizeofRtMetricsDarwin15 = 0x38
    95  
    96  	sizeofSockaddrStorage = 0x80
    97  	sizeofSockaddrInet    = 0x10
    98  	sizeofSockaddrInet6   = 0x1c
    99  )