Lines Matching refs:iphdr
566 union iphdr { union
579 union iphdr ip_hdr; /* pointer to IP header */
7512 struct ip iphdr;
7523 error = mbuf_copydata(m, offset, sizeof(struct ip), &iphdr);
7531 if (iphdr.ip_p == IPPROTO_UDP) {
7544 if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr &&
7545 iphdr.ip_src.s_addr != INADDR_ANY) {
7551 (IP_VHL_HL(iphdr.ip_vhl) << 2);
7576 } else if (iphdr.ip_src.s_addr == INADDR_ANY) {
7581 } else if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr ||
7589 if (iphdr.ip_p != IPPROTO_TCP &&
7590 iphdr.ip_p != IPPROTO_UDP &&
7591 iphdr.ip_p != IPPROTO_ICMP &&
7592 iphdr.ip_p != IPPROTO_ESP &&
7593 iphdr.ip_p != IPPROTO_AH &&
7594 iphdr.ip_p != IPPROTO_GRE) {
8144 struct ip *iphdr;
8146 iphdr = (struct ip *)(void *)(eh + 1);
8147 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8162 struct ip *iphdr;
8169 iphdr = (struct ip *)(void *)(eh + 1);
8170 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8243 struct ip *iphdr;
8252 iphdr = (struct ip *)(void *)(eh + 1);
8253 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8258 bcopy(&iphdr->ip_src, &ip, sizeof(ip));
8265 if (iphdr->ip_p == IPPROTO_UDP) {
9455 union iphdr hdr;