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

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs defs_solaris.go
     3  
     4  package lif
     5  
     6  const (
     7  	sysAF_UNSPEC = 0x0
     8  	sysAF_INET   = 0x2
     9  	sysAF_INET6  = 0x1a
    10  
    11  	sysSOCK_DGRAM = 0x1
    12  )
    13  
    14  type sockaddrStorage struct {
    15  	Family     uint16
    16  	X_ss_pad1  [6]int8
    17  	X_ss_align float64
    18  	X_ss_pad2  [240]int8
    19  }
    20  
    21  const (
    22  	sysLIFC_NOXMIT          = 0x1
    23  	sysLIFC_EXTERNAL_SOURCE = 0x2
    24  	sysLIFC_TEMPORARY       = 0x4
    25  	sysLIFC_ALLZONES        = 0x8
    26  	sysLIFC_UNDER_IPMP      = 0x10
    27  	sysLIFC_ENABLED         = 0x20
    28  
    29  	sysSIOCGLIFADDR    = -0x3f87968f
    30  	sysSIOCGLIFDSTADDR = -0x3f87968d
    31  	sysSIOCGLIFFLAGS   = -0x3f87968b
    32  	sysSIOCGLIFMTU     = -0x3f879686
    33  	sysSIOCGLIFNETMASK = -0x3f879683
    34  	sysSIOCGLIFMETRIC  = -0x3f879681
    35  	sysSIOCGLIFNUM     = -0x3ff3967e
    36  	sysSIOCGLIFINDEX   = -0x3f87967b
    37  	sysSIOCGLIFSUBNET  = -0x3f879676
    38  	sysSIOCGLIFLNKINFO = -0x3f879674
    39  	sysSIOCGLIFCONF    = -0x3fef965b
    40  	sysSIOCGLIFHWADDR  = -0x3f879640
    41  )
    42  
    43  const (
    44  	sysIFF_UP          = 0x1
    45  	sysIFF_BROADCAST   = 0x2
    46  	sysIFF_DEBUG       = 0x4
    47  	sysIFF_LOOPBACK    = 0x8
    48  	sysIFF_POINTOPOINT = 0x10
    49  	sysIFF_NOTRAILERS  = 0x20
    50  	sysIFF_RUNNING     = 0x40
    51  	sysIFF_NOARP       = 0x80
    52  	sysIFF_PROMISC     = 0x100
    53  	sysIFF_ALLMULTI    = 0x200
    54  	sysIFF_INTELLIGENT = 0x400
    55  	sysIFF_MULTICAST   = 0x800
    56  	sysIFF_MULTI_BCAST = 0x1000
    57  	sysIFF_UNNUMBERED  = 0x2000
    58  	sysIFF_PRIVATE     = 0x8000
    59  )
    60  
    61  const (
    62  	sizeofLifnum       = 0xc
    63  	sizeofLifreq       = 0x178
    64  	sizeofLifconf      = 0x18
    65  	sizeofLifIfinfoReq = 0x10
    66  )
    67  
    68  type lifnum struct {
    69  	Family    uint16
    70  	Pad_cgo_0 [2]byte
    71  	Flags     int32
    72  	Count     int32
    73  }
    74  
    75  type lifreq struct {
    76  	Name   [32]int8
    77  	Lifru1 [4]byte
    78  	Type   uint32
    79  	Lifru  [336]byte
    80  }
    81  
    82  type lifconf struct {
    83  	Family    uint16
    84  	Pad_cgo_0 [2]byte
    85  	Flags     int32
    86  	Len       int32
    87  	Pad_cgo_1 [4]byte
    88  	Lifcu     [8]byte
    89  }
    90  
    91  type lifIfinfoReq struct {
    92  	Maxhops      uint8
    93  	Pad_cgo_0    [3]byte
    94  	Reachtime    uint32
    95  	Reachretrans uint32
    96  	Maxmtu       uint32
    97  }
    98  
    99  const (
   100  	sysIFT_IPV4 = 0xc8
   101  	sysIFT_IPV6 = 0xc9
   102  	sysIFT_6TO4 = 0xca
   103  )