Fix formatting of setfib opcode.
Zero fib is correct value and it conflicts with IP_FW_TARG. Use bprint_uint_arg() only when opcode contains IP_FW_TARG, otherwise just print numeric value with cleared high-order bit. MFC after: 3 days
This commit is contained in:
parent
6597f1f81f
commit
b055e3be51
@ -1590,8 +1590,11 @@ show_static_rule(struct cmdline_opts *co, struct format_opts *fo,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case O_SETFIB:
|
case O_SETFIB:
|
||||||
bprint_uint_arg(bp, "setfib ", cmd->arg1 & 0x7FFF);
|
if (cmd->arg1 == IP_FW_TARG)
|
||||||
break;
|
bprint_uint_arg(bp, "setfib ", cmd->arg1);
|
||||||
|
else
|
||||||
|
bprintf(bp, "setfib %u", cmd->arg1 & 0x7FFF);
|
||||||
|
break;
|
||||||
|
|
||||||
case O_EXTERNAL_ACTION: {
|
case O_EXTERNAL_ACTION: {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user