Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- linux-3.2.24/net/ipv4/netfilter/ipt_LOG.c 2012-07-25 03:11:50.000000000 +0000
- +++ ../linux-3.2.24/net/ipv4/netfilter/ipt_LOG.c 2012-08-08 17:04:52.000000000 +0000
- @@ -25,6 +25,7 @@
- #include <linux/netfilter_ipv4/ipt_LOG.h>
- #include <net/netfilter/nf_log.h>
- #include <net/netfilter/xt_log.h>
- +#include <net/netfilter/nf_conntrack.h>
- MODULE_LICENSE("GPL");
- MODULE_AUTHOR("Netfilter Core Team <[email protected]>");
- @@ -348,6 +349,13 @@
- if (!iphoff && skb->mark)
- sb_add(m, "MARK=0x%x ", skb->mark);
- + /* DEBUGGING CONNTRACK */
- + enum ip_conntrack_info _ctinfo;
- + const struct nf_conn *_nf_conn;
- + _nf_conn = nf_ct_get(skb, &_ctinfo);
- + if (_nf_conn)
- + sb_add(m, "CONNMARK=0x%x/0x%x ", _nf_conn->mark, _ctinfo);
- +
- /* Proto Max log string length */
- /* IP: 40+46+6+11+127 = 230 */
- /* TCP: 10+max(25,20+30+13+9+32+11+127) = 252 */
Advertisement
Add Comment
Please, Sign In to add comment