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
F167572957: D48701.id150051.diff
Sat, Aug 22, 7:03 PM
Unknown Object (File)
Fri, Aug 14, 10:22 PM
Unknown Object (File)
Sun, Aug 9, 9:43 AM
Unknown Object (File)
Sun, Aug 9, 9:29 AM
Unknown Object (File)
Sun, Aug 2, 3:03 AM
Unknown Object (File)
Sun, Aug 2, 1:54 AM
Unknown Object (File)
Sat, Aug 1, 4:35 AM
Unknown Object (File)
Fri, Jul 31, 12:45 AM
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