]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: review is_ephemeral()
authorPhil Sutter <phil@nwl.cc>
Sat, 28 Nov 2015 00:00:03 +0000 (01:00 +0100)
committerStephen Hemminger <shemming@brocade.com>
Sun, 29 Nov 2015 19:48:24 +0000 (11:48 -0800)
commitc29d37925aa479a6c0545fee87329ab1d248680a
treeda19f449bfe02d8c81c918bfbe4de2965b9eba10
parent596307ea3d638ea037017b0d6f31f2d04fddd296
ss: review is_ephemeral()

No need to keep static port boundaries global, they are not used
directly. Keeping them local also allows to safely reduce their names to
the minimum. Assign hardcoded fallback values also if fscanf() fails.
Get rid of unnecessary braces around return parameter.

Instead of more or less duplicating is_ephemeral() in run_ssfilter(),
simply call the function instead.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c