/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_physdev.c | 29 const char *indev, *outdev; in physdev_mt() local 55 outdev = physdev ? physdev->name : NULL; in physdev_mt() 59 (!!outdev ^ !(info->invert & XT_PHYSDEV_OP_BRIDGED))) in physdev_mt() 68 (!outdev ^ !!(info->invert & XT_PHYSDEV_OP_ISOUT)))) in physdev_mt() 86 if (!outdev) in physdev_mt() 89 ret = ifname_compare_aligned(outdev, info->physoutdev, info->out_mask); in physdev_mt()
|
H A D | nf_flow_table_ip.c | 250 struct net_device *outdev; in nf_flow_offload_ip_hook() local 269 outdev = rt->dst.dev; in nf_flow_offload_ip_hook() 305 skb->dev = outdev; in nf_flow_offload_ip_hook() 308 neigh_xmit(NEIGH_ARP_TABLE, outdev, &nexthop, skb); in nf_flow_offload_ip_hook() 493 struct net_device *outdev; in nf_flow_offload_ipv6_hook() local 510 outdev = rt->dst.dev; in nf_flow_offload_ipv6_hook() 546 skb->dev = outdev; in nf_flow_offload_ipv6_hook() 549 neigh_xmit(NEIGH_ND_TABLE, outdev, nexthop, skb); in nf_flow_offload_ipv6_hook()
|
H A D | nf_tables_trace.c | 84 const struct net_device *outdev) in nf_trace_fill_dev_info() 96 if (outdev) { in nf_trace_fill_dev_info() 98 htonl(outdev->ifindex))) in nf_trace_fill_dev_info() 102 htons(outdev->type))) in nf_trace_fill_dev_info() 82 nf_trace_fill_dev_info(struct sk_buff *nlskb, const struct net_device *indev, const struct net_device *outdev) nf_trace_fill_dev_info() argument
|
H A D | nfnetlink_log.c | 448 const struct net_device *outdev, in __build_packet_message() 483 /* Case 1: outdev is physical input device, we need to in __build_packet_message() 513 if (outdev) { in __build_packet_message() 516 htonl(outdev->ifindex))) in __build_packet_message() 520 /* Case 1: outdev is physical output device, we need to in __build_packet_message() 524 htonl(outdev->ifindex)) || in __build_packet_message() 530 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in __build_packet_message() 538 htonl(outdev->ifindex))) in __build_packet_message() 441 __build_packet_message(struct nfnl_log_net *log, struct nfulnl_instance *inst, const struct sk_buff *skb, unsigned int data_len, u_int8_t pf, unsigned int hooknum, const struct net_device *indev, const struct net_device *outdev, const char *prefix, unsigned int plen, const struct nfnl_ct_hook *nfnl_ct, struct nf_conn *ct, enum ip_conntrack_info ctinfo) __build_packet_message() argument
|
H A D | nfnetlink_queue.c | 390 struct net_device *outdev; in nfqnl_build_packet_message() local 422 outdev = entry->state.out; in nfqnl_build_packet_message() 524 if (outdev) { in nfqnl_build_packet_message() 526 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) in nfqnl_build_packet_message() 530 /* Case 1: outdev is physical output device, we need to in nfqnl_build_packet_message() 534 htonl(outdev->ifindex)) || in nfqnl_build_packet_message() 538 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in nfqnl_build_packet_message() 543 /* Case 2: outdev is bridge group, we need to look for in nfqnl_build_packet_message() 546 htonl(outdev->ifindex))) in nfqnl_build_packet_message() 924 /* drop all packets with either indev or outdev [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_physdev.c | 29 const char *indev, *outdev; in physdev_mt() local 55 outdev = physdev ? physdev->name : NULL; in physdev_mt() 59 (!!outdev ^ !(info->invert & XT_PHYSDEV_OP_BRIDGED))) in physdev_mt() 68 (!outdev ^ !!(info->invert & XT_PHYSDEV_OP_ISOUT)))) in physdev_mt() 86 if (!outdev) in physdev_mt() 89 ret = ifname_compare_aligned(outdev, info->physoutdev, info->out_mask); in physdev_mt()
|
H A D | nf_flow_table_ip.c | 331 struct net_device *outdev; in nf_flow_queue_xmit() local 333 outdev = dev_get_by_index_rcu(net, tuplehash->tuple.out.ifidx); in nf_flow_queue_xmit() 334 if (!outdev) in nf_flow_queue_xmit() 337 skb->dev = outdev; in nf_flow_queue_xmit() 419 struct net_device *outdev; in nf_flow_offload_ip_hook() local 448 outdev = rt->dst.dev; in nf_flow_offload_ip_hook() 449 skb->dev = outdev; in nf_flow_offload_ip_hook() 452 neigh_xmit(NEIGH_ARP_TABLE, outdev, &nexthop, skb); in nf_flow_offload_ip_hook() 715 struct net_device *outdev; in nf_flow_offload_ipv6_hook() local 743 outdev in nf_flow_offload_ipv6_hook() [all...] |
H A D | nf_tables_trace.c | 68 const struct net_device *outdev) in nf_trace_fill_dev_info() 80 if (outdev) { in nf_trace_fill_dev_info() 82 htonl(outdev->ifindex))) in nf_trace_fill_dev_info() 86 htons(outdev->type))) in nf_trace_fill_dev_info() 66 nf_trace_fill_dev_info(struct sk_buff *nlskb, const struct net_device *indev, const struct net_device *outdev) nf_trace_fill_dev_info() argument
|
H A D | nft_flow_offload.c | 81 const struct net_device *outdev; member 126 if (!info->outdev) in nft_dev_path_info() 127 info->outdev = path->dev; in nft_dev_path_info() 160 if (!info->outdev) in nft_dev_path_info() 161 info->outdev = info->indev; in nft_dev_path_info() 215 route->tuple[dir].out.ifindex = info.outdev->ifindex; in nft_dev_forward_path()
|
H A D | nfnetlink_log.c | 463 const struct net_device *outdev, in __build_packet_message() 498 /* Case 1: outdev is physical input device, we need to in __build_packet_message() 528 if (outdev) { in __build_packet_message() 531 htonl(outdev->ifindex))) in __build_packet_message() 535 /* Case 1: outdev is physical output device, we need to in __build_packet_message() 539 htonl(outdev->ifindex)) || in __build_packet_message() 545 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in __build_packet_message() 553 htonl(outdev->ifindex))) in __build_packet_message() 456 __build_packet_message(struct nfnl_log_net *log, struct nfulnl_instance *inst, const struct sk_buff *skb, unsigned int data_len, u_int8_t pf, unsigned int hooknum, const struct net_device *indev, const struct net_device *outdev, const char *prefix, unsigned int plen, const struct nfnl_ct_hook *nfnl_ct, struct nf_conn *ct, enum ip_conntrack_info ctinfo) __build_packet_message() argument
|
H A D | nfnetlink_queue.c | 403 struct net_device *outdev; in nfqnl_build_packet_message() local 441 outdev = entry->state.out; in nfqnl_build_packet_message() 545 if (outdev) { in nfqnl_build_packet_message() 547 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) in nfqnl_build_packet_message() 551 /* Case 1: outdev is physical output device, we need to in nfqnl_build_packet_message() 555 htonl(outdev->ifindex)) || in nfqnl_build_packet_message() 559 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in nfqnl_build_packet_message() 564 /* Case 2: outdev is bridge group, we need to look for in nfqnl_build_packet_message() 567 htonl(outdev->ifindex))) in nfqnl_build_packet_message() 952 /* drop all packets with either indev or outdev [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | netfilter.h | 143 struct net_device *outdev, in nf_hook_state_init() 151 p->out = outdev; in nf_hook_state_init() 207 struct net_device *indev, struct net_device *outdev, in nf_hook() 248 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook() 417 struct net_device *indev, struct net_device *outdev, in nf_hook() 139 nf_hook_state_init(struct nf_hook_state *p, unsigned int hook, u_int8_t pf, struct net_device *indev, struct net_device *outdev, struct sock *sk, struct net *net, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook_state_init() argument 205 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument 415 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | netfilter.h | 151 struct net_device *outdev, in nf_hook_state_init() 159 p->out = outdev; in nf_hook_state_init() 215 struct net_device *indev, struct net_device *outdev, in nf_hook() 256 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook() 426 struct net_device *indev, struct net_device *outdev, in nf_hook() 147 nf_hook_state_init(struct nf_hook_state *p, unsigned int hook, u_int8_t pf, struct net_device *indev, struct net_device *outdev, struct sock *sk, struct net *net, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook_state_init() argument 213 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument 424 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
H A D | br_netfilter.h | 27 struct net_device *outdev,
|
/kernel/linux/linux-6.6/include/net/netfilter/ |
H A D | br_netfilter.h | 27 struct net_device *outdev,
|
/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
H A D | gth.c | 477 struct intel_th_device *outdev = in intel_th_gth_stop() local 480 to_intel_th_driver(outdev->dev.driver); in intel_th_gth_stop() 501 outdrv->wait_empty(outdev); in intel_th_gth_stop()
|
/kernel/linux/linux-6.6/drivers/hwtracing/intel_th/ |
H A D | gth.c | 477 struct intel_th_device *outdev = in intel_th_gth_stop() local 480 to_intel_th_driver(outdev->dev.driver); in intel_th_gth_stop() 501 outdrv->wait_empty(outdev); in intel_th_gth_stop()
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | ip_tables.c | 47 const char *outdev, in ip_packet_match() 64 ret = ifname_compare_aligned(outdev, ipinfo->outiface, ipinfo->outiface_mask); in ip_packet_match() 234 const char *indev, *outdev; in ipt_do_table() local 246 outdev = state->out ? state->out->name : nulldevname; in ipt_do_table() 284 if (!ip_packet_match(ip, indev, outdev, in ipt_do_table() 45 ip_packet_match(const struct iphdr *ip, const char *indev, const char *outdev, const struct ipt_ip *ipinfo, int isfrag) ip_packet_match() argument
|
H A D | arp_tables.c | 85 const char *outdev, in arp_packet_match() 137 ret = ifname_compare(outdev, arpinfo->outiface, arpinfo->outiface_mask); in arp_packet_match() 191 const char *indev, *outdev; in arpt_do_table() local 202 outdev = state->out ? state->out->name : nulldevname; in arpt_do_table() 224 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { in arpt_do_table() 82 arp_packet_match(const struct arphdr *arphdr, struct net_device *dev, const char *indev, const char *outdev, const struct arpt_arp *arpinfo) arp_packet_match() argument
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6_tables.c | 51 const char *outdev, in ip6_packet_match() 72 ret = ifname_compare_aligned(outdev, ip6info->outiface, ip6info->outiface_mask); in ip6_packet_match() 258 const char *indev, *outdev; in ip6t_do_table() local 269 outdev = state->out ? state->out->name : nulldevname; in ip6t_do_table() 308 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6, in ip6t_do_table() 49 ip6_packet_match(const struct sk_buff *skb, const char *indev, const char *outdev, const struct ip6t_ip6 *ip6info, unsigned int *protoff, int *fragoff, bool *hotdrop) ip6_packet_match() argument
|
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | ip_tables.c | 45 const char *outdev, in ip_packet_match() 62 ret = ifname_compare_aligned(outdev, ipinfo->outiface, ipinfo->outiface_mask); in ip_packet_match() 233 const char *indev, *outdev; in ipt_do_table() local 245 outdev = state->out ? state->out->name : nulldevname; in ipt_do_table() 283 if (!ip_packet_match(ip, indev, outdev, in ipt_do_table() 43 ip_packet_match(const struct iphdr *ip, const char *indev, const char *outdev, const struct ipt_ip *ipinfo, int isfrag) ip_packet_match() argument
|
H A D | arp_tables.c | 85 const char *outdev, in arp_packet_match() 137 ret = ifname_compare(outdev, arpinfo->outiface, arpinfo->outiface_mask); in arp_packet_match() 192 const char *indev, *outdev; in arpt_do_table() local 203 outdev = state->out ? state->out->name : nulldevname; in arpt_do_table() 225 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { in arpt_do_table() 82 arp_packet_match(const struct arphdr *arphdr, struct net_device *dev, const char *indev, const char *outdev, const struct arpt_arp *arpinfo) arp_packet_match() argument
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | ip6_tables.c | 49 const char *outdev, in ip6_packet_match() 70 ret = ifname_compare_aligned(outdev, ip6info->outiface, ip6info->outiface_mask); in ip6_packet_match() 256 const char *indev, *outdev; in ip6t_do_table() local 267 outdev = state->out ? state->out->name : nulldevname; in ip6t_do_table() 306 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6, in ip6t_do_table() 47 ip6_packet_match(const struct sk_buff *skb, const char *indev, const char *outdev, const struct ip6t_ip6 *ip6info, unsigned int *protoff, u16 *fragoff, bool *hotdrop) ip6_packet_match() argument
|
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_netfilter_hooks.c | 573 * netfilter with indev and outdev set to the bridge device, 574 * but we are still able to filter on the 'real' indev/outdev 575 * because of the physdev module. For ARP, indev and outdev are the 1008 struct net_device *outdev, in br_nf_hook_thresh() 1042 nf_hook_state_init(&state, hook, NFPROTO_BRIDGE, indev, outdev, in br_nf_hook_thresh() 1005 br_nf_hook_thresh(unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) br_nf_hook_thresh() argument
|
/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_netfilter_hooks.c | 681 * netfilter with indev and outdev set to the bridge device, 682 * but we are still able to filter on the 'real' indev/outdev 683 * because of the physdev module. For ARP, indev and outdev are the 1131 struct net_device *outdev, in br_nf_hook_thresh() 1165 nf_hook_state_init(&state, hook, NFPROTO_BRIDGE, indev, outdev, in br_nf_hook_thresh() 1128 br_nf_hook_thresh(unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) br_nf_hook_thresh() argument
|