mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 22:02:24 +00:00
ss: fix tests to reflect compact output
This fixes broken tests in commit c4f5862994
("ss: use compact output
for undetected screen width")
It also escapes stars as grep is used and more bugs could sneak under
the radar with the previous solution.
Signed-off-by: Peter Junos <petoju@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
8f9f2b9cdf
commit
39995691b5
@ -21,16 +21,16 @@ ts_ss "$0" "Match (dport)" -Htna '( dport = 22 )'
|
||||
test_on "ESTAB 0 0 10.0.0.1:36266 10.0.0.1:22"
|
||||
|
||||
ts_ss "$0" "Match src = 0.0.0.0" -Htna src = 0.0.0.0
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:*"
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:\*"
|
||||
|
||||
ts_ss "$0" "Match src 0.0.0.0" -Htna src 0.0.0.0
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:*"
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:\*"
|
||||
|
||||
ts_ss "$0" "Match src sport" -Htna src 0.0.0.0 sport = 22
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:*"
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:\*"
|
||||
|
||||
ts_ss "$0" "Match src and sport" -Htna src 0.0.0.0 and sport = 22
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:*"
|
||||
test_on "LISTEN 0 128 0.0.0.0:22 0.0.0.0:\*"
|
||||
|
||||
ts_ss "$0" "Match src and sport and dport" -Htna src 10.0.0.1 and sport = 22 and dport = 50312
|
||||
test_on "ESTAB 0 0 10.0.0.1:22 10.0.0.2:50312"
|
||||
|
Loading…
Reference in New Issue
Block a user