1 /* 2 * Copyright (c) 2016 Fujitsu Ltd. 3 * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation; either version 2 of 8 * the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it would be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. 17 */ 18 19 #ifndef __LAPI_SOCKET_H__ 20 #define __LAPI_SOCKET_H__ 21 22 #include <sys/socket.h> 23 24 #ifndef MSG_ZEROCOPY 25 # define MSG_ZEROCOPY 0x4000000 /* Use user data in kernel path */ 26 #endif 27 28 #ifndef MSG_FASTOPEN 29 # define MSG_FASTOPEN 0x20000000 /* Send data in TCP SYN */ 30 #endif 31 32 #ifndef SO_BUSY_POLL 33 # define SO_BUSY_POLL 46 34 #endif 35 36 #ifndef SO_ZEROCOPY 37 # define SO_ZEROCOPY 60 38 #endif 39 40 #ifndef SOCK_DCCP 41 # define SOCK_DCCP 6 42 #endif 43 44 #ifndef SOCK_CLOEXEC 45 # define SOCK_CLOEXEC 02000000 46 #endif 47 48 #ifndef SOL_SCTP 49 # define SOL_SCTP 132 50 #endif 51 52 #ifndef SOL_UDPLITE 53 # define SOL_UDPLITE 136 /* UDP-Lite (RFC 3828) */ 54 #endif 55 56 #ifndef SOL_DCCP 57 # define SOL_DCCP 269 58 #endif 59 60 #endif /* __LAPI_SOCKET_H__ */ 61