![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 0002 /* 0003 * NET An implementation of the SOCKET network access protocol. 0004 * This is the master header file for the Linux NET layer, 0005 * or, in plain English: the networking handling part of the 0006 * kernel. 0007 * 0008 * Version: @(#)net.h 1.0.3 05/25/93 0009 * 0010 * Authors: Orest Zborowski, <obz@Kodak.COM> 0011 * Ross Biro 0012 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 0013 * 0014 * This program is free software; you can redistribute it and/or 0015 * modify it under the terms of the GNU General Public License 0016 * as published by the Free Software Foundation; either version 0017 * 2 of the License, or (at your option) any later version. 0018 */ 0019 #ifndef _UAPI_LINUX_NET_H 0020 #define _UAPI_LINUX_NET_H 0021 0022 #include <linux/socket.h> 0023 #include <asm/socket.h> 0024 0025 #define NPROTO AF_MAX 0026 0027 #define SYS_SOCKET 1 /* sys_socket(2) */ 0028 #define SYS_BIND 2 /* sys_bind(2) */ 0029 #define SYS_CONNECT 3 /* sys_connect(2) */ 0030 #define SYS_LISTEN 4 /* sys_listen(2) */ 0031 #define SYS_ACCEPT 5 /* sys_accept(2) */ 0032 #define SYS_GETSOCKNAME 6 /* sys_getsockname(2) */ 0033 #define SYS_GETPEERNAME 7 /* sys_getpeername(2) */ 0034 #define SYS_SOCKETPAIR 8 /* sys_socketpair(2) */ 0035 #define SYS_SEND 9 /* sys_send(2) */ 0036 #define SYS_RECV 10 /* sys_recv(2) */ 0037 #define SYS_SENDTO 11 /* sys_sendto(2) */ 0038 #define SYS_RECVFROM 12 /* sys_recvfrom(2) */ 0039 #define SYS_SHUTDOWN 13 /* sys_shutdown(2) */ 0040 #define SYS_SETSOCKOPT 14 /* sys_setsockopt(2) */ 0041 #define SYS_GETSOCKOPT 15 /* sys_getsockopt(2) */ 0042 #define SYS_SENDMSG 16 /* sys_sendmsg(2) */ 0043 #define SYS_RECVMSG 17 /* sys_recvmsg(2) */ 0044 #define SYS_ACCEPT4 18 /* sys_accept4(2) */ 0045 #define SYS_RECVMMSG 19 /* sys_recvmmsg(2) */ 0046 #define SYS_SENDMMSG 20 /* sys_sendmmsg(2) */ 0047 0048 typedef enum { 0049 SS_FREE = 0, /* not allocated */ 0050 SS_UNCONNECTED, /* unconnected to any socket */ 0051 SS_CONNECTING, /* in process of connecting */ 0052 SS_CONNECTED, /* connected to socket */ 0053 SS_DISCONNECTING /* in process of disconnecting */ 0054 } socket_state; 0055 0056 #define __SO_ACCEPTCON (1 << 16) /* performed a listen */ 0057 0058 #endif /* _UAPI_LINUX_NET_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |