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)
Sep 8 2025, 8:52 AM
Unknown Object (File)
Aug 28 2025, 2:36 PM
Unknown Object (File)
Aug 14 2025, 10:24 PM
Unknown Object (File)
Aug 10 2025, 7:03 AM
Unknown Object (File)
Aug 5 2025, 12:42 PM
Unknown Object (File)
Aug 4 2025, 3:48 AM
Unknown Object (File)
Jul 27 2025, 10:24 AM
Unknown Object (File)
Jul 14 2025, 1:05 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