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 retrieving revision 1.91.2.1 retrieving revision 1.92 diff -u -p -r1.91.2.1 -r1.92 --- src/sys/sys/socket.h 2009/01/19 13:20:30 1.91.2.1 +++ src/sys/sys/socket.h 2009/01/11 02:45:55 1.92 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.91.2.1 2009/01/19 13:20:30 skrll Exp $ */ +/* $NetBSD: socket.h,v 1.92 2009/01/11 02:45:55 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -120,9 +120,8 @@ typedef _BSD_SSIZE_T_ ssize_t; #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 */ -/* SO_OTIMESTAMP 0x0400 */ +#define SO_TIMESTAMP 0x0400 /* timestamp received dgram traffic */ #define SO_ACCEPTFILTER 0x1000 /* there is an accept filter */ -#define SO_TIMESTAMP 0x2000 /* timestamp received dgram traffic */ /* @@ -132,8 +131,8 @@ typedef _BSD_SSIZE_T_ ssize_t; #define SO_RCVBUF 0x1002 /* receive buffer size */ #define SO_SNDLOWAT 0x1003 /* send low-water mark */ #define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -/* SO_OSNDTIMEO 0x1005 */ -/* SO_ORCVTIMEO 0x1006 */ +#define SO_SNDTIMEO 0x1005 /* send timeout */ +#define SO_RCVTIMEO 0x1006 /* receive timeout */ #define SO_ERROR 0x1007 /* get error status and clear */ #define SO_TYPE 0x1008 /* get socket type */ #define SO_OVERFLOWED 0x1009 /* datagrams: return packets dropped */ @@ -142,8 +141,6 @@ typedef _BSD_SSIZE_T_ ssize_t; * kernel removes header and supplies * payload */ -#define SO_SNDTIMEO 0x100b /* send timeout */ -#define SO_RCVTIMEO 0x100c /* receive timeout */ /* * Structure used for manipulating linger option. */ @@ -545,9 +542,8 @@ struct cmsghdr { /* "Socket"-level control message types: */ #define SCM_RIGHTS 0x01 /* access rights (array of int) */ #if defined(_NETBSD_SOURCE) -/* 0x02 timestamp (struct timeval50) */ +#define SCM_TIMESTAMP 0x02 /* timestamp (struct timeval) */ #define SCM_CREDS 0x04 /* credentials (struct sockcred) */ -#define SCM_TIMESTAMP 0x08 /* timestamp (struct timeval) */ #endif /*