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)
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)
Fri, Apr 24, 3:59 PM
Unknown Object (File)
Wed, Apr 22, 8:32 AM
Unknown Object (File)
Tue, Apr 21, 11:54 PM
Unknown Object (File)
Mon, Apr 20, 12:55 AM
Unknown Object (File)
Sun, Apr 19, 1:29 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