tcpconns plugin: Fix an endianness problem under *BSD.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 24 Jan 2009 10:00:30 +0000 (11:00 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 24 Jan 2009 10:03:28 +0000 (11:03 +0100)
commit3f786367e7dfe91efbc602ba31fe39d5192117ea
treebee62bd281e7b1b5e8c5afd0146acf2d7cd9b01a
parent8455c2452e0249631dbb12b9902cfdb2e61f11e7
tcpconns plugin: Fix an endianness problem under *BSD.

The port numbers were assumed to be in the host's byte order, when in
fact they are in network byte order (big endian). The patch adds `ntohs'
where necessary to fix this problem.

Resolves: #35
src/tcpconns.c