Home | History | Annotate | Download | only in lapi
      1 /*
      2 * Copyright (c) 2016 Fujitsu Ltd.
      3 * Author: Xiao Yang <yangx.jy (at) 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_FASTOPEN
     25 # define MSG_FASTOPEN	0x20000000 /* Send data in TCP SYN */
     26 #endif
     27 
     28 #ifndef SO_BUSY_POLL
     29 # define SO_BUSY_POLL	46
     30 #endif
     31 
     32 #ifndef SOCK_DCCP
     33 # define SOCK_DCCP		6
     34 #endif
     35 
     36 #ifndef SOCK_CLOEXEC
     37 # define SOCK_CLOEXEC 02000000
     38 #endif
     39 
     40 #ifndef SOL_DCCP
     41 # define SOL_DCCP		269
     42 #endif
     43 
     44 #endif /* __LAPI_SOCKET_H__ */
     45