blob: 430206930b800d62fe74be239817859456cf34e7 [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs defs_linux.go
3
4package socket
5
6const (
7 sysAF_UNSPEC = 0x0
8 sysAF_INET = 0x2
9 sysAF_INET6 = 0xa
10
11 sysSOCK_RAW = 0x3
12)
13
14type iovec struct {
15 Base *byte
16 Len uint32
17}
18
19type msghdr struct {
20 Name *byte
21 Namelen uint32
22 Iov *iovec
23 Iovlen uint32
24 Control *byte
25 Controllen uint32
26 Flags int32
27}
28
29type mmsghdr struct {
30 Hdr msghdr
31 Len uint32
32}
33
34type cmsghdr struct {
35 Len uint32
36 Level int32
37 Type int32
38}
39
40type sockaddrInet struct {
41 Family uint16
42 Port uint16
43 Addr [4]byte /* in_addr */
44 X__pad [8]uint8
45}
46
47type sockaddrInet6 struct {
48 Family uint16
49 Port uint16
50 Flowinfo uint32
51 Addr [16]byte /* in6_addr */
52 Scope_id uint32
53}
54
55const (
56 sizeofIovec = 0x8
57 sizeofMsghdr = 0x1c
58 sizeofMmsghdr = 0x20
59 sizeofCmsghdr = 0xc
60
61 sizeofSockaddrInet = 0x10
62 sizeofSockaddrInet6 = 0x1c
63)