diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-12-12 22:07:34 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-12-12 22:07:34 +0000 |
commit | 31b949d922863f483ab80e2e880d8d6adee8014f (patch) | |
tree | 2483c70a1b2f9ac0bad21129b7058d2f665bbcf5 /sys/net/if.h | |
parent | 5b78a9b707a28bbac3b9990a915717f59df94926 (diff) |
Introduce a if_priority that will be added to RTP_STATIC when routes are
added without an expilict priority. This allows to specify less prefered
interfaces that will only take over if the primary interface loses link.
OK deraadt@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 74235314a51..ab6df1ab27f 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.101 2008/12/11 16:45:45 deraadt Exp $ */ +/* $OpenBSD: if.h,v 1.102 2008/12/12 22:07:33 claudio Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -217,6 +217,7 @@ struct ifnet { /* and the entries */ int if_capabilities; /* interface capabilities */ char if_description[IFDESCRSIZE]; /* interface description */ u_short if_rtlabelid; /* next route label */ + u_int8_t if_priority; /* procedure handles */ /* output routine (enqueue) */ |