diff options
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 3ce2f803fba..45df3f207d2 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.56 2009/01/08 12:47:45 michele Exp $ */ +/* $OpenBSD: route.h,v 1.57 2009/01/28 12:34:09 claudio Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -297,6 +297,14 @@ struct rt_omsghdr { #define RTAX_LABEL 10 /* route label present */ #define RTAX_MAX 11 /* size of array to allocate */ +/* + * setsockopt defines used for the filtering. + */ +#define ROUTE_MSGFILTER 1 /* bitmask to specifiy which types should be + sent to the client. */ + +#define ROUTE_SETFILTER(x, m) (x) |= (1 << (m)) + struct rt_addrinfo { int rti_addrs; struct sockaddr *rti_info[RTAX_MAX]; |