git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work on the radix code, added support to compile on OpenWRT,
[ipfw.git]
/
ipfw
/
ipfw2.c
diff --git
a/ipfw/ipfw2.c
b/ipfw/ipfw2.c
index
571ff39
..
5d70328
100644
(file)
--- a/
ipfw/ipfw2.c
+++ b/
ipfw/ipfw2.c
@@
-365,8
+365,8
@@
do_cmd(int optname, void *optval, uintptr_t optlen)
if (s < 0)
err(EX_UNAVAILABLE, "socket");
if (s < 0)
err(EX_UNAVAILABLE, "socket");
- if (optname == IP_FW_GET || optname == IP_
FW_DYN
_GET ||
- optname == IP_
DUMMYNET
_GET ||
+ if (optname == IP_FW_GET || optname == IP_
DUMMYNET
_GET ||
+ optname == IP_
FW_DYN
_GET ||
optname == IP_FW_ADD || optname == IP_FW_TABLE_LIST ||
optname == IP_FW_TABLE_GETSIZE ||
optname == IP_FW_NAT_GET_CONFIG ||
optname == IP_FW_ADD || optname == IP_FW_TABLE_LIST ||
optname == IP_FW_TABLE_GETSIZE ||
optname == IP_FW_NAT_GET_CONFIG ||
@@
-2777,7
+2777,7
@@
chkarg:
* the routing code seems to use it too.
*/
p->sa.sin_family = AF_INET;
* the routing code seems to use it too.
*/
p->sa.sin_family = AF_INET;
-
//
p->sa.sin_len = sizeof(struct sockaddr_in);
+ p->sa.sin_len = sizeof(struct sockaddr_in);
p->sa.sin_port = 0;
/*
* locate the address-port separator (':' or ',')
p->sa.sin_port = 0;
/*
* locate the address-port separator (':' or ',')