| /linux/net/xfrm/ |
| H A D | xfrm_inout.h | 11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header() local 26 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_extract_header() local 43 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_beet_make_header() local 57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header() local
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_proto_ah_esp.c | 41 ah_esp_conn_fill_param_proto(struct netns_ipvs * ipvs,int af,const struct ip_vs_iphdr * iph,struct ip_vs_conn_param * p) ah_esp_conn_fill_param_proto() argument 56 ah_esp_conn_in_get(struct netns_ipvs * ipvs,int af,const struct sk_buff * skb,const struct ip_vs_iphdr * iph) ah_esp_conn_in_get() argument 82 ah_esp_conn_out_get(struct netns_ipvs * ipvs,int af,const struct sk_buff * skb,const struct ip_vs_iphdr * iph) ah_esp_conn_out_get() argument 106 ah_esp_conn_schedule(struct netns_ipvs * ipvs,int af,struct sk_buff * skb,struct ip_vs_proto_data * pd,int * verdict,struct ip_vs_conn ** cpp,struct ip_vs_iphdr * iph) ah_esp_conn_schedule() argument [all...] |
| H A D | ip_vs_core.c | 433 int *ignored, struct ip_vs_iphdr *iph) in ip_vs_sched_persist() 621 struct ip_vs_iphdr *iph) in ip_vs_schedule() 764 struct ip_vs_proto_data *pd, struct ip_vs_iphdr *iph) in ip_vs_leave() 929 struct iphdr *iph = ip_hdr(skb); in ip_vs_nat_icmp() local 975 struct ipv6hdr *iph = ipv6_hdr(skb); in ip_vs_nat_icmp_v6() local 1095 struct iphdr *iph; in ip_vs_out_icmp() local 1253 struct ip_vs_iphdr *iph) in is_new_conn() 1310 const struct ip_vs_iphdr *iph, in ip_vs_new_conn_out() 1401 const struct ip_vs_iphdr *iph) in __ip_vs_rs_conn_out() 1437 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph, in handle_response() [all …]
|
| /linux/net/ipv6/netfilter/ |
| H A D | nft_fib_ipv6.c | 25 struct ipv6hdr *iph) in nft_fib6_flowi_init() argument 66 struct ipv6hdr *iph) in __nft_fib6_eval_type() argument 133 struct ipv6hdr *iph, _iph; in nft_fib6_eval_type() local 145 nft_fib_v6_skip_icmpv6(const struct sk_buff * skb,u8 next,const struct ipv6hdr * iph) nft_fib_v6_skip_icmpv6() argument 211 struct ipv6hdr *iph, _iph; nft_fib6_eval() local [all...] |
| H A D | nf_dup_ipv6.c | 22 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_dup_ipv6_route() local 63 struct ipv6hdr *iph = ipv6_hdr(skb); in nf_dup_ipv6() local
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tc_change_tail.c | 17 struct iphdr *iph; in parse_ip_header() local 41 static __always_inline struct udphdr *parse_udp_header(struct __sk_buff *skb, struct iphdr *iph) in parse_udp_header() 63 struct iphdr *iph; in change_tail() local
|
| H A D | xdping_kern.c | |
| H A D | test_tunnel_kern.c | 438 struct iphdr *iph; veth_set_outer_dst() local 716 struct iphdr *iph = data; ipip_set_tunnel() local 762 struct iphdr *iph = data; ipip_gue_set_tunnel() local 801 struct iphdr *iph = data; ipip_fou_set_tunnel() local 866 struct iphdr *iph = data; ipip6_set_tunnel() local 915 struct ipv6hdr *iph = data; ip6ip6_set_tunnel() local 990 struct iphdr *iph; xfrm_get_state_xdp() local [all...] |
| /linux/net/netfilter/ |
| H A D | nf_synproxy_core.c | 404 struct iphdr *iph; synproxy_build_ip() local 457 struct iphdr *iph, *niph; synproxy_send_client_synack() local 501 struct iphdr *iph, *niph; synproxy_send_server_syn() local 546 struct iphdr *iph, *niph; synproxy_send_server_ack() local 584 struct iphdr *iph, *niph; synproxy_send_client_ack() local 808 struct ipv6hdr *iph; synproxy_build_ip_ipv6() local 875 struct ipv6hdr *iph, *niph; synproxy_send_client_synack_ipv6() local 920 struct ipv6hdr *iph, *niph; synproxy_send_server_syn_ipv6() local 965 struct ipv6hdr *iph, *niph; synproxy_send_server_ack_ipv6() local 1004 struct ipv6hdr *iph, *niph; synproxy_send_client_ack_ipv6() local [all...] |
| H A D | xt_addrtype.c | 91 const struct ipv6hdr *iph = ipv6_hdr(skb); in addrtype_mt6() local 115 const struct iphdr *iph = ip_hdr(skb); in addrtype_mt_v0() local 133 const struct iphdr *iph; in addrtype_mt_v1() local
|
| H A D | nf_flow_table_ip.c | 69 static void nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, in nf_flow_nat_ip_l4proto() argument 84 struct sk_buff *skb, struct iphdr *iph, in nf_flow_snat_ip() argument 107 struct sk_buff *skb, struct iphdr *iph, in nf_flow_dnat_ip() argument 131 nf_flow_nat_ip(const struct flow_offload * flow,struct sk_buff * skb,unsigned int thoff,enum flow_offload_tuple_dir dir,struct iphdr * iph) nf_flow_nat_ip() argument 168 struct iphdr *iph; nf_flow_tuple_encap() local 221 struct iphdr *iph; nf_flow_tuple_ip() local 322 struct iphdr *iph; nf_flow_ip4_tunnel_proto() local 488 struct iphdr *iph; nf_flow_offload_forward() local 599 struct iphdr *iph = (struct iphdr *)skb_network_header(skb); nf_flow_tunnel_ipip_push() local [all...] |
| H A D | xt_iprange.c | 20 const struct iphdr *iph = ip_hdr(skb); in iprange_mt4() local 69 const struct ipv6hdr *iph = ipv6_hdr(skb); in iprange_mt6() local
|
| /linux/net/ipv4/ |
| H A D | ip_output.c | 95 void ip_send_check(struct iphdr *iph) in ip_send_check() argument 104 struct iphdr *iph = ip_hdr(skb); in __ip_local_out() local 158 struct iphdr *iph; in ip_build_and_send_pkt() local 453 ip_copy_addrs(struct iphdr * iph,const struct flowi4 * fl4) ip_copy_addrs() argument 471 struct iphdr *iph; __ip_queue_xmit() local 580 struct iphdr *iph = ip_hdr(skb); ip_fragment() local 598 ip_fraglist_init(struct sk_buff * skb,struct iphdr * iph,unsigned int hlen,struct ip_fraglist_iter * iter) ip_fraglist_init() argument 621 struct iphdr *iph = iter->iph; ip_fraglist_prepare() local 647 struct iphdr *iph = ip_hdr(skb); ip_frag_init() local 682 struct iphdr *iph; ip_frag_next() local 764 struct iphdr *iph; ip_do_fragment() local 1409 struct iphdr *iph; __ip_make_skb() local [all...] |
| H A D | xfrm4_input.c | 33 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish() local 52 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish() local 88 struct iphdr *iph; __xfrm4_udp_encap_rcv() local [all...] |
| H A D | ah4.c | 77 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) in ip_clear_mutable_options() 120 struct iphdr *iph; in ah_output_done() local 159 struct iphdr *iph, *top_iph; in ah_output() local 322 struct iphdr *iph, *work_iph; in ah_input() local 452 const struct iphdr *iph = (const struct iphdr *)skb->data; in ah4_err() local
|
| H A D | udp_offload.c | 352 struct iphdr *iph; in __udpv4_gso_segment_csum() local 378 struct iphdr *iph, *iph2; in __udpv4_gso_segment_list_csum() local 431 const struct ipv6hdr *iph; in __udpv6_gso_segment_list_csum() local 639 struct iphdr *iph; in udp4_ufo_fragment() local 851 const struct iphdr *iph = skb_gro_network_header(skb); in udp4_gro_lookup_skb() local 955 const struct iphdr *iph = (struct iphdr *)(skb->data + offset); in udp4_gro_complete() local
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.h | 47 struct iphdr iph; global() member 55 struct ipv6hdr iph; global() member 124 build_ip_csum(struct iphdr * iph) build_ip_csum() argument 211 build_udp_v4_csum(const struct iphdr * iph,const struct udphdr * udph) build_udp_v4_csum() argument [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 20 struct iphdr iph; member 26 struct iphdr iph; member 35 struct iphdr iph; member 41 struct ipv6hdr iph; member 47 struct ipv6hdr iph; member 63 struct ipv6hdr iph; member 74 struct iphdr iph; member
|
| /linux/drivers/net/ |
| H A D | amt.c | 521 struct iphdr *iph; in amt_build_igmp_gq() local 620 struct iphdr *iph; amt_send_discovery() local 709 struct iphdr *iph; amt_send_request() local 1004 struct iphdr *iph; amt_send_membership_update() local 1065 struct iphdr *iph; amt_send_multicast_data() local 1187 struct iphdr *iph; amt_dev_xmit() local 1946 struct iphdr *iph = ip_hdr(skb); amt_igmpv2_report_handler() local 1983 struct iphdr *iph = ip_hdr(skb); amt_igmpv2_leave_handler() local 2003 struct iphdr *iph = ip_hdr(skb); amt_igmpv3_report_handler() local 2144 struct iphdr *iph = ip_hdr(skb); amt_mldv1_leave_handler() local 2288 struct iphdr *iph; amt_multicast_data_handler() local 2356 struct iphdr *iph; amt_membership_query_handler() local 2456 struct iphdr *iph; amt_update_handler() local 2560 struct iphdr *iph; amt_send_advertisement() local 2646 struct iphdr *iph; amt_discovery_handler() local 2669 struct iphdr *iph; amt_request_handler() local 2775 struct iphdr *iph; amt_rcv() local [all...] |
| /linux/net/ipv6/ |
| H A D | mip6.c | 121 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_destopt_input() local 140 struct ipv6hdr *iph; in mip6_destopt_output() local 290 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_rthdr_input() local 308 struct ipv6hdr *iph; in mip6_rthdr_output() local
|
| H A D | ah6.c | 174 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt() 224 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {} in ipv6_rearrange_destopt() 236 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr() 266 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options() 269 struct ipv6hdr *iph; in ipv6_clear_mutable_options() member 666 struct ipv6hdr *iph = (struct ipv6hdr *)skb->data; in ah6_err() local
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | gro.c | |
| /linux/include/net/ |
| H A D | dsfield.h | 16 static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) in ipv4_get_dsfield() 28 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield()
|
| /linux/include/linux/ |
| H A D | ip.h | 39 static inline unsigned int iph_totlen(const struct sk_buff *skb, const struct iphdr *iph) in iph_totlen() 55 static inline void iph_set_totlen(struct iphdr *iph, unsigned int len) in iph_set_totlen()
|
| /linux/samples/bpf/ |
| H A D | xdp_fwd_kern.c | 34 static __always_inline int ip_decrease_ttl(struct iphdr *iph) in ip_decrease_ttl() 50 struct iphdr *iph; in xdp_fwd_flags() local
|