Lines Matching refs:iphdr
111 struct ip iphdr; /* capsule IP header, host byte ordered */
164 bzero(&iphdr, sizeof(iphdr));
165 iphdr.ip_src = sin_src->sin_addr;
168 iphdr.ip_dst = sin_dst->sin_addr;
173 iphdr.ip_p = proto;
175 iphdr.ip_ttl = ip_gif_ttl;
176 iphdr.ip_len = m->m_pkthdr.len + sizeof(struct ip);
178 ip_ecn_ingress(ECN_ALLOWED, &iphdr.ip_tos, &tos);
180 ip_ecn_ingress(ECN_NOCARE, &iphdr.ip_tos, &tos);
190 bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip));