Lines Matching defs:iph
383 struct iphdr *iph;
411 packetsize = sizeof(*iph) + sizeof(*tcph);
429 iph = (struct iphdr *)buf;
430 buf += sizeof(*iph);
446 iph->version = IPVERSION;
447 iph->ihl = 5; /* 5 * 4Byte words, IP headr len */
448 iph->tos = cm_node->tos;
449 iph->tot_len = htons(packetsize);
450 iph->id = htons(++cm_node->tcp_cntxt.loc_id);
452 iph->frag_off = htons(0x4000);
453 iph->ttl = 0x40;
454 iph->protocol = IPPROTO_TCP;
455 iph->saddr = htonl(cm_node->loc_addr[0]);
456 iph->daddr = htonl(cm_node->rem_addr[0]);
3127 struct iphdr *iph;
3138 iph = (struct iphdr *)rbuf->iph;
3163 cm_info.loc_addr[0] = ntohl(iph->daddr);
3164 cm_info.rem_addr[0] = ntohl(iph->saddr);
3166 cm_info.tos = iph->tos;
3168 ip6h = (struct ipv6hdr *)rbuf->iph;