Searched refs:ip4h (Results 1 - 11 of 11) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tc_neigh_fib.c29 struct iphdr *ip4h; local
34 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr));
35 if ((void *)(ip4h + 1) > data_end)
39 fib_params->tos = ip4h->tos;
40 fib_params->l4_protocol = ip4h->protocol;
43 fib_params->tot_len = bpf_ntohs(ip4h->tot_len);
44 fib_params->ipv4_src = ip4h->saddr;
45 fib_params->ipv4_dst = ip4h->daddr;
H A Dtest_tc_neigh.c44 struct iphdr *ip4h; local
49 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr));
50 if ((void *)(ip4h + 1) > data_end)
53 return ip4h->daddr == addr;
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c75 struct iphdr *ip4h = NULL; local
98 ip4h = (struct iphdr *)pshdr;
99 udph = (struct udphdr *)(ip4h + 1);
101 ip4h->ttl = 0xff;
102 ip4h->check = CSUM_MANGLED_0;
103 ip4h->tos = 0xff;
/linux-master/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_map_data.c37 struct iphdr *ip4h = (struct iphdr *)skb->data; local
38 void *txporthdr = skb->data + ip4h->ihl * 4;
46 if (ip_fast_csum(ip4h, ip4h->ihl)) {
52 if (ip_is_fragment(ip4h)) {
58 csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr);
65 if (!*csum_field && ip4h->protocol == IPPROTO_UDP) {
93 pseudo_csum = csum_tcpudp_magic(ip4h->saddr, ip4h->daddr,
94 ntohs(ip4h
167 rmnet_map_complement_ipv4_txporthdr_csum_field(struct iphdr *ip4h) argument
[all...]
/linux-master/drivers/net/ipvlan/
H A Dipvlan_core.c154 struct iphdr *ip4h; local
156 if (unlikely(!pskb_may_pull(skb, sizeof(*ip4h))))
159 ip4h = ip_hdr(skb);
161 if (ip4h->ihl < 5 || ip4h->version != 4)
163 if (skb->len < pktlen || pktlen < (ip4h->ihl * 4))
167 lyr3h = ip4h;
385 struct iphdr *ip4h; local
388 ip4h = (struct iphdr *)lyr3h;
389 i4addr = use_dest ? &ip4h
416 const struct iphdr *ip4h = ip_hdr(skb); local
[all...]
H A Dipvlan_l3s.c51 struct iphdr *ip4h = ip_hdr(skb); local
54 err = ip_route_input_noref(skb, ip4h->daddr, ip4h->saddr,
55 ip4h->tos, sdev);
/linux-master/drivers/net/
H A Dvrf.c530 struct iphdr *ip4h; local
539 ip4h = ip_hdr(skb);
545 fl4.flowi4_tos = RT_TOS(ip4h->tos);
547 fl4.flowi4_proto = ip4h->protocol;
548 fl4.daddr = ip4h->daddr;
549 fl4.saddr = ip4h->saddr;
568 if (!ip4h->saddr) {
569 ip4h->saddr = inet_select_addr(skb_dst(skb)->dev, 0,
/linux-master/drivers/infiniband/core/
H A Dverbs.c628 const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh; local
636 return (ip4h->version == 4) ? 4 : 0;
642 if (ip4h->ihl != 5)
649 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked));
653 if (ip4h->check == ip4h_checked.check)
/linux-master/drivers/net/ethernet/marvell/
H A Dmvneta.c1963 struct iphdr *ip4h = ip_hdr(skb); local
1966 ip_hdr_len = ip4h->ihl;
1967 l4_proto = ip4h->protocol;
/linux-master/net/core/
H A Dfilter.c2352 const struct iphdr *ip4h = ip_hdr(skb); local
2360 .flowi4_tos = RT_TOS(ip4h->tos),
2362 .flowi4_proto = ip4h->protocol,
2363 .daddr = ip4h->daddr,
2364 .saddr = ip4h->saddr,
/linux-master/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c3628 struct iphdr *ip4h = ip_hdr(skb); local
3631 ip_hdr_len = ip4h->ihl;
3632 l4_proto = ip4h->protocol;

Completed in 302 milliseconds