Lines Matching refs:iphdr
564 union iphdr { union
577 union iphdr ip_hdr; /* pointer to IP header */
7418 struct ip iphdr;
7429 error = mbuf_copydata(m, offset, sizeof(struct ip), &iphdr);
7437 if (iphdr.ip_p == IPPROTO_UDP) {
7450 if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr &&
7451 iphdr.ip_src.s_addr != INADDR_ANY) {
7457 (IP_VHL_HL(iphdr.ip_vhl) << 2);
7482 } else if (iphdr.ip_src.s_addr == INADDR_ANY) {
7487 } else if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr ||
7495 if (iphdr.ip_p != IPPROTO_TCP &&
7496 iphdr.ip_p != IPPROTO_UDP &&
7497 iphdr.ip_p != IPPROTO_ICMP &&
7498 iphdr.ip_p != IPPROTO_ESP &&
7499 iphdr.ip_p != IPPROTO_AH &&
7500 iphdr.ip_p != IPPROTO_GRE) {
8050 struct ip *iphdr;
8052 iphdr = (struct ip *)(void *)(eh + 1);
8053 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8068 struct ip *iphdr;
8075 iphdr = (struct ip *)(void *)(eh + 1);
8076 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8149 struct ip *iphdr;
8158 iphdr = (struct ip *)(void *)(eh + 1);
8159 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8164 bcopy(&iphdr->ip_src, &ip, sizeof(ip));
8171 if (iphdr->ip_p == IPPROTO_UDP) {
9326 union iphdr hdr;