Lines Matching refs:iphdr
7877 struct ip iphdr;
7888 error = mbuf_copydata(m, offset, sizeof(struct ip), &iphdr);
7897 if (iphdr.ip_p == IPPROTO_UDP) {
7910 if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr &&
7911 iphdr.ip_src.s_addr != INADDR_ANY) {
7917 (IP_VHL_HL(iphdr.ip_vhl) << 2);
7942 } else if (iphdr.ip_src.s_addr == INADDR_ANY) {
7947 } else if (iphdr.ip_src.s_addr != bif->bif_hf_ipsrc.s_addr) {
7956 if (iphdr.ip_p != IPPROTO_TCP &&
7957 iphdr.ip_p != IPPROTO_UDP &&
7958 iphdr.ip_p != IPPROTO_ICMP &&
7959 iphdr.ip_p != IPPROTO_IGMP) {
8610 struct ip *iphdr;
8612 iphdr = (struct ip *)(header + sizeof(struct ether_header));
8613 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8628 struct ip *iphdr;
8635 iphdr = (struct ip *)(void *)(header + sizeof(struct ether_header));
8636 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));
8710 struct ip *iphdr;
8721 iphdr = (struct ip *)(header + sizeof(*eh));
8722 ip_header_len = IP_VHL_HL(iphdr->ip_vhl) << 2;
8727 bcopy(&iphdr->ip_src, &ip, sizeof(ip));
8734 if (ip.s_addr == 0 && iphdr->ip_p == IPPROTO_UDP) {
10090 struct ip *iphdr;
10092 iphdr = (struct ip *)(header + sizeof(struct ether_header));
10093 bcopy(&iphdr->ip_dst, &dst, sizeof(dst));