summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2005-05-27 17:18:20 +0000
committermcbride <mcbride@openbsd.org>2005-05-27 17:18:20 +0000
commitfd63a1475a597bc1e837d9ee8f1e8c6fd6dcb107 (patch)
tree2075e7ccc421048dde4299b8b637b82bd0857a01
parentadd a field to struct socket that stores the pid of the process that (diff)
downloadwireguard-openbsd-fd63a1475a597bc1e837d9ee8f1e8c6fd6dcb107.tar.xz
wireguard-openbsd-fd63a1475a597bc1e837d9ee8f1e8c6fd6dcb107.zip
Add rtm_fmask define to make the (ab)use of rtm_use more obvious.
Suggestion from Cedric Berger ok marius@ claudio@
-rw-r--r--sys/net/route.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index db6058e186d..0a0c934e042 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.28 2005/05/27 04:55:27 mcbride Exp $ */
+/* $OpenBSD: route.h,v 1.29 2005/05/27 17:18:20 mcbride Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -171,6 +171,7 @@ struct rt_msghdr {
int rtm_seq; /* for sender to identify action */
int rtm_errno; /* why failed */
int rtm_use; /* from rtentry */
+#define rtm_fmask rtm_use /* bitmask used in RTM_CHANGE message */
u_long rtm_inits; /* which metrics we are initializing */
struct rt_metrics rtm_rmx; /* metrics themselves */
};