Home | History | Annotate | Download | only in netinet

Lines Matching defs:iphdr

90 	struct ip iphdr;	/* capsule IP header, host byte ordered */
148 memset(&iphdr, 0, sizeof(iphdr));
149 iphdr.ip_src = sin_src->sin_addr;
152 iphdr.ip_dst = sin_dst->sin_addr;
157 iphdr.ip_p = proto;
159 iphdr.ip_ttl = ip_gif_ttl;
160 iphdr.ip_len = htons(m->m_pkthdr.len + sizeof(struct ip));
162 ip_ecn_ingress(ECN_ALLOWED, &iphdr.ip_tos, &tos);
164 ip_ecn_ingress(ECN_NOCARE, &iphdr.ip_tos, &tos);
173 bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip));