Home
last modified time | relevance | path

Searched refs:nf_bridge (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/include/linux/
Dnetfilter_bridge.h40 const struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in nf_bridge_get_physinif() local
42 if (!nf_bridge) in nf_bridge_get_physinif()
45 return nf_bridge->physindev ? nf_bridge->physindev->ifindex : 0; in nf_bridge_get_physinif()
50 const struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in nf_bridge_get_physoutif() local
52 if (!nf_bridge) in nf_bridge_get_physoutif()
55 return nf_bridge->physoutdev ? nf_bridge->physoutdev->ifindex : 0; in nf_bridge_get_physoutif()
61 const struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in nf_bridge_get_physindev() local
63 return nf_bridge ? nf_bridge->physindev : NULL; in nf_bridge_get_physindev()
69 const struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in nf_bridge_get_physoutdev() local
71 return nf_bridge ? nf_bridge->physoutdev : NULL; in nf_bridge_get_physoutdev()
[all …]
/Linux-v5.10/net/bridge/
Dbr_netfilter_hooks.c247 const struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in nf_bridge_update_protocol() local
249 switch (nf_bridge->orig_proto) { in nf_bridge_update_protocol()
277 struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in br_nf_pre_routing_finish_bridge() local
282 skb->dev = nf_bridge->physindev; in br_nf_pre_routing_finish_bridge()
291 nf_bridge->neigh_header, in br_nf_pre_routing_finish_bridge()
294 nf_bridge->bridged_dnat = 1; in br_nf_pre_routing_finish_bridge()
308 const struct nf_bridge_info *nf_bridge) in br_nf_ipv4_daddr_was_changed() argument
310 return ip_hdr(skb)->daddr != nf_bridge->ipv4_daddr; in br_nf_ipv4_daddr_was_changed()
356 struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in br_nf_pre_routing_finish() local
360 nf_bridge->frag_max_size = IPCB(skb)->frag_max_size; in br_nf_pre_routing_finish()
[all …]
Dbr_netfilter_ipv6.c149 const struct nf_bridge_info *nf_bridge) in br_nf_ipv6_daddr_was_changed() argument
151 return memcmp(&nf_bridge->ipv6_daddr, &ipv6_hdr(skb)->daddr, in br_nf_ipv6_daddr_was_changed()
162 struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); in br_nf_pre_routing_finish_ipv6() local
167 nf_bridge->frag_max_size = IP6CB(skb)->frag_max_size; in br_nf_pre_routing_finish_ipv6()
169 if (nf_bridge->pkt_otherhost) { in br_nf_pre_routing_finish_ipv6()
171 nf_bridge->pkt_otherhost = false; in br_nf_pre_routing_finish_ipv6()
173 nf_bridge->in_prerouting = 0; in br_nf_pre_routing_finish_ipv6()
174 if (br_nf_ipv6_daddr_was_changed(skb, nf_bridge)) { in br_nf_pre_routing_finish_ipv6()
184 skb->dev = nf_bridge->physindev; in br_nf_pre_routing_finish_ipv6()
195 rt = bridge_parent_rtable(nf_bridge->physindev); in br_nf_pre_routing_finish_ipv6()
[all …]
/Linux-v5.10/net/netfilter/
Dnf_queue.c80 struct nf_bridge_info *nf_bridge; in __nf_queue_entry_init_physdevs() local
82 nf_bridge = nf_bridge_info_get(skb); in __nf_queue_entry_init_physdevs()
83 if (nf_bridge) { in __nf_queue_entry_init_physdevs()