Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v rcsdiff: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.15 retrieving revision 1.19 diff -u -p -r1.15 -r1.19 --- src/sys/sys/socket.h 1996/05/02 00:25:13 1.15 +++ src/sys/sys/socket.h 1997/02/11 17:47:44 1.19 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.15 1996/05/02 00:25:13 neil Exp $ */ +/* $NetBSD: socket.h,v 1.19 1997/02/11 17:47:44 is Exp $ */ /* * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 @@ -64,6 +64,7 @@ #define SO_LINGER 0x0080 /* linger on close if data present */ #define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ #define SO_REUSEPORT 0x0200 /* allow local address & port reuse */ +#define SO_TIMESTAMP 0x0400 /* timestamp received dgram traffic */ /* * Additional options, not kept in so_options. @@ -121,8 +122,12 @@ struct linger { #define AF_IPX 23 /* Novell Internet Protocol */ #define AF_SIP 24 /* Simple Internet Protocol */ #define pseudo_AF_PIP 25 /* Help Identify PIP packets */ +#define AF_ISDN 26 /* Integrated Services Digital Network*/ +#define AF_E164 AF_ISDN /* CCITT E.164 recommendation */ +#define AF_NATM 27 /* native ATM access */ +#define AF_ARP 28 /* (rev.) addr. res. prot. (RFC 826) */ -#define AF_MAX 26 +#define AF_MAX 29 /* * Structure used by kernel to store most @@ -174,6 +179,8 @@ struct sockproto { #define PF_IPX AF_IPX /* same format as AF_NS */ #define PF_RTIP pseudo_AF_FTIP /* same format as AF_INET */ #define PF_PIP pseudo_AF_PIP +#define PF_NATM AF_NATM +#define PF_ARP AF_ARP #define PF_MAX AF_MAX @@ -214,6 +221,7 @@ struct sockproto { { "ipx", CTLTYPE_NODE }, \ { "sip", CTLTYPE_NODE }, \ { "pip", CTLTYPE_NODE }, \ + { "natm", CTLTYPE_NODE }, \ } /* @@ -239,9 +247,9 @@ struct sockproto { /* * Maximum queue length specifiable by listen(2). */ -#ifndef SOMAXCONN + #define SOMAXCONN 128 -#endif + /* * Message header for recvmsg and sendmsg calls. * Used value-result for recvmsg, value only for sendmsg. @@ -292,6 +300,7 @@ struct cmsghdr { /* "Socket"-level control message types: */ #define SCM_RIGHTS 0x01 /* access rights (array of int) */ +#define SCM_TIMESTAMP 0x02 /* timestamp (struct timeval) */ /* * 4.3 compat sockaddr, move to compat file later