Searched refs:nf_bridge (Results 1 – 10 of 10) sorted by relevance
52 (skb->nf_bridge->data))->daddr.ipv4)150 skb->nf_bridge = kzalloc(sizeof(struct nf_bridge_info), GFP_ATOMIC); in nf_bridge_alloc()151 if (likely(skb->nf_bridge)) in nf_bridge_alloc()152 atomic_set(&(skb->nf_bridge->use), 1); in nf_bridge_alloc()154 return skb->nf_bridge; in nf_bridge_alloc()159 struct nf_bridge_info *nf_bridge = skb->nf_bridge; in nf_bridge_unshare() local161 if (atomic_read(&nf_bridge->use) > 1) { in nf_bridge_unshare()165 memcpy(tmp, nf_bridge, sizeof(struct nf_bridge_info)); in nf_bridge_unshare()167 nf_bridge_put(nf_bridge); in nf_bridge_unshare()169 nf_bridge = tmp; in nf_bridge_unshare()[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()83 outdev = nf_bridge->physoutdev ? in physdev_mt()84 nf_bridge->physoutdev->name : nulldevname; in physdev_mt()
91 if (entry->skb->nf_bridge) { in nf_queue_entry_release_refs()92 struct nf_bridge_info *nf_bridge = entry->skb->nf_bridge; in nf_queue_entry_release_refs() local94 if (nf_bridge->physindev) in nf_queue_entry_release_refs()95 dev_put(nf_bridge->physindev); in nf_queue_entry_release_refs()96 if (nf_bridge->physoutdev) in nf_queue_entry_release_refs()97 dev_put(nf_bridge->physoutdev); in nf_queue_entry_release_refs()163 if (skb->nf_bridge) { in __nf_queue()164 physindev = skb->nf_bridge->physindev; in __nf_queue()167 physoutdev = skb->nf_bridge->physoutdev; in __nf_queue()
307 if (entskb->nf_bridge && entskb->nf_bridge->physindev) in nfqnl_build_packet_message()309 htonl(entskb->nf_bridge->physindev->ifindex)); in nfqnl_build_packet_message()332 if (entskb->nf_bridge && entskb->nf_bridge->physoutdev) in nfqnl_build_packet_message()334 htonl(entskb->nf_bridge->physoutdev->ifindex)); in nfqnl_build_packet_message()517 if (entry->skb->nf_bridge) { in dev_cmp()518 if (entry->skb->nf_bridge->physindev && in dev_cmp()519 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp()521 if (entry->skb->nf_bridge->physoutdev && in dev_cmp()522 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp()
411 if (skb->nf_bridge && skb->nf_bridge->physindev) in __build_packet_message()413 htonl(skb->nf_bridge->physindev->ifindex)); in __build_packet_message()438 if (skb->nf_bridge && skb->nf_bridge->physoutdev) in __build_packet_message()440 htonl(skb->nf_bridge->physoutdev->ifindex)); in __build_packet_message()
391 if (entry->skb->nf_bridge) { in dev_cmp()392 if (entry->skb->nf_bridge->physindev && in dev_cmp()393 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp()395 if (entry->skb->nf_bridge->physoutdev && in dev_cmp()396 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp()
388 if (entry->skb->nf_bridge) { in dev_cmp()389 if (entry->skb->nf_bridge->physindev && in dev_cmp()390 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp()392 if (entry->skb->nf_bridge->physoutdev && in dev_cmp()393 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp()
105 || (nskb->nf_bridge && nskb->nf_bridge->mask & BRNF_BRIDGED) in send_reset()
394 if (skb->nf_bridge) { in ipt_log_packet()398 physindev = skb->nf_bridge->physindev; in ipt_log_packet()401 physoutdev = skb->nf_bridge->physoutdev; in ipt_log_packet()
389 nf_bridge_put(skb->nf_bridge); in skb_release_head_state()