equal
deleted
inserted
replaced
110 #ifdef __KERNEL__ |
110 #ifdef __KERNEL__ |
111 |
111 |
112 static inline void nf_ct_dump_tuple_ip(const struct nf_conntrack_tuple *t) |
112 static inline void nf_ct_dump_tuple_ip(const struct nf_conntrack_tuple *t) |
113 { |
113 { |
114 #ifdef DEBUG |
114 #ifdef DEBUG |
115 printk("tuple %p: %u " NIPQUAD_FMT ":%hu -> " NIPQUAD_FMT ":%hu\n", |
115 printk("tuple %p: %u %pI4:%hu -> %pI4:%hu\n", |
116 t, t->dst.protonum, |
116 t, t->dst.protonum, |
117 NIPQUAD(t->src.u3.ip), ntohs(t->src.u.all), |
117 &t->src.u3.ip, ntohs(t->src.u.all), |
118 NIPQUAD(t->dst.u3.ip), ntohs(t->dst.u.all)); |
118 &t->dst.u3.ip, ntohs(t->dst.u.all)); |
119 #endif |
119 #endif |
120 } |
120 } |
121 |
121 |
122 static inline void nf_ct_dump_tuple_ipv6(const struct nf_conntrack_tuple *t) |
122 static inline void nf_ct_dump_tuple_ipv6(const struct nf_conntrack_tuple *t) |
123 { |
123 { |
124 #ifdef DEBUG |
124 #ifdef DEBUG |
125 printk("tuple %p: %u " NIP6_FMT " %hu -> " NIP6_FMT " %hu\n", |
125 printk("tuple %p: %u %pI6 %hu -> %pI6 %hu\n", |
126 t, t->dst.protonum, |
126 t, t->dst.protonum, |
127 NIP6(*(struct in6_addr *)t->src.u3.all), ntohs(t->src.u.all), |
127 t->src.u3.all, ntohs(t->src.u.all), |
128 NIP6(*(struct in6_addr *)t->dst.u3.all), ntohs(t->dst.u.all)); |
128 t->dst.u3.all, ntohs(t->dst.u.all)); |
129 #endif |
129 #endif |
130 } |
130 } |
131 |
131 |
132 static inline void nf_ct_dump_tuple(const struct nf_conntrack_tuple *t) |
132 static inline void nf_ct_dump_tuple(const struct nf_conntrack_tuple *t) |
133 { |
133 { |