[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#761418: freebsd-net-tools: netstat issues on 9.0 kernel



tags 761418 + pending
thanks

On 10/10/14 01:16, Steven Chamberlain wrote:
> The problem affecting the virtuoso-opensource testsuite is that when
> recent versions of netstat run on a 9.0 kernel (such as on the buildds),
> the word 'LISTEN' is not being shown in the output (the 'state' column).

Actually, TCP sockets were not being listed at all.  This is because of
a kernel ABI break from kfreebsd-9 to 10.x:

  * struct tcpcb gained a u_int (4 or 8 bytes)
  * that displaces struct xtcpcb->(struct xsocket *)xt_socket
  * therefore struct xtcpcb->xt_socket->xso_protocol has the wrong value
and never == 6 (TCP)

A simple hack allows to detect and fix this in the situation of 10.x
userland running on 9.0 kernel (such as on the buildds, or mid-upgrade).
 This will be included in the next upload.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: