git://git.onelab.eu
/
ipfw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e6f201
)
Removed debug messages.
author
marta
<marta@8c455092-636d-4788-adf5-e71def0336e8>
Fri, 6 Nov 2009 16:46:01 +0000
(16:46 +0000)
committer
marta
<marta@8c455092-636d-4788-adf5-e71def0336e8>
Fri, 6 Nov 2009 16:46:01 +0000
(16:46 +0000)
dummynet/ip_fw2.c
patch
|
blob
|
history
diff --git
a/dummynet/ip_fw2.c
b/dummynet/ip_fw2.c
index
102cd5d
..
e3483df
100644
(file)
--- a/
dummynet/ip_fw2.c
+++ b/
dummynet/ip_fw2.c
@@
-2002,16
+2002,20
@@
check_uidgid(ipfw_insn_u32 *insn, int proto, struct ifnet *oif,
int match = 0;
struct sk_buff *skb = ((struct mbuf *)inp)->m_skb;
int match = 0;
struct sk_buff *skb = ((struct mbuf *)inp)->m_skb;
+#if 0 /* debug */
printf("%s opcode %d arg %d oif %p src 0x%x:%d dst 0x%x:%d\n", __FUNCTION__,
insn->o.opcode, insn->d[0], oif,
ntohl(src_ip.s_addr), ntohs(src_port),
ntohl(dst_ip.s_addr), ntohs(dst_port)
);
printf("%s opcode %d arg %d oif %p src 0x%x:%d dst 0x%x:%d\n", __FUNCTION__,
insn->o.opcode, insn->d[0], oif,
ntohl(src_ip.s_addr), ntohs(src_port),
ntohl(dst_ip.s_addr), ntohs(dst_port)
);
+#endif
if (insn->o.opcode == O_JAIL) {
#ifdef IPFW_PLANETLAB
match = (skb->skb_tag == insn->d[0]);
if (insn->o.opcode == O_JAIL) {
#ifdef IPFW_PLANETLAB
match = (skb->skb_tag == insn->d[0]);
- printf("JAIL compiled for planetlab state %d xid %d want %d result %d\n",
+#if 0 /* debug */
+ printf("JAIL compiled for planetlab xid %d want %d result %d\n",
skb->skb_tag, insn->d[0], match);
skb->skb_tag, insn->d[0], match);
+#endif
#endif
return match;
#endif
return match;