Package: iproute
Version: 20080725-2
Severity: normal

the parsing of the filter options for >= and/or <= seems flawed
as these results differ significantly:

netstat -tn | awk '$4 ~/:406[0-9]/ && $6 == "ESTABLISHED" { ++num; } END { 
print num; }'
17015

ss state established \( sport \>= :4060  sport \<= :4069 \) | wc -l
4850

ss -n state established | awk '$3 ~ /:406[0-9]/ { ++num; } END { print num; }'
16984

note that a long list of sports like this comes closer to the
correct result but fails because the list gets too long (i
guess):

ss state established \( sport = :4060  or sport = :4061 or sport = :4062  or 
sport = :4063 or sport = :4064  or sport = :4065 or sport = :4066 \) | wc -l
7675

one more sport in that list gives me this result:

ss state established \( sport = :4060  or sport = :4061 or sport = :4062  or 
sport = :4063 or sport = :4064  or sport = :4065 or sport = :4066  or sport = 
:4067 \) 
Recv-Q Send-Q                                          Local Address:Port       
                                       Peer Address:Port   
Aborted




-- System Information:
Debian Release: 5.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages iproute depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries
ii  libdb4.6                      4.6.21-12  Berkeley v4.6 Database Libraries [

Versions of packages iproute recommends:
pn  libatm1                       <none>     (no description available)

Versions of packages iproute suggests:
pn  iproute-doc                   <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to