Searched refs:nf_bridge (Results 1 – 16 of 16) sorted by relevance
46 (skb->nf_bridge->data))->daddr.ipv4)181 skb->nf_bridge = kzalloc(sizeof(struct nf_bridge_info), GFP_ATOMIC); in nf_bridge_alloc()182 if (likely(skb->nf_bridge)) in nf_bridge_alloc()183 atomic_set(&(skb->nf_bridge->use), 1); in nf_bridge_alloc()185 return skb->nf_bridge; in nf_bridge_alloc()190 struct nf_bridge_info *nf_bridge = skb->nf_bridge; in nf_bridge_unshare() local192 if (atomic_read(&nf_bridge->use) > 1) { in nf_bridge_unshare()196 memcpy(tmp, nf_bridge, sizeof(struct nf_bridge_info)); in nf_bridge_unshare()199 nf_bridge_put(nf_bridge); in nf_bridge_unshare()200 nf_bridge = tmp; in nf_bridge_unshare()[all …]
35 if (skb->nf_bridge && (skb->nf_bridge->mask & BRNF_BRIDGED_DNAT)) { in br_dev_xmit()
53 if (skb->nf_bridge && in nf_bridge_maybe_copy_header()54 skb->nf_bridge->mask & (BRNF_BRIDGED | BRNF_BRIDGED_DNAT)) in nf_bridge_maybe_copy_header()73 if (unlikely(skb->nf_bridge->mask & BRNF_PPPoE)) in nf_bridge_mtu_reduction()82 struct nf_bridge_info *nf_bridge = skb->nf_bridge; in br_nf_pre_routing_finish_bridge_slow() local85 nf_bridge->mask ^= BRNF_BRIDGED_DNAT; in br_nf_pre_routing_finish_bridge_slow()87 skb->nf_bridge->data, ETH_HLEN-ETH_ALEN); in br_nf_pre_routing_finish_bridge_slow()88 skb->dev = nf_bridge->physindev; in br_nf_pre_routing_finish_bridge_slow()96 if (skb->nf_bridge) in nf_bridge_pad()
444 struct nf_bridge_info *nf_bridge; member2411 static inline void nf_bridge_put(struct nf_bridge_info *nf_bridge) in nf_bridge_put() argument2413 if (nf_bridge && atomic_dec_and_test(&nf_bridge->use)) in nf_bridge_put()2414 kfree(nf_bridge); in nf_bridge_put()2416 static inline void nf_bridge_get(struct nf_bridge_info *nf_bridge) in nf_bridge_get() argument2418 if (nf_bridge) in nf_bridge_get()2419 atomic_inc(&nf_bridge->use); in nf_bridge_get()2433 nf_bridge_put(skb->nf_bridge); in nf_reset()2434 skb->nf_bridge = NULL; in nf_reset()2458 dst->nf_bridge = src->nf_bridge; in __nf_copy()[all …]
31 const struct nf_bridge_info *nf_bridge; in physdev_mt() local36 if (!(nf_bridge = skb->nf_bridge)) { in physdev_mt()58 (!!(nf_bridge->mask & BRNF_BRIDGED) ^ in physdev_mt()63 (!nf_bridge->physindev ^ !!(info->invert & XT_PHYSDEV_OP_ISIN))) || in physdev_mt()65 (!nf_bridge->physoutdev ^ !!(info->invert & XT_PHYSDEV_OP_ISOUT)))) in physdev_mt()70 indev = nf_bridge->physindev ? nf_bridge->physindev->name : nulldevname; in physdev_mt()79 outdev = nf_bridge->physoutdev ? in physdev_mt()80 nf_bridge->physoutdev->name : nulldevname; in physdev_mt()
103 if (entry->skb->nf_bridge) { in nf_queue_entry_release_refs()104 struct nf_bridge_info *nf_bridge = entry->skb->nf_bridge; in nf_queue_entry_release_refs() local106 if (nf_bridge->physindev) in nf_queue_entry_release_refs()107 dev_put(nf_bridge->physindev); in nf_queue_entry_release_refs()108 if (nf_bridge->physoutdev) in nf_queue_entry_release_refs()109 dev_put(nf_bridge->physoutdev); in nf_queue_entry_release_refs()177 if (skb->nf_bridge) { in __nf_queue()178 physindev = skb->nf_bridge->physindev; in __nf_queue()181 physoutdev = skb->nf_bridge->physoutdev; in __nf_queue()213 if (skb->nf_bridge) in nf_bridge_adjust_skb_data()[all …]
308 if (entskb->nf_bridge && entskb->nf_bridge->physindev) in nfqnl_build_packet_message()310 htonl(entskb->nf_bridge->physindev->ifindex)); in nfqnl_build_packet_message()334 if (entskb->nf_bridge && entskb->nf_bridge->physoutdev) in nfqnl_build_packet_message()336 htonl(entskb->nf_bridge->physoutdev->ifindex)); in nfqnl_build_packet_message()529 if (entry->skb->nf_bridge) { in dev_cmp()530 if (entry->skb->nf_bridge->physindev && in dev_cmp()531 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp()533 if (entry->skb->nf_bridge->physoutdev && in dev_cmp()534 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp()
419 if (skb->nf_bridge && skb->nf_bridge->physindev) in __build_packet_message()421 htonl(skb->nf_bridge->physindev->ifindex)); in __build_packet_message()446 if (skb->nf_bridge && skb->nf_bridge->physoutdev) in __build_packet_message()448 htonl(skb->nf_bridge->physoutdev->ifindex)); in __build_packet_message()
444 if (skb->nf_bridge) { in log_packet_common()448 physindev = skb->nf_bridge->physindev; in log_packet_common()451 physoutdev = skb->nf_bridge->physoutdev; in log_packet_common()
44 if (skb->nf_bridge && in nf_ct6_defrag_user()45 skb->nf_bridge->mask & BRNF_NF_BRIDGE_PREROUTING) in nf_ct6_defrag_user()
382 if (entry->skb->nf_bridge) { in dev_cmp()383 if (entry->skb->nf_bridge->physindev && in dev_cmp()384 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp()386 if (entry->skb->nf_bridge->physoutdev && in dev_cmp()387 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp()
54 if (skb->nf_bridge && in nf_ct_defrag_user()55 skb->nf_bridge->mask & BRNF_NF_BRIDGE_PREROUTING) in nf_ct_defrag_user()
381 if (entry->skb->nf_bridge) { in dev_cmp()382 if (entry->skb->nf_bridge->physindev && in dev_cmp()383 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp()385 if (entry->skb->nf_bridge->physoutdev && in dev_cmp()386 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp()
326 #define PHYSDEV(dir) (nf_bridge->dir ? nf_bridge->dir->name : NULL) in hash_netiface4_kadt()331 const struct nf_bridge_info *nf_bridge = skb->nf_bridge; in hash_netiface4_kadt() local333 if (!nf_bridge) in hash_netiface4_kadt()627 const struct nf_bridge_info *nf_bridge = skb->nf_bridge; in hash_netiface6_kadt() local629 if (!nf_bridge) in hash_netiface6_kadt()
494 if (skb->nf_bridge) in ip_fragment()
463 nf_bridge_put(skb->nf_bridge); in skb_release_head_state()