修订版 | 57f2f80383b53392dfad8e786166e1bc45db6fd2 (tree) |
---|---|
时间 | 2018-02-18 03:36:16 |
作者 | Waldemar Brodkorb <wbx@ucli...> |
Commiter | Waldemar Brodkorb |
bits/socket.h: add missing defines
Newer iproute2 package make use of some of defines.
Sync missing defines with GNU C library.
@@ -1,7 +1,6 @@ | ||
1 | 1 | /* System-specific socket constants and types. Linux version. |
2 | 2 | Copyright (C) 1991,1992,1994-2001,2004,2006-2012 |
3 | 3 | Free Software Foundation, Inc. |
4 | - This file is part of the GNU C Library. | |
5 | 4 | |
6 | 5 | The GNU C Library is free software; you can redistribute it and/or |
7 | 6 | modify it under the terms of the GNU Lesser General Public |
@@ -81,7 +80,11 @@ typedef __socklen_t socklen_t; | ||
81 | 80 | #define PF_CAIF 37 /* CAIF sockets. */ |
82 | 81 | #define PF_ALG 38 /* Algorithm sockets. */ |
83 | 82 | #define PF_NFC 39 /* NFC sockets. */ |
84 | -#define PF_MAX 40 /* For now.. */ | |
83 | +#define PF_VSOCK 40 /* vSockets. */ | |
84 | +#define PF_KCM 41 /* Kernel Connection Multiplexor. */ | |
85 | +#define PF_QIPCRTR 42 /* Qualcomm IPC Router. */ | |
86 | +#define PF_SMC 43 /* SMC sockets. */ | |
87 | +#define PF_MAX 44 /* For now.. */ | |
85 | 88 | |
86 | 89 | /* Address families. */ |
87 | 90 | #define AF_UNSPEC PF_UNSPEC |
@@ -125,7 +128,11 @@ typedef __socklen_t socklen_t; | ||
125 | 128 | #define AF_CAIF PF_CAIF |
126 | 129 | #define AF_ALG PF_ALG |
127 | 130 | #define AF_NFC PF_NFC |
128 | -#define AF_MAX PF_MAX | |
131 | +#define AF_VSOCK PF_VSOCK | |
132 | +#define AF_KCM PF_KCM | |
133 | +#define AF_QIPCRTR PF_QIPCRTR | |
134 | +#define AF_SMC PF_SMC | |
135 | +#define AF_MAX PF_MAX | |
129 | 136 | |
130 | 137 | /* Socket level values. Others are defined in the appropriate headers. |
131 | 138 |
@@ -138,6 +145,22 @@ typedef __socklen_t socklen_t; | ||
138 | 145 | #define SOL_ATM 264 /* ATM layer (cell level). */ |
139 | 146 | #define SOL_AAL 265 /* ATM Adaption Layer (packet level). */ |
140 | 147 | #define SOL_IRDA 266 |
148 | +#define SOL_NETBEUI 267 | |
149 | +#define SOL_LLC 268 | |
150 | +#define SOL_DCCP 269 | |
151 | +#define SOL_NETLINK 270 | |
152 | +#define SOL_TIPC 271 | |
153 | +#define SOL_RXRPC 272 | |
154 | +#define SOL_PPPOL2TP 273 | |
155 | +#define SOL_BLUETOOTH 274 | |
156 | +#define SOL_PNPIPE 275 | |
157 | +#define SOL_RDS 276 | |
158 | +#define SOL_IUCV 277 | |
159 | +#define SOL_CAIF 278 | |
160 | +#define SOL_ALG 279 | |
161 | +#define SOL_NFC 280 | |
162 | +#define SOL_KCM 281 | |
163 | +#define SOL_TLS 282 | |
141 | 164 | |
142 | 165 | /* Maximum queue length specifiable by listen. */ |
143 | 166 | #define SOMAXCONN 128 |
@@ -213,6 +236,12 @@ enum | ||
213 | 236 | #define MSG_MORE MSG_MORE |
214 | 237 | MSG_WAITFORONE = 0x10000, /* Wait for at least one packet to return.*/ |
215 | 238 | #define MSG_WAITFORONE MSG_WAITFORONE |
239 | + MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */ | |
240 | +#define MSG_BATCH MSG_BATCH | |
241 | + MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */ | |
242 | +#define MSG_ZEROCOPY MSG_ZEROCOPY | |
243 | + MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */ | |
244 | +#define MSG_FASTOPEN MSG_FASTOPEN | |
216 | 245 | MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file |
217 | 246 | descriptor received through |
218 | 247 | SCM_RIGHTS. */ |