X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=dummynet%2Fip_fw2.c;h=102cd5d616c30ade3bf29057f4473fb2326d85c2;hb=3e6f20122e1a37a4a6c84b0821827a8d98f0f8ec;hp=39d6ab73ca1e1c0aeda93640c484a79f5a97463a;hpb=5f337135c613b2ee3cb24ade7617ecaae0a74681;p=ipfw.git diff --git a/dummynet/ip_fw2.c b/dummynet/ip_fw2.c index 39d6ab7..102cd5d 100644 --- a/dummynet/ip_fw2.c +++ b/dummynet/ip_fw2.c @@ -2002,9 +2002,17 @@ check_uidgid(ipfw_insn_u32 *insn, int proto, struct ifnet *oif, int match = 0; struct sk_buff *skb = ((struct mbuf *)inp)->m_skb; + 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) + ); 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", + skb->skb_tag, insn->d[0], match); + #endif return match; }