/drivers/net/wireless/mwifiex/ |
H A D | main.c | 363 struct iphdr *iph; local 370 iph = ip_hdr(skb); 371 tid = IPTOS_PREC(iph->tos);
|
/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)); 243 struct iphdr *iph; local 341 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); 342 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph->ihl)); 361 iph = (struct iphdr *)(fpdu_info->hdr_vbase + ETH_HLEN); 362 tcph = (struct tcphdr *)(((char *)iph) + (4 * iph 511 struct iphdr *iph; local [all...] |
H A D | nes_nic.c | 488 struct iphdr *iph; local 608 iph = (struct iphdr *) 659 iph->tot_len = htons(tso_wqe_length + original_first_length - nhoffset);
|
H A D | nes_cm.c | 408 struct iphdr *iph; local 411 u16 packetsize = sizeof(*iph); 417 memset(skb->data, 0x00, ETH_HLEN + sizeof(*iph) + sizeof(*tcph)); 424 iph = (struct iphdr *)buf; 425 buf += sizeof(*iph); 429 skb_set_transport_header(skb, ETH_HLEN + sizeof(*iph)); 441 iph->version = IPVERSION; 442 iph->ihl = 5; /* 5 * 4Byte words, IP headr len */ 443 iph->tos = 0; 444 iph 2513 struct iphdr *iph; local [all...] |
H A D | nes_hw.c | 1650 struct iphdr *iph; local 1652 iph = ip_hdr(skb); 1653 if (iph->protocol != IPPROTO_TCP) 1660 *iphdr = iph;
|
/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/net/bonding/ |
H A D | bond_alb.c | 1260 const struct iphdr *iph = ip_hdr(skb); local 1263 (iph->daddr == ip_bcast) || 1264 (iph->protocol == IPPROTO_IGMP)) { 1268 hash_start = (char *)&(iph->daddr); 1269 hash_size = sizeof(iph->daddr);
|
H A D | bond_main.c | 3342 struct iphdr *iph = ip_hdr(skb); local 3345 return ((ntohl(iph->saddr ^ iph->daddr) & 0xffff) ^ 3360 struct iphdr *iph = ip_hdr(skb); local 3361 __be16 *layer4hdr = (__be16 *)((u32 *)iph + iph->ihl); 3365 if (!ip_is_fragment(iph) && 3366 (iph->protocol == IPPROTO_TCP || 3367 iph->protocol == IPPROTO_UDP)) { 3371 ((ntohl(iph 3935 struct iphdr *iph = ip_hdr(skb); local [all...] |
/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_main.c | 1353 struct iphdr *iph; local 1366 iph = (struct iphdr *) (packet + head_len); 1367 if (iph->frag_off != 0 && !(pkt_flags & RRS_IS_IP_DF))
|
/drivers/net/ethernet/brocade/bna/ |
H A D | bnad.c | 2246 struct iphdr *iph = ip_hdr(skb); local 2249 iph->tot_len = 0; 2250 iph->check = 0; 2253 ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0,
|
/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 816 const struct iphdr *iph = ip_hdr(skb); local 818 if (iph->version == 4) { 819 if (iph->protocol == IPPROTO_TCP) 821 else if (iph->protocol == IPPROTO_UDP) 834 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph;
|
/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/intel/igbvf/ |
H A D | netdev.c | 1902 struct iphdr *iph = ip_hdr(skb); local 1903 iph->tot_len = 0; 1904 iph->check = 0; 1905 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 1906 iph->daddr, 0,
|
/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_main.c | 1243 struct iphdr *iph; local 1253 iph = ip_hdr(skb); 1254 iph->tot_len = 0; 1255 iph->check = 0; 1256 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 1257 iph->daddr, 0, 1260 ipcso = (void *)&(iph->check) - (void *)skb->data;
|
/drivers/net/ethernet/ |
H A D | jme.c | 2072 struct iphdr *iph = ip_hdr(skb); local 2074 iph->check = 0; 2075 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 2076 iph->daddr, 0,
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_main.c | 1179 struct iphdr *iph = ip_hdr(skb); local 1181 iph->check = 0; 1182 iph->check = ip_fast_csum((u8 *) iph, iph->ihl); 1184 if (iph->protocol == IPPROTO_TCP) { 1190 csum_tcpudp_magic(iph->saddr, 1191 iph->daddr, 1195 } else if (iph->protocol == IPPROTO_UDP) { 1202 csum_tcpudp_magic(iph [all...] |
/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 266 struct iphdr *iph; local 274 iph = ip_hdr(skb); 275 if (iph->protocol != IPPROTO_TCP) 283 if (ntohs(iph->tot_len) < ip_len + tcp_hdrlen(skb)) 287 *iphdr = iph;
|
/drivers/net/ethernet/qlogic/netxen/ |
H A D | netxen_nic_init.c | 1609 struct iphdr *iph; local 1652 iph = (struct iphdr *)(skb->data + vhdr_len); 1653 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); 1655 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; 1656 iph->tot_len = htons(length); 1657 iph->check = 0; 1658 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
|
/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_init.c | 1597 struct iphdr *iph; local 1645 iph = (struct iphdr *)skb->data; 1646 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); 1648 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; 1649 iph->tot_len = htons(length); 1650 iph->check = 0; 1651 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
|
/drivers/net/tokenring/ |
H A D | ibmtr.c | 1694 struct iphdr *iph; local 1789 iph= (struct iphdr *)(data+ lan_hdr_len + sizeof(struct trllc)); 1790 ip_len = ntohs(iph->tot_len) - sizeof(struct iphdr);
|
/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 823 const struct iphdr *iph = ip_hdr(skb); local 825 if (iph->protocol == IPPROTO_TCP) 827 else if (iph->protocol == IPPROTO_UDP) 876 struct iphdr *iph = ip_hdr(skb); local 878 iph->check = 0; 879 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, 882 struct ipv6hdr *iph = ipv6_hdr(skb); local 884 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph [all...] |
/drivers/net/xen-netback/ |
H A D | netback.c | 1118 struct iphdr *iph; local 1142 iph = (void *)skb->data; 1143 th = skb->data + 4 * iph->ihl; 1148 switch (iph->protocol) { 1154 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 1155 skb->len - iph->ihl*4, 1164 udph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 1165 skb->len - iph [all...] |
/drivers/net/ |
H A D | xen-netfront.c | 792 struct iphdr *iph; local 817 iph = (void *)skb->data; 818 th = skb->data + 4 * iph->ihl; 823 switch (iph->protocol) { 829 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 830 skb->len - iph->ihl*4, 839 udph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 840 skb->len - iph [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_common.h | 691 struct qib_header iph; member in struct:qib_message_header
|
/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.c | 2127 struct iphdr *iph = ip_hdr(skb); local 2129 real_len = (((unsigned char *)iph - skb->data) + 2130 ntohs(iph->tot_len)); 2135 iph->check = 0; 2137 ~csum_tcpudp_magic(iph->saddr, 2138 iph->daddr, tcp_hdrlen(skb), 2140 ptpd->word3 |= (iph->ihl & TPD_IPHL_MASK) << 2150 iph->check = 0; 2151 tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr, 2152 iph [all...] |