commit | 2a9b5889bfbb29ef9ba53642f19449313f30f634 | [log] [tgz] |
---|---|---|
author | Bart De Schuymer <bdschuym@pandora.be> | Fri Oct 11 18:29:00 2002 +0000 |
committer | Bart De Schuymer <bdschuym@pandora.be> | Fri Oct 11 18:29:00 2002 +0000 |
tree | 0aab77792b5de84db1018470c69ff3b032ded243 | |
parent | 4883ba50f8d0a8db479269939fe5afbfe399e0af [diff] |
[<fnm_at_ukrsat.com>] fix IP port output when listing the rules
diff --git a/extensions/ebt_ip.c b/extensions/ebt_ip.c index 1351b42..7a054ce 100644 --- a/extensions/ebt_ip.c +++ b/extensions/ebt_ip.c
@@ -207,9 +207,9 @@ 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()