source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/net.h @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.8 KB
Line 
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 _LINUX_NET_H
19#define _LINUX_NET_H
20
21#define NPROTO          32              /* should be enough for now..   */
22
23#define SYS_SOCKET      1               /* sys_socket(2)                */
24#define SYS_BIND        2               /* sys_bind(2)                  */
25#define SYS_CONNECT     3               /* sys_connect(2)               */
26#define SYS_LISTEN      4               /* sys_listen(2)                */
27#define SYS_ACCEPT      5               /* sys_accept(2)                */
28#define SYS_GETSOCKNAME 6               /* sys_getsockname(2)           */
29#define SYS_GETPEERNAME 7               /* sys_getpeername(2)           */
30#define SYS_SOCKETPAIR  8               /* sys_socketpair(2)            */
31#define SYS_SEND        9               /* sys_send(2)                  */
32#define SYS_RECV        10              /* sys_recv(2)                  */
33#define SYS_SENDTO      11              /* sys_sendto(2)                */
34#define SYS_RECVFROM    12              /* sys_recvfrom(2)              */
35#define SYS_SHUTDOWN    13              /* sys_shutdown(2)              */
36#define SYS_SETSOCKOPT  14              /* sys_setsockopt(2)            */
37#define SYS_GETSOCKOPT  15              /* sys_getsockopt(2)            */
38#define SYS_SENDMSG     16              /* sys_sendmsg(2)               */
39#define SYS_RECVMSG     17              /* sys_recvmsg(2)               */
40
41typedef enum {
42        SS_FREE = 0,                    /* not allocated                */
43        SS_UNCONNECTED,                 /* unconnected to any socket    */
44        SS_CONNECTING,                  /* in process of connecting     */
45        SS_CONNECTED,                   /* connected to socket          */
46        SS_DISCONNECTING                /* in process of disconnecting  */
47} socket_state;
48
49#define __SO_ACCEPTCON  (1 << 16)       /* performed a listen           */
50
51#endif  /* _LINUX_NET_H */
Note: See TracBrowser for help on using the repository browser.