]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: change aafilter port from int to long (inode support)
authorMathieu Schroeter <mathieu@schroetersa.ch>
Tue, 8 Aug 2023 21:42:57 +0000 (23:42 +0200)
committerDavid Ahern <dsahern@kernel.org>
Sun, 13 Aug 2023 16:24:36 +0000 (10:24 -0600)
commit012cb5152d05122299384c9159ea82d059c80873
treed69089cb5c59db09b98e16dcca6f16a944a1eb39
parentdb7fb3f1965751444c3b743ba0253061fd7e3b44
ss: change aafilter port from int to long (inode support)

The aafilter struct considers the port as (usually) 32 bit signed
integer. In case of a unix socket, the port is used with an inode
number which is an unsigned int. In this case, the 'ss' command
fails because it assumes that the value does not look like a port
(<0).

Here an example of command call where the inode is passed and
is larger than a signed integer:

ss -H -A unix_stream src :2259952798

Signed-off-by: Mathieu Schroeter <mathieu@schroetersa.ch>
Signed-off-by: David Ahern <dsahern@kernel.org>
misc/ss.c