summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2009-06-03 20:35:38 +0000
committerBob Beck <beck@cvs.openbsd.org>2009-06-03 20:35:38 +0000
commit6471d8d5406f69e0f7c4f7922e4fce768c184562 (patch)
tree418a08a90c49ebeb7f84f4151f4b0ef9b49ec5b9 /sys/net
parent76e75159d25ac0cfa6fff1317a7a6108bff7bebe (diff)
make wireless interfaces priority 4 by default. other interfaces remain
priority 0. while we are in here make sure we add wi interfaces to group "wlan" in the same way the net80211 stuff already is. this makes dhcp multiple default routes useful on laptops. ok claudio@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 18e3fd153c8..c033499060b 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.103 2009/01/27 09:17:51 dlg Exp $ */
+/* $OpenBSD: if.h,v 1.104 2009/06/03 20:35:37 beck Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -757,6 +757,10 @@ do { \
#define IFQ_INC_DROPS(ifq) ((ifq)->ifq_drops++)
#define IFQ_SET_MAXLEN(ifq, len) ((ifq)->ifq_maxlen = (len))
+/* default interface priorities */
+#define IF_WIRED_DEFAULT_PRIORITY 0
+#define IF_WIRELESS_DEFAULT_PRIORITY 4
+
extern int ifqmaxlen;
extern struct ifnet_head ifnet;
extern struct ifnet **ifindex2ifnet;