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.89 retrieving revision 1.89.20.2 diff -u -p -r1.89 -r1.89.20.2 --- src/sys/sys/socket.h 2007/09/19 04:33:45 1.89 +++ src/sys/sys/socket.h 2008/09/28 10:41:05 1.89.20.2 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.89 2007/09/19 04:33:45 dyoung Exp $ */ +/* $NetBSD: socket.h,v 1.89.20.2 2008/09/28 10:41:05 mjf Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -121,6 +121,7 @@ typedef _BSD_SSIZE_T_ ssize_t; #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 */ +#define SO_ACCEPTFILTER 0x1000 /* there is an accept filter */ /* @@ -148,6 +149,11 @@ struct linger { int l_linger; /* linger time in seconds */ }; +struct accept_filter_arg { + char af_name[16]; + char af_arg[256-16]; +}; + /* * Level number for (get/set)sockopt() to apply to socket itself. */ @@ -200,8 +206,9 @@ struct linger { in interface output routine */ #endif #define AF_BLUETOOTH 31 /* Bluetooth: HCI, SCO, L2CAP, RFCOMM */ +#define AF_IEEE80211 32 /* IEEE80211 */ -#define AF_MAX 32 +#define AF_MAX 33 /* * Structure used by kernel to store most