Page MenuHomeFreeBSD

ip6addrctl(8): Strictly check the number of arguments
ClosedPublic

Authored by zlei on Jan 27 2025, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 15, 2:18 AM
Unknown Object (File)
Thu, May 14, 7:51 PM
Unknown Object (File)
Thu, May 14, 5:20 PM
Unknown Object (File)
Tue, May 12, 11:46 AM
Unknown Object (File)
Tue, Apr 28, 7:43 AM
Unknown Object (File)
Sun, Apr 26, 4:46 AM
Unknown Object (File)
Sat, Apr 25, 11:18 PM
Unknown Object (File)
Apr 24 2026, 3:59 PM
Subscribers

Details

Summary

The additional arguments are useless but may tempt user a wrong usage.

MFC after: 1 week

Test Plan

Before this change:

# ip6addrctl show ::/0
Prefix                          Prec Label      Use
::1/128                           50     0        0
::/0                              40     1        0
::ffff:0.0.0.0/96                 35     4        0
2002::/16                         30     2        0
2001::/32                          5     5        0
fc00::/7                           3    13        0
::/96                              1     3        0
fec0::/10                          1    11        0
3ffe::/16                          1    12        0

After the change:

# ip6addrctl show ::/0
usage: ip6addrctl [show]
       ip6addrctl add <prefix> <precedence> <label>
       ip6addrctl delete <prefix>
       ip6addrctl flush
       ip6addrctl install <configfile>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable