~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/net.h

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * NET          An implementation of the SOCKET network access protocol.
  3  *              This is the master header file for the Linux NET layer,
  4  *              or, in plain English: the networking handling part of the
  5  *              kernel.
  6  *
  7  * Version:     @(#)net.h       1.0.3   05/25/93
  8  *
  9  * Authors:     Orest Zborowski, <obz@Kodak.COM>
 10  *              Ross Biro
 11  *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 12  *
 13  *              This program is free software; you can redistribute it and/or
 14  *              modify it under the terms of the GNU General Public License
 15  *              as published by the Free Software Foundation; either version
 16  *              2 of the License, or (at your option) any later version.
 17  */
 18 #ifndef _UAPI_LINUX_NET_H
 19 #define _UAPI_LINUX_NET_H
 20 
 21 #include <linux/socket.h>
 22 #include <asm/socket.h>
 23 
 24 #define NPROTO          AF_MAX
 25 
 26 #define SYS_SOCKET      1               /* sys_socket(2)                */
 27 #define SYS_BIND        2               /* sys_bind(2)                  */
 28 #define SYS_CONNECT     3               /* sys_connect(2)               */
 29 #define SYS_LISTEN      4               /* sys_listen(2)                */
 30 #define SYS_ACCEPT      5               /* sys_accept(2)                */
 31 #define SYS_GETSOCKNAME 6               /* sys_getsockname(2)           */
 32 #define SYS_GETPEERNAME 7               /* sys_getpeername(2)           */
 33 #define SYS_SOCKETPAIR  8               /* sys_socketpair(2)            */
 34 #define SYS_SEND        9               /* sys_send(2)                  */
 35 #define SYS_RECV        10              /* sys_recv(2)                  */
 36 #define SYS_SENDTO      11              /* sys_sendto(2)                */
 37 #define SYS_RECVFROM    12              /* sys_recvfrom(2)              */
 38 #define SYS_SHUTDOWN    13              /* sys_shutdown(2)              */
 39 #define SYS_SETSOCKOPT  14              /* sys_setsockopt(2)            */
 40 #define SYS_GETSOCKOPT  15              /* sys_getsockopt(2)            */
 41 #define SYS_SENDMSG     16              /* sys_sendmsg(2)               */
 42 #define SYS_RECVMSG     17              /* sys_recvmsg(2)               */
 43 #define SYS_ACCEPT4     18              /* sys_accept4(2)               */
 44 #define SYS_RECVMMSG    19              /* sys_recvmmsg(2)              */
 45 #define SYS_SENDMMSG    20              /* sys_sendmmsg(2)              */
 46 
 47 typedef enum {
 48         SS_FREE = 0,                    /* not allocated                */
 49         SS_UNCONNECTED,                 /* unconnected to any socket    */
 50         SS_CONNECTING,                  /* in process of connecting     */
 51         SS_CONNECTED,                   /* connected to socket          */
 52         SS_DISCONNECTING                /* in process of disconnecting  */
 53 } socket_state;
 54 
 55 #define __SO_ACCEPTCON  (1 << 16)       /* performed a listen           */
 56 
 57 #endif /* _UAPI_LINUX_NET_H */
 58 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp