projects
/
platform
/
upstream
/
ebtables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4883ba5
)
[<fnm_at_ukrsat.com>] fix IP port output when listing the rules
author
Bart De Schuymer
<bdschuym@pandora.be>
Fri, 11 Oct 2002 18:29:00 +0000
(18:29 +0000)
committer
Bart De Schuymer
<bdschuym@pandora.be>
Fri, 11 Oct 2002 18:29:00 +0000
(18:29 +0000)
extensions/ebt_ip.c
patch
|
blob
|
history
diff --git
a/extensions/ebt_ip.c
b/extensions/ebt_ip.c
index
1351b42
..
7a054ce
100644
(file)
--- a/
extensions/ebt_ip.c
+++ b/
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()