diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-10-11 18:29:00 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-10-11 18:29:00 +0000 |
commit | 490166ff3459fa4fbbe69e98959364977f2b47cb (patch) | |
tree | 58d74a409448883dc67f6c9b6742e51e5ae08d42 /userspace/ebtables2 | |
parent | a640a7722aee6c215533d3ea334b9faf01b7f886 (diff) |
[<fnm_at_ukrsat.com>] fix IP port output when listing the rules
Diffstat (limited to 'userspace/ebtables2')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/userspace/ebtables2/extensions/ebt_ip.c b/userspace/ebtables2/extensions/ebt_ip.c index 1351b42..7a054ce 100644 --- a/userspace/ebtables2/extensions/ebt_ip.c +++ b/userspace/ebtables2/extensions/ebt_ip.c @@ -207,9 +207,9 @@ parse_port_range(const char *protocol, const char *portstring, uint16_t *ports) static void print_port_range(uint16_t *ports) { if (ports[0] == ports[1]) - printf("%d ", ntohs(ports[0])); + printf("%d ", ports[0]); else - printf("%d:%d ", ntohs(ports[0]), ntohs(ports[1])); + printf("%d:%d ", ports[0], ports[1]); } static void print_help() |