diff options
author | qingli <qingli@FreeBSD.org> | 2013-06-25 00:10:49 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2013-06-25 00:10:49 +0000 |
commit | 2160365ab5c063efe55ccfd0d3879669e3f26170 (patch) | |
tree | 7aa10a9ada51cdb348b341252da27d8c72eb1c13 /sys/net/route.h | |
parent | ac847054f7eaa1e775d5102eace816afbbf9daae (diff) | |
download | FreeBSD-src-2160365ab5c063efe55ccfd0d3879669e3f26170.zip FreeBSD-src-2160365ab5c063efe55ccfd0d3879669e3f26170.tar.gz |
Due to the routing related networking kernel redesign work
in FBSD 8.0, interface routes have been returened to the
applications without the RTF_GATEWAY bit. This incompatibility
has caused some issues with Zebra, Qugga and the like.
This patch provides the RTF_GATEWAY flag bit in returned interface
routes so to behave similarly to pre 8.0 systems.
Reviewed by: hrs
Verified by: mackn at opendns dot com
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index 997f3cd..02d0ae9 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -185,6 +185,9 @@ struct ortentry { #define RTF_RNH_LOCKED 0x40000000 /* radix node head is locked */ +#define RTF_GWFLAG_COMPAT 0x80000000 /* a compatibility bit for interacting + with existing routing apps */ + /* Mask of RTF flags that are allowed to be modified by RTM_CHANGE. */ #define RTF_FMASK \ (RTF_PROTO1 | RTF_PROTO2 | RTF_PROTO3 | RTF_BLACKHOLE | \ |