]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iprule: Allow specifying ports in hexadecimal notation
authorIdo Schimmel <idosch@nvidia.com>
Tue, 25 Feb 2025 09:09:15 +0000 (11:09 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 28 Feb 2025 15:48:04 +0000 (15:48 +0000)
commitc7aa222948b21ebc926c27a35963871fb774def5
tree8661a3bf83ba79ae05306ffc6843071da54ff4c5
parent64680a2ec5348fc7fa7466af01a82fdd5ef5b044
iprule: Allow specifying ports in hexadecimal notation

This will be useful when enabling port masks in the next patch.

Before:

 # ip rule add sport 0x1 table 100
 Invalid "sport"

After:

 # ip rule add sport 0x1 table 100
 $ ip rule show sport 0x1
 32765:  from all sport 1 lookup 100

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iprule.c