Lines Matching refs:iphdr
569 union iphdr { union
582 union iphdr ip_hdr; /* pointer to IP header */
7639 struct ip iphdr;
7650 error = mbuf_copydata(m, offset, sizeof(struct ip), &iphdr);
7659 if (iphdr.ip_p == IPPROTO_UDP) {
7672 if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr &&
7673 iphdr.ip_src.s_addr != INADDR_ANY) {
7679 (IP_VHL_HL(iphdr.ip_vhl) << 2);
7704 } else if (iphdr.ip_src.s_addr == INADDR_ANY) {
7709 } else if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr) {
7718 if (iphdr.ip_p != IPPROTO_TCP &&
7719 iphdr.ip_p != IPPROTO_UDP &&
7720 iphdr.ip_p != IPPROTO_ICMP &&
7721 iphdr.ip_p != IPPROTO_IGMP) {
8300 struct ip *iphdr;
8302 iphdr = (struct ip *)(void *)(eh + 1);
8303 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8318 struct ip *iphdr;
8325 iphdr = (struct ip *)(void *)(eh + 1);
8326 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8399 struct ip *iphdr;
8408 iphdr = (struct ip *)(void *)(eh + 1);
8409 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8414 bcopy(&iphdr->ip_src, &ip, sizeof(ip));
8421 if (ip.s_addr == 0 && iphdr->ip_p == IPPROTO_UDP) {
9611 union iphdr hdr;