diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-09 09:23:57 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-09 09:23:57 +0000 |
commit | c1e4530528edb2bc9995a81e769bc4d655c191bd (patch) | |
tree | 0515db01be1e6c4bd67e27e922c7d748c2ff884c /sys | |
parent | 0b5c13e9e8d0b6ca1f36045234939b368631c0ae (diff) |
We should use the highest possible priority for routes to local addresses.
Requested by claudio@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/route.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 6be2320d8f3..1523a56da1d 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.93 2014/05/08 09:28:08 mpi Exp $ */ +/* $OpenBSD: route.h,v 1.94 2014/05/09 09:23:56 mpi Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -146,7 +146,7 @@ struct rtentry { /* Routing priorities used by the different routing protocols */ #define RTP_NONE 0 /* unset priority use sane default */ -#define RTP_LOCAL 2 /* route to a local address */ +#define RTP_LOCAL 1 /* local address routes (must be the highest) */ #define RTP_CONNECTED 4 /* directly connected routes */ #define RTP_STATIC 8 /* static routes base priority */ #define RTP_OSPF 32 /* OSPF routes */ |