summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-07-03 12:22:02 +0000
committerbz <bz@FreeBSD.org>2011-07-03 12:22:02 +0000
commit9cad5bfef3ce97c030d30e66deb6371458c2281b (patch)
tree84813f5c322ca01ea7d1b10025c5fa8621a31765 /sys/net/if.h
parent9cb2f04853640f386dd7db2d61d981a14cd67729 (diff)
downloadFreeBSD-src-9cad5bfef3ce97c030d30e66deb6371458c2281b.zip
FreeBSD-src-9cad5bfef3ce97c030d30e66deb6371458c2281b.tar.gz
Add infrastructure to allow all frames/packets received on an interface
to be assigned to a non-default FIB instance. You may need to recompile world or ports due to the change of struct ifnet. Submitted by: cjsp Submitted by: Alexander V. Chernikov (melifaro ipfw.ru) (original versions) Reviewed by: julian Reviewed by: Alexander V. Chernikov (melifaro ipfw.ru) MFC after: 2 weeks X-MFC: use spare in struct ifnet
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 06521cb..d1f3883 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -325,6 +325,7 @@ struct ifreq {
int ifru_media;
caddr_t ifru_data;
int ifru_cap[2];
+ u_int ifru_fib;
} ifr_ifru;
#define ifr_addr ifr_ifru.ifru_addr /* address */
#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */
@@ -341,6 +342,7 @@ struct ifreq {
#define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */
#define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */
#define ifr_index ifr_ifru.ifru_index /* interface index */
+#define ifr_fib ifr_ifru.ifru_fib /* interface fib */
};
#define _SIZEOF_ADDR_IFREQ(ifr) \
OpenPOWER on IntegriCloud