diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 1a38076d7bc9..a02ce39cf3fd 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -1590,8 +1590,11 @@ show_static_rule(struct cmdline_opts *co, struct format_opts *fo, break; case O_SETFIB: - bprint_uint_arg(bp, "setfib ", cmd->arg1 & 0x7FFF); - break; + if (cmd->arg1 == IP_FW_TARG) + bprint_uint_arg(bp, "setfib ", cmd->arg1); + else + bprintf(bp, "setfib %u", cmd->arg1 & 0x7FFF); + break; case O_EXTERNAL_ACTION: { /*