Lines Matching refs:iphdr
566 union iphdr { union
579 union iphdr ip_hdr; /* pointer to IP header */
7525 struct ip iphdr;
7536 error = mbuf_copydata(m, offset, sizeof(struct ip), &iphdr);
7544 if (iphdr.ip_p == IPPROTO_UDP) {
7557 if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr &&
7558 iphdr.ip_src.s_addr != INADDR_ANY) {
7564 (IP_VHL_HL(iphdr.ip_vhl) << 2);
7589 } else if (iphdr.ip_src.s_addr == INADDR_ANY) {
7594 } else if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr ||
7602 if (iphdr.ip_p != IPPROTO_TCP &&
7603 iphdr.ip_p != IPPROTO_UDP &&
7604 iphdr.ip_p != IPPROTO_ICMP &&
7605 iphdr.ip_p != IPPROTO_ESP &&
7606 iphdr.ip_p != IPPROTO_AH &&
7607 iphdr.ip_p != IPPROTO_GRE) {
8157 struct ip *iphdr;
8159 iphdr = (struct ip *)(void *)(eh + 1);
8160 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8175 struct ip *iphdr;
8182 iphdr = (struct ip *)(void *)(eh + 1);
8183 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8256 struct ip *iphdr;
8265 iphdr = (struct ip *)(void *)(eh + 1);
8266 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8271 bcopy(&iphdr->ip_src, &ip, sizeof(ip));
8278 if (iphdr->ip_p == IPPROTO_UDP) {
9468 union iphdr hdr;