/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_nat_ovs.c | 13 enum nf_nat_manip_type maniptype) in nf_ct_nat_execute() 19 if (maniptype == NF_NAT_MANIP_SRC) in nf_ct_nat_execute() 55 if (!nf_nat_initialized(ct, maniptype)) { in nf_ct_nat_execute() 61 ? nf_nat_setup_info(ct, range, maniptype) in nf_ct_nat_execute() 80 *action |= BIT(maniptype); in nf_ct_nat_execute() 89 enum nf_nat_manip_type maniptype; in nf_ct_nat() local 106 maniptype = ct->status & IPS_SRC_NAT in nf_ct_nat() 109 maniptype = ct->status & IPS_SRC_NAT in nf_ct_nat() 112 maniptype = NF_NAT_MANIP_SRC; in nf_ct_nat() 114 maniptype in nf_ct_nat() 10 nf_ct_nat_execute(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, int *action, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype) nf_ct_nat_execute() argument [all...] |
H A D | nf_nat_proto.c | 36 enum nf_nat_manip_type maniptype); 42 enum nf_nat_manip_type maniptype, bool do_csum) in __udp_manip_pkt() 46 if (maniptype == NF_NAT_MANIP_SRC) { in __udp_manip_pkt() 56 nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in __udp_manip_pkt() 68 enum nf_nat_manip_type maniptype) in udp_manip_pkt() 76 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, !!hdr->check); in udp_manip_pkt() 84 enum nf_nat_manip_type maniptype) in udplite_manip_pkt() 93 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, true); in udplite_manip_pkt() 102 enum nf_nat_manip_type maniptype) in sctp_manip_pkt() 120 if (maniptype in sctp_manip_pkt() 39 __udp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, struct udphdr *hdr, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, bool do_csum) __udp_manip_pkt() argument 65 udp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) udp_manip_pkt() argument 81 udplite_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) udplite_manip_pkt() argument 99 sctp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) sctp_manip_pkt() argument 141 tcp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) tcp_manip_pkt() argument 183 dccp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) dccp_manip_pkt() argument 223 icmp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) icmp_manip_pkt() argument 254 icmpv6_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) icmpv6_manip_pkt() argument 278 gre_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) gre_manip_pkt() argument 317 l4proto_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) l4proto_manip_pkt() argument 353 nf_nat_ipv4_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) nf_nat_ipv4_manip_pkt() argument 381 nf_nat_ipv6_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) nf_nat_ipv6_manip_pkt() argument 445 nf_nat_ipv4_csum_update(struct sk_buff *skb, unsigned int iphdroff, __sum16 *check, const struct nf_conntrack_tuple *t, enum nf_nat_manip_type maniptype) nf_nat_ipv4_csum_update() argument 463 nf_nat_ipv6_csum_update(struct sk_buff *skb, unsigned int iphdroff, __sum16 *check, const struct nf_conntrack_tuple *t, enum nf_nat_manip_type maniptype) nf_nat_ipv6_csum_update() argument 484 nf_csum_update(struct sk_buff *skb, unsigned int iphdroff, __sum16 *check, const struct nf_conntrack_tuple *t, enum nf_nat_manip_type maniptype) nf_csum_update() argument [all...] |
H A D | nf_nat_core.c | 298 enum nf_nat_manip_type maniptype, in l4proto_in_range() 315 if (maniptype == NF_NAT_MANIP_SRC) in l4proto_in_range() 397 enum nf_nat_manip_type maniptype) in find_best_ips_proto() 409 if (maniptype == NF_NAT_MANIP_SRC) in find_best_ips_proto() 460 /* Alter the per-proto part of the tuple (depending on maniptype), to 467 enum nf_nat_manip_type maniptype, in nf_nat_l4proto_unique_tuple() 495 if (maniptype == NF_NAT_MANIP_SRC) in nf_nat_l4proto_unique_tuple() 514 if (maniptype == NF_NAT_MANIP_SRC) in nf_nat_l4proto_unique_tuple() 527 if (maniptype == NF_NAT_MANIP_DST) in nf_nat_l4proto_unique_tuple() 592 enum nf_nat_manip_type maniptype) in get_unique_tuple() 297 l4proto_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) l4proto_in_range() argument 393 find_best_ips_proto(const struct nf_conntrack_zone *zone, struct nf_conntrack_tuple *tuple, const struct nf_nat_range2 *range, const struct nf_conn *ct, enum nf_nat_manip_type maniptype) find_best_ips_proto() argument 465 nf_nat_l4proto_unique_tuple(struct nf_conntrack_tuple *tuple, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype, const struct nf_conn *ct) nf_nat_l4proto_unique_tuple() argument 588 get_unique_tuple(struct nf_conntrack_tuple *tuple, const struct nf_conntrack_tuple *orig_tuple, const struct nf_nat_range2 *range, struct nf_conn *ct, enum nf_nat_manip_type maniptype) get_unique_tuple() argument 664 nf_nat_setup_info(struct nf_conn *ct, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype) nf_nat_setup_info() argument 804 enum nf_nat_manip_type maniptype = HOOK2MANIP(state->hook); nf_nat_inet_fn() local [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_nat_proto.c | 36 enum nf_nat_manip_type maniptype); 42 enum nf_nat_manip_type maniptype, bool do_csum) in __udp_manip_pkt() 46 if (maniptype == NF_NAT_MANIP_SRC) { in __udp_manip_pkt() 56 nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in __udp_manip_pkt() 68 enum nf_nat_manip_type maniptype) in udp_manip_pkt() 76 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, !!hdr->check); in udp_manip_pkt() 84 enum nf_nat_manip_type maniptype) in udplite_manip_pkt() 93 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, true); in udplite_manip_pkt() 102 enum nf_nat_manip_type maniptype) in sctp_manip_pkt() 120 if (maniptype in sctp_manip_pkt() 39 __udp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, struct udphdr *hdr, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, bool do_csum) __udp_manip_pkt() argument 65 udp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) udp_manip_pkt() argument 81 udplite_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) udplite_manip_pkt() argument 99 sctp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) sctp_manip_pkt() argument 141 tcp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) tcp_manip_pkt() argument 183 dccp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) dccp_manip_pkt() argument 223 icmp_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) icmp_manip_pkt() argument 254 icmpv6_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) icmpv6_manip_pkt() argument 278 gre_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) gre_manip_pkt() argument 317 l4proto_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, unsigned int hdroff, const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype) l4proto_manip_pkt() argument 353 nf_nat_ipv4_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) nf_nat_ipv4_manip_pkt() argument 381 nf_nat_ipv6_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) nf_nat_ipv6_manip_pkt() argument 445 nf_nat_ipv4_csum_update(struct sk_buff *skb, unsigned int iphdroff, __sum16 *check, const struct nf_conntrack_tuple *t, enum nf_nat_manip_type maniptype) nf_nat_ipv4_csum_update() argument 463 nf_nat_ipv6_csum_update(struct sk_buff *skb, unsigned int iphdroff, __sum16 *check, const struct nf_conntrack_tuple *t, enum nf_nat_manip_type maniptype) nf_nat_ipv6_csum_update() argument 484 nf_csum_update(struct sk_buff *skb, unsigned int iphdroff, __sum16 *check, const struct nf_conntrack_tuple *t, enum nf_nat_manip_type maniptype) nf_csum_update() argument [all...] |
H A D | nf_nat_core.c | 233 enum nf_nat_manip_type maniptype, in l4proto_in_range() 250 if (maniptype == NF_NAT_MANIP_SRC) in l4proto_in_range() 332 enum nf_nat_manip_type maniptype) in find_best_ips_proto() 344 if (maniptype == NF_NAT_MANIP_SRC) in find_best_ips_proto() 395 /* Alter the per-proto part of the tuple (depending on maniptype), to 402 enum nf_nat_manip_type maniptype, in nf_nat_l4proto_unique_tuple() 431 if (maniptype == NF_NAT_MANIP_SRC) in nf_nat_l4proto_unique_tuple() 450 if (maniptype == NF_NAT_MANIP_SRC) in nf_nat_l4proto_unique_tuple() 463 if (maniptype == NF_NAT_MANIP_DST) in nf_nat_l4proto_unique_tuple() 528 enum nf_nat_manip_type maniptype) in get_unique_tuple() 232 l4proto_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) l4proto_in_range() argument 328 find_best_ips_proto(const struct nf_conntrack_zone *zone, struct nf_conntrack_tuple *tuple, const struct nf_nat_range2 *range, const struct nf_conn *ct, enum nf_nat_manip_type maniptype) find_best_ips_proto() argument 400 nf_nat_l4proto_unique_tuple(struct nf_conntrack_tuple *tuple, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype, const struct nf_conn *ct) nf_nat_l4proto_unique_tuple() argument 524 get_unique_tuple(struct nf_conntrack_tuple *tuple, const struct nf_conntrack_tuple *orig_tuple, const struct nf_nat_range2 *range, struct nf_conn *ct, enum nf_nat_manip_type maniptype) get_unique_tuple() argument 600 nf_nat_setup_info(struct nf_conn *ct, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype) nf_nat_setup_info() argument 730 enum nf_nat_manip_type maniptype = HOOK2MANIP(state->hook); nf_nat_inet_fn() local [all...] |
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | conntrack.c | 735 enum nf_nat_manip_type maniptype) in ovs_nat_update_key() 737 if (maniptype == NF_NAT_MANIP_SRC) { in ovs_nat_update_key() 791 enum nf_nat_manip_type maniptype, struct sw_flow_key *key) in ovs_ct_nat_execute() 799 if (maniptype == NF_NAT_MANIP_SRC) in ovs_ct_nat_execute() 837 if (!nf_nat_initialized(ct, maniptype)) { in ovs_ct_nat_execute() 843 ? nf_nat_setup_info(ct, range, maniptype) in ovs_ct_nat_execute() 866 ovs_nat_update_key(key, skb, maniptype); in ovs_ct_nat_execute() 877 enum nf_nat_manip_type maniptype; in ovs_ct_nat() local 898 maniptype = ct->status & IPS_SRC_NAT in ovs_ct_nat() 901 maniptype in ovs_ct_nat() 733 ovs_nat_update_key(struct sw_flow_key *key, const struct sk_buff *skb, enum nf_nat_manip_type maniptype) ovs_nat_update_key() argument 788 ovs_ct_nat_execute(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype, struct sw_flow_key *key) ovs_ct_nat_execute() argument [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_ct.c | 768 enum nf_nat_manip_type maniptype) in ct_nat_execute() 774 if (maniptype == NF_NAT_MANIP_SRC) in ct_nat_execute() 810 if (!nf_nat_initialized(ct, maniptype)) { in ct_nat_execute() 816 ? nf_nat_setup_info(ct, range, maniptype) in ct_nat_execute() 878 enum nf_nat_manip_type maniptype; in tcf_ct_act_nat() local 895 maniptype = ct->status & IPS_SRC_NAT in tcf_ct_act_nat() 898 maniptype = ct->status & IPS_SRC_NAT in tcf_ct_act_nat() 901 maniptype = NF_NAT_MANIP_SRC; in tcf_ct_act_nat() 903 maniptype = NF_NAT_MANIP_DST; in tcf_ct_act_nat() 908 err = ct_nat_execute(skb, ct, ctinfo, range, maniptype); in tcf_ct_act_nat() 765 ct_nat_execute(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype) ct_nat_execute() argument [all...] |
/kernel/linux/linux-5.10/include/net/netfilter/ |
H A D | nf_nat.h | 41 enum nf_nat_manip_type maniptype);
|
/kernel/linux/linux-6.6/include/net/netfilter/ |
H A D | nf_nat.h | 41 enum nf_nat_manip_type maniptype);
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | conntrack.c | 612 enum nf_nat_manip_type maniptype) in ovs_nat_update_key() 614 if (maniptype == NF_NAT_MANIP_SRC) { in ovs_nat_update_key() 610 ovs_nat_update_key(struct sw_flow_key *key, const struct sk_buff *skb, enum nf_nat_manip_type maniptype) ovs_nat_update_key() argument
|