Lines Matching defs:iph
3112 struct ip *iph;
3127 iph = mtod(in_initpkt, struct ip *);
3128 if (iph->ip_v == IPVERSION) {
3130 sin4.sin_addr = iph->ip_src;
3132 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
3260 struct ip *iph;
3397 iph = mtod(init_pkt, struct ip *);
3398 if (iph->ip_v == IPVERSION) {
3405 sin->sin_addr = iph->ip_src;
3442 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
8041 struct ip *iph, *iph_out;
8051 iph = mtod(m, struct ip *);
8055 if (iph->ip_v == IPVERSION) {
8069 iph_out->ip_src.s_addr = iph->ip_dst.s_addr;
8070 iph_out->ip_dst.s_addr = iph->ip_src.s_addr;
8077 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
8078 ip6 = (struct ip6_hdr *)iph;
8486 struct ip *iph;
8503 iph = mtod(m, struct ip *);
8504 if (iph == NULL) {
8507 if (iph->ip_v == IPVERSION) {
8510 len = chk->send_size = iph->ip_len;
8512 len = chk->send_size = (iph->ip_len - iphlen);
8955 struct ip *iph, *iph_out;
8969 iph = mtod(m, struct ip *);
8972 if (iph->ip_v == IPVERSION) {
8985 iph_out->ip_src.s_addr = iph->ip_dst.s_addr;
8986 iph_out->ip_dst.s_addr = iph->ip_src.s_addr;
8992 } else if (iph->ip_v == (IPV6_VERSION >> 4)) {
8993 ip6 = (struct ip6_hdr *)iph;
9096 struct ip *iph;
9101 iph = mtod(m, struct ip *);
9102 ihdr = (struct sctphdr *)((vaddr_t)iph + iphlen);
9137 if (iph->ip_v == IPVERSION) {
9146 out->ip_v = iph->ip_v;
9148 out->ip_tos = iph->ip_tos;
9149 out->ip_id = iph->ip_id;
9154 out->ip_src = iph->ip_dst;
9155 out->ip_dst = iph->ip_src;