Lines Matching defs:iph
421 struct iphdr *iph;
451 pktsize = sizeof(*iph) + sizeof(*tcph);
472 iph = (struct iphdr *)buf;
473 buf += sizeof(*iph);
492 iph->version = IPVERSION;
493 iph->ihl = 5; /* 5 * 4Byte words, IP headr len */
494 iph->tos = cm_node->tos;
495 iph->tot_len = htons(pktsize);
496 iph->id = htons(++cm_node->tcp_cntxt.loc_id);
498 iph->frag_off = htons(0x4000);
499 iph->ttl = 0x40;
500 iph->protocol = IPPROTO_TCP;
501 iph->saddr = htonl(cm_node->loc_addr[0]);
502 iph->daddr = htonl(cm_node->rem_addr[0]);
3140 struct iphdr *iph;
3150 iph = (struct iphdr *)rbuf->iph;
3179 cm_info.loc_addr[0] = ntohl(iph->daddr);
3180 cm_info.rem_addr[0] = ntohl(iph->saddr);
3182 cm_info.tos = iph->tos;
3184 ip6h = (struct ipv6hdr *)rbuf->iph;