diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-02-17 18:36:16 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-02-17 18:36:16 +0000 |
commit | 57f2f80383b53392dfad8e786166e1bc45db6fd2 (patch) | |
tree | a83e9e9d53e0588a113f9257f28820f9ac0f259f /libc | |
parent | 7ebfbe29400512e3e61d68f8eceba7c745a90469 (diff) |
bits/socket.h: add missing defines
Newer iproute2 package make use of some of defines.
Sync missing defines with GNU C library.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/bits/socket.h | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/bits/socket.h b/libc/sysdeps/linux/common/bits/socket.h index 4ea13111a..7ce4d7da4 100644 --- a/libc/sysdeps/linux/common/bits/socket.h +++ b/libc/sysdeps/linux/common/bits/socket.h @@ -1,7 +1,6 @@ /* System-specific socket constants and types. Linux version. Copyright (C) 1991,1992,1994-2001,2004,2006-2012 Free Software Foundation, Inc. - This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -81,7 +80,11 @@ typedef __socklen_t socklen_t; #define PF_CAIF 37 /* CAIF sockets. */ #define PF_ALG 38 /* Algorithm sockets. */ #define PF_NFC 39 /* NFC sockets. */ -#define PF_MAX 40 /* For now.. */ +#define PF_VSOCK 40 /* vSockets. */ +#define PF_KCM 41 /* Kernel Connection Multiplexor. */ +#define PF_QIPCRTR 42 /* Qualcomm IPC Router. */ +#define PF_SMC 43 /* SMC sockets. */ +#define PF_MAX 44 /* For now.. */ /* Address families. */ #define AF_UNSPEC PF_UNSPEC @@ -125,7 +128,11 @@ typedef __socklen_t socklen_t; #define AF_CAIF PF_CAIF #define AF_ALG PF_ALG #define AF_NFC PF_NFC -#define AF_MAX PF_MAX +#define AF_VSOCK PF_VSOCK +#define AF_KCM PF_KCM +#define AF_QIPCRTR PF_QIPCRTR +#define AF_SMC PF_SMC +#define AF_MAX PF_MAX /* Socket level values. Others are defined in the appropriate headers. @@ -138,6 +145,22 @@ typedef __socklen_t socklen_t; #define SOL_ATM 264 /* ATM layer (cell level). */ #define SOL_AAL 265 /* ATM Adaption Layer (packet level). */ #define SOL_IRDA 266 +#define SOL_NETBEUI 267 +#define SOL_LLC 268 +#define SOL_DCCP 269 +#define SOL_NETLINK 270 +#define SOL_TIPC 271 +#define SOL_RXRPC 272 +#define SOL_PPPOL2TP 273 +#define SOL_BLUETOOTH 274 +#define SOL_PNPIPE 275 +#define SOL_RDS 276 +#define SOL_IUCV 277 +#define SOL_CAIF 278 +#define SOL_ALG 279 +#define SOL_NFC 280 +#define SOL_KCM 281 +#define SOL_TLS 282 /* Maximum queue length specifiable by listen. */ #define SOMAXCONN 128 @@ -213,6 +236,12 @@ enum #define MSG_MORE MSG_MORE MSG_WAITFORONE = 0x10000, /* Wait for at least one packet to return.*/ #define MSG_WAITFORONE MSG_WAITFORONE + MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */ +#define MSG_BATCH MSG_BATCH + MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */ +#define MSG_ZEROCOPY MSG_ZEROCOPY + MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */ +#define MSG_FASTOPEN MSG_FASTOPEN MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file descriptor received through SCM_RIGHTS. */ |