author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 24 Jan 2009 10:00:30 +0000 (11:00 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 24 Jan 2009 10:03:28 +0000 (11:03 +0100) | ||
commit | 3f786367e7dfe91efbc602ba31fe39d5192117ea | |
tree | bee62bd281e7b1b5e8c5afd0146acf2d7cd9b01a | tree | snapshot |
parent | 8455c2452e0249631dbb12b9902cfdb2e61f11e7 | commit | diff |
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
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 | diff | blob | history |