FIB: still limited to 16 FIBs (setfib)?

Hartmann, O. ohartmann at walstatt.org
Sun Sep 22 13:48:09 UTC 2019


In the recent documentation as of FreeBSD CURRENT (FreeBSD-13), the
manpage of ipfw(8) states at section designated "RULE ACTION",
paragraph "setfib" that the current implementation of setfib is limited
to 0 - 15 FIBs and the manpage of ipfw(8) refers to setfib(2) at that
point.
Checking setfib(2), the manpage states (N is the max number of
predefined FIBs used by the kernel and configured via OID net.fibs="N"
and set via /boot/loader.conf[.local] or as a kernel config option):
"... where N is an integer. This maximum is capped at 65536 due to the
implementation storing the fib number in a 16-bit field in the mbuf(9)
packet header, ..."

I can not extract the limitation of N <= 16 (resulting in 0 - 15 FIBs)
by that reference. Either there is a "bug" in the manpage and refering
to an outdated FIB implementation, or ipfw is indeed incapable of
handling larger amounts of FIBs.

Can someone shed some light on this? Thanks.

Kind regards,

oh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20190922/d4a8ee04/attachment.sig>


More information about the freebsd-ipfw mailing list