/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_edt.c | 83 struct iphdr *iph; in handle_ipv4() 89 iph = (struct iphdr *)(data + sizeof(struct ethhdr)); in handle_ipv4()
|
H A D | test_sk_assign.c | 70 struct iphdr *iph = (struct iphdr *)(data + sizeof(*eth)); in get_tuple()
|
H A D | test_sk_lookup_kern.c | 31 struct iphdr *iph = (struct iphdr *)(data + nh_off); in get_tuple()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_AUDIT.c | 33 struct iphdr _iph; in audit_ip4() 34 const struct iphdr *ih; in audit_ip4()
|
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_inout.h | 11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header() 57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header()
|
H A D | xfrm_output.c | 66 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_output() 73 offsetof(struct iphdr, protocol); in xfrm4_transport_output() 151 struct iphdr *top_iph; in xfrm4_beet_encap_add() 164 offsetof(struct iphdr, protocol); in xfrm4_beet_encap_add() 184 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_encap_add() 200 struct iphdr *top_iph; in xfrm4_tunnel_encap_add() 208 offsetof(struct iphdr, protocol); in xfrm4_tunnel_encap_add()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | ipt_ECN.c | 28 struct iphdr *iph = ip_hdr(skb); in set_ect_ip() 32 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in set_ect_ip()
|
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_inout.h | 11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header() 57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header()
|
H A D | xfrm_output.c | 67 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_output() 74 offsetof(struct iphdr, protocol); in xfrm4_transport_output() 227 struct iphdr *top_iph; in xfrm4_beet_encap_add() 240 offsetof(struct iphdr, protocol); in xfrm4_beet_encap_add() 260 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_encap_add() 277 struct iphdr *top_iph; in xfrm4_tunnel_encap_add() 285 offsetof(struct iphdr, protocol); in xfrm4_tunnel_encap_add()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_AUDIT.c | 33 struct iphdr _iph; in audit_ip4() 34 const struct iphdr *ih; in audit_ip4()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | lwt_helpers.h | 74 struct iphdr *ip = (struct iphdr *)buf; in __expect_icmp_ipv4()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_migrate_reuseport.c | 57 struct iphdr *ip = (struct iphdr *)(eth + 1); in drop_ack()
|
H A D | test_pkt_access.c | 116 struct iphdr *iph = (struct iphdr *)(eth + 1); in test_pkt_access()
|
H A D | test_tc_neigh.c | 44 struct iphdr *ip4h; in is_remote_ep_v4() 49 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4()
|
H A D | test_tc_edt.c | 83 struct iphdr *iph; in handle_ipv4() 89 iph = (struct iphdr *)(data + sizeof(struct ethhdr)); in handle_ipv4()
|
H A D | test_assign_reuse.c | 118 struct iphdr *iph = (struct iphdr *)(data + sizeof(*eth)); in tc_main()
|
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | ipt_ECN.c | 28 struct iphdr *iph = ip_hdr(skb); in set_ect_ip() 32 if (skb_ensure_writable(skb, sizeof(struct iphdr))) in set_ect_ip()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | ip_output.c | 92 void ip_send_check(struct iphdr *iph) in ip_send_check() 101 struct iphdr *iph = ip_hdr(skb); in __ip_local_out() 152 struct iphdr *iph; in ip_build_and_send_pkt() 155 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0)); in ip_build_and_send_pkt() 451 static void ip_copy_addrs(struct iphdr *iph, const struct flowi4 *fl4) in ip_copy_addrs() 469 struct iphdr *iph; in __ip_queue_xmit() 514 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 586 struct iphdr *iph = ip_hdr(skb); in ip_fragment() 604 void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph, in ip_fraglist_init() 627 struct iphdr *ip in ip_fraglist_prepare() [all...] |
H A D | route.c | 515 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs) in __ip_select_ident() 544 const struct iphdr *iph, in __build_flow_key() 567 const struct iphdr *iph = ip_hdr(skb); in build_skb_flow_key() 839 const struct iphdr *iph = (const struct iphdr *) skb->data; in __ip_do_redirect() 856 const struct iphdr *iph = (const struct iphdr *) skb->data; in ip_do_redirect() 1096 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipv4_update_pmtu() 1113 const struct iphdr *ip in __ipv4_sk_update_pmtu() [all...] |
H A D | cipso_ipv4.c | 1503 const struct iphdr *iph = ip_hdr(skb); in cipso_v4_optptr() 1508 for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 1; ) { in cipso_v4_optptr() 1735 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); in cipso_v4_error() 1877 opt->opt.cipso = sizeof(struct iphdr); in cipso_v4_sock_setattr() 1954 opt->opt.cipso = sizeof(struct iphdr); in cipso_v4_req_setattr() 1995 cipso_off = opt->opt.cipso - sizeof(struct iphdr); in cipso_v4_delopt() 2147 sizeof(struct iphdr), in cipso_v4_sock_getattr() 2169 struct iphdr *iph; in cipso_v4_skbuff_setattr() 2213 opt->cipso = sizeof(struct iphdr); in cipso_v4_skbuff_setattr() 2245 struct iphdr *ip in cipso_v4_skbuff_delattr() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | route.c | 483 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs) in __ip_select_ident() 511 const struct sock *sk, const struct iphdr *iph, in __build_flow_key() 535 const struct iphdr *iph = ip_hdr(skb); in build_skb_flow_key() 810 const struct iphdr *iph = (const struct iphdr *) skb->data; in __ip_do_redirect() 827 const struct iphdr *iph = (const struct iphdr *) skb->data; in ip_do_redirect() 1076 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipv4_update_pmtu() 1093 const struct iphdr *ip in __ipv4_sk_update_pmtu() [all...] |
H A D | cipso_ipv4.c | 1502 const struct iphdr *iph = ip_hdr(skb); in cipso_v4_optptr() 1507 for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 1; ) { in cipso_v4_optptr() 1734 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); in cipso_v4_error() 1876 opt->opt.cipso = sizeof(struct iphdr); in cipso_v4_sock_setattr() 1953 opt->opt.cipso = sizeof(struct iphdr); in cipso_v4_req_setattr() 1994 cipso_off = opt->opt.cipso - sizeof(struct iphdr); in cipso_v4_delopt() 2146 sizeof(struct iphdr), in cipso_v4_sock_getattr() 2168 struct iphdr *iph; in cipso_v4_skbuff_setattr() 2212 opt->cipso = sizeof(struct iphdr); in cipso_v4_skbuff_setattr() 2244 struct iphdr *ip in cipso_v4_skbuff_delattr() [all...] |
H A D | ip_output.c | 93 void ip_send_check(struct iphdr *iph) in ip_send_check() 102 struct iphdr *iph = ip_hdr(skb); in __ip_local_out() 154 struct iphdr *iph; in ip_build_and_send_pkt() 157 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0)); in ip_build_and_send_pkt() 444 static void ip_copy_addrs(struct iphdr *iph, const struct flowi4 *fl4) in ip_copy_addrs() 462 struct iphdr *iph; in __ip_queue_xmit() 507 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in __ip_queue_xmit() 579 struct iphdr *iph = ip_hdr(skb); in ip_fragment() 597 void ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph, in ip_fraglist_init() 620 struct iphdr *ip in ip_fraglist_prepare() [all...] |