Searched defs:iph (Results 1 - 25 of 38) sorted by relevance

12

/drivers/net/wireless/mwifiex/
H A Dmain.c363 struct iphdr *iph; local
370 iph = ip_hdr(skb);
371 tid = IPTOS_PREC(iph->tos);
/drivers/infiniband/hw/nes/
H A Dnes_mgt.c177 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 Dnes_nic.c488 struct iphdr *iph; local
608 iph = (struct iphdr *)
659 iph->tot_len = htons(tso_wqe_length + original_first_length - nhoffset);
H A Dnes_cm.c408 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 Dnes_hw.c1650 struct iphdr *iph; local
1652 iph = ip_hdr(skb);
1653 if (iph->protocol != IPPROTO_TCP)
1660 *iphdr = iph;
/drivers/net/ppp/
H A Dpptp.c186 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 Dbond_alb.c1260 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 Dbond_main.c3342 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 Datl1e_main.c1353 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 Dbnad.c2246 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 Dsge.c816 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 Dsge.c1003 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 Dnetdev.c1902 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 Dixgb_main.c1243 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 Djme.c2072 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 Dpch_gbe_main.c1179 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 Dpasemi_mac.c266 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 Dnetxen_nic_init.c1609 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 Dqlcnic_init.c1597 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 Dibmtr.c1694 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 Dvmxnet3_drv.c823 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 Dnetback.c1118 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 Dxen-netfront.c792 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 Dqib_common.h691 struct qib_header iph; member in struct:qib_message_header
/drivers/net/ethernet/atheros/atlx/
H A Datl1.c2127 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...]

Completed in 4997 milliseconds

12