/drivers/net/ppp/ |
H A D | pptp.c | 186 struct iphdr *iph; local 202 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(*iph) + sizeof(*hdr) + 2; 259 skb_push(skb, sizeof(*iph)); 264 iph = ip_hdr(skb); 265 iph->version = 4; 266 iph->ihl = sizeof(struct iphdr) >> 2; 268 iph->frag_off = htons(IP_DF); 270 iph->frag_off = 0; 271 iph->protocol = IPPROTO_GRE; 272 iph 383 struct iphdr *iph; local [all...] |
/drivers/infiniband/hw/nes/ |
H A D | nes_mgt.c | 177 struct iphdr *iph = (struct iphdr *)(cb->data_start + ETH_HLEN); local 178 struct tcphdr *tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); 245 struct iphdr *iph; local 337 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); 338 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); 357 iph = (struct iphdr *)(fpdu_info->hdr_vbase + ETH_HLEN); 358 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph 511 struct iphdr *iph; local [all...] |
H A D | nes_cm.c | 440 struct iphdr *iph; local 443 u16 packetsize = sizeof(*iph); 449 memset(skb->data, 0x00, ETH_HLEN + sizeof(*iph) + sizeof(*tcph)); 456 iph = (struct iphdr *)buf; 457 buf += sizeof(*iph); 461 skb_set_transport_header(skb, ETH_HLEN + sizeof(*iph)); 475 iph->version = IPVERSION; 476 iph->ihl = 5; /* 5 * 4Byte words, IP headr len */ 477 iph->tos = 0; 478 iph 2697 struct iphdr *iph; local [all...] |
/drivers/net/usb/ |
H A D | cdc_mbim.c | 310 struct ipv6hdr *iph = (void *)buf; local 311 struct nd_msg *msg = (void *)(iph + 1); 319 if (!ipv6_addr_is_solict_mult(&iph->daddr) || 320 !(ipv6_addr_type(&iph->saddr) & IPV6_ADDR_UNICAST)) 345 ipv6_stub->ndisc_send_na(netdev, NULL, &iph->saddr, &msg->target, 356 struct ipv6hdr *iph = (void *)buf; local 357 struct nd_msg *msg = (void *)(iph + 1); 360 iph->nexthdr == IPPROTO_ICMPV6 &&
|
/drivers/staging/gdm72xx/ |
H A D | gdm_qos.c | 189 static int get_qos_index(struct nic *nic, u8 *iph, u8 *tcpudph) argument 194 if (iph == NULL || tcpudph == NULL) 197 ip_ver = (iph[0]>>4)&0xf; 207 if (chk_ipv4_rule(&qcb->csr[i], iph, tcpudph) == 0) 259 struct iphdr *iph = (struct iphdr *)((char *)ethh + ETH_HLEN); local 265 tcph = (struct tcphdr *)iph + iph->ihl*4; 278 index = get_qos_index(nic, (u8 *)iph, (u8 *)tcph);
|
/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_main.c | 183 struct iphdr *iph; local 197 iph = ip_hdr(skb); 198 if (unlikely(ip_is_fragment(iph))) 201 if (likely(iph->protocol == IPPROTO_TCP)) { 205 } else if (iph->protocol == IPPROTO_UDP) { 287 struct iphdr *iph = ip_hdr(skb); local 289 if (!ip_is_fragment(iph) || 290 (iph->protocol != IPPROTO_TCP && iph->protocol != IPPROTO_UDP)) {
|
/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.c | 456 hdr->iph.pkt_flags = 457 cpu_to_le16(le16_to_cpu(hdr->iph.pkt_flags)|0x2); 468 vcto = le32_to_cpu(hdr->iph.ver_ctxt_tid_offset); 469 hdr->iph.chksum = cpu_to_le16(QIB_LRH_BTH + 472 le16_to_cpu(hdr->iph.pkt_flags)); 502 hdr->iph.ver_ctxt_tid_offset = cpu_to_le32( 503 (le32_to_cpu(hdr->iph.ver_ctxt_tid_offset)&0xFF000000) + 512 vcto = le32_to_cpu(hdr->iph.ver_ctxt_tid_offset); 513 hdr->iph.chksum = cpu_to_le16(QIB_LRH_BTH + 516 le16_to_cpu(hdr->iph [all...] |
H A D | qib_common.h | 703 struct qib_header iph; member in struct:qib_message_header
|
/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_txrx.c | 741 struct iphdr *iph; local 811 iph = ip_hdr(skb); 813 iph->saddr, iph->daddr, 1162 struct iphdr *iph; local 1174 iph = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); 1176 iph->tot_len = 0; 1177 iph->check = 0; 1178 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph [all...] |
/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 1236 struct iphdr *iph; local 1306 iph = ip_hdr(skb); 1308 iph->saddr, iph->daddr, 1832 struct iphdr *iph; local 1844 iph = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); 1846 iph->tot_len = 0; 1847 iph->check = 0; 1848 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph [all...] |
/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_io.c | 1258 struct iphdr *iph; local 1316 iph = (struct iphdr *)skb->data; 1317 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); 1318 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; 1319 csum_replace2(&iph->check, iph->tot_len, htons(length)); 1320 iph->tot_len = htons(length); 1780 struct iphdr *iph; local 1839 iph = (struct iphdr *)skb->data; 1840 th = (struct tcphdr *)(skb->data + (iph [all...] |
/drivers/infiniband/hw/ipath/ |
H A D | ipath_common.h | 746 struct ipath_header iph; member in struct:ipath_message_header 754 struct ipath_header iph; member in struct:ether_header
|
/drivers/net/ethernet/qlogic/netxen/ |
H A D | netxen_nic_init.c | 1598 struct iphdr *iph; local 1641 iph = (struct iphdr *)(skb->data + vhdr_len); 1642 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); 1644 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; 1645 csum_replace2(&iph->check, iph->tot_len, htons(length)); 1646 iph->tot_len = htons(length);
|
/drivers/net/bonding/ |
H A D | bond_alb.c | 1390 const struct iphdr *iph = ip_hdr(skb); local 1393 (iph->daddr == ip_bcast) || 1394 (iph->protocol == IPPROTO_IGMP)) { 1398 hash_start = (char *)&(iph->daddr); 1399 hash_size = sizeof(iph->daddr);
|
H A D | bond_main.c | 2968 const struct iphdr *iph; local 2977 if (unlikely(!pskb_may_pull(skb, noff + sizeof(*iph)))) 2979 iph = ip_hdr(skb); 2980 fk->src = iph->saddr; 2981 fk->dst = iph->daddr; 2982 noff += iph->ihl << 2; 2983 if (!ip_is_fragment(iph)) 2984 proto = iph->protocol; 3565 struct iphdr *iph = ip_hdr(skb); local 3575 if (iph [all...] |
/drivers/net/ethernet/qlogic/qlge/ |
H A D | qlge_main.c | 1606 struct iphdr *iph = local 1608 if (!(iph->frag_off & 1710 struct iphdr *iph = (struct iphdr *) skb->data; local 1711 if (!(iph->frag_off & 2024 struct iphdr *iph = (struct iphdr *) skb->data; local 2025 if (!(iph->frag_off & 2577 struct iphdr *iph = ip_hdr(skb); local 2578 iph->check = 0; 2580 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 2581 iph 2600 struct iphdr *iph = ip_hdr(skb); local [all...] |
/drivers/infiniband/hw/cxgb4/ |
H A D | cm.c | 3594 struct iphdr *iph; local 3637 iph = (struct iphdr *)(eh + 1); 3640 iph = (struct iphdr *)(vlan_eh + 1); 3644 if (iph->version != 0x4) 3647 tcph = (struct tcphdr *)(iph + 1); 3648 skb_set_network_header(skb, (void *)iph - (void *)rss); 3653 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr), 3654 ntohs(tcph->source), iph->tos); 3656 dst = find_route(dev, iph [all...] |
/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.c | 2133 struct iphdr *iph = ip_hdr(skb); local 2135 real_len = (((unsigned char *)iph - skb->data) + 2136 ntohs(iph->tot_len)); 2141 iph->check = 0; 2143 ~csum_tcpudp_magic(iph->saddr, 2144 iph->daddr, tcp_hdrlen(skb), 2146 ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << 2156 iph->check = 0; 2157 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 2158 iph [all...] |
/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 1003 const struct iphdr *iph = ip_hdr(skb); local 1005 if (iph->version == 4) { 1006 if (iph->protocol == IPPROTO_TCP) 1008 else if (iph->protocol == IPPROTO_UDP) 1022 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph;
|
/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 265 struct iphdr *iph; local 273 iph = ip_hdr(skb); 274 if (iph->protocol != IPPROTO_TCP) 282 if (ntohs(iph->tot_len) < ip_len + tcp_hdrlen(skb)) 286 *iphdr = iph;
|
/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_cmn.c | 686 const struct iphdr *iph = ip_hdr(skb); local 693 iph->saddr, iph->daddr, 0); 698 struct ipv6hdr *iph = ipv6_hdr(skb); local 705 &iph->saddr, &iph->daddr, 0); 3641 struct iphdr *iph = ip_hdr(skb); local 3642 u32 csum = (__force u32)(~iph->check) - 3643 (__force u32)iph->tot_len - 3644 (__force u32)iph [all...] |
/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_main.c | 1226 struct iphdr *iph; local 1235 iph = ip_hdr(skb); 1236 iph->tot_len = 0; 1237 iph->check = 0; 1238 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 1239 iph->daddr, 0, 1242 ipcso = (void *)&(iph->check) - (void *)skb->data;
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_main.c | 1174 struct iphdr *iph = ip_hdr(skb); local 1177 if (iph->protocol == IPPROTO_TCP) { 1183 csum_tcpudp_magic(iph->saddr, 1184 iph->daddr, 1188 } else if (iph->protocol == IPPROTO_UDP) { 1195 csum_tcpudp_magic(iph->saddr, 1196 iph->daddr,
|
/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 832 const struct iphdr *iph = ip_hdr(skb); local 834 if (iph->protocol == IPPROTO_TCP) 836 else if (iph->protocol == IPPROTO_UDP) 885 struct iphdr *iph = ip_hdr(skb); local 887 iph->check = 0; 888 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, 891 struct ipv6hdr *iph = ipv6_hdr(skb); local 893 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph [all...] |
/drivers/s390/net/ |
H A D | qeth_l3_main.c | 2856 struct iphdr *iph = ip_hdr(skb); local 2861 if (iph->protocol == IPPROTO_UDP) 2865 iph->check = 0; 2875 struct iphdr *iph = ip_hdr(skb); local 2889 hdr->ext.dg_hdr_len = (__u16)(iph->ihl*4 + tcph->doff*4); 2899 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 2901 iph->tot_len = 0; 2902 iph->check = 0;
|