Home
last modified time | relevance | path

Searched refs:iphdr (Results 1 – 6 of 6) sorted by relevance

/openbsd/usr.sbin/npppd/npppd/
H A Dnpppd_iface.c437 struct ip *iphdr; in npppd_iface_network_input_ipv4() local
445 iphdr = (struct ip *)pktp; in npppd_iface_network_input_ipv4()
448 if (lpktp < sizeof(iphdr)) { in npppd_iface_network_input_ipv4()
455 if (IN_MULTICAST(ntohl(iphdr->ip_dst.s_addr))) { in npppd_iface_network_input_ipv4()
466 ppp = npppd_get_ppp_by_ip(_npppd, iphdr->ip_dst); in npppd_iface_network_input_ipv4()
472 "%s.", _this->ifname, inet_ntoa(iphdr->ip_dst)); in npppd_iface_network_input_ipv4()
481 if (ppp->timeout_sec > 0 && !ip_is_idle_packet(iphdr, lpktp)) in npppd_iface_network_input_ipv4()
/openbsd/usr.sbin/npppd/pptp/
H A Dpptpd.c688 struct ip *iphdr; in pptpd_gre_input() local
728 iphdr = (struct ip *)pkt; in pptpd_gre_input()
730 iphdr->ip_len = ntohs(iphdr->ip_len); in pptpd_gre_input()
731 hlen = iphdr->ip_hl * 4; in pptpd_gre_input()
733 if (iphdr->ip_len > lpkt || in pptpd_gre_input()
734 iphdr->ip_len < hlen + sizeof(struct pptp_gre_header)) { in pptpd_gre_input()
737 iphdr->ip_len, lpkt); in pptpd_gre_input()
802 "ack=%u ifidx=%d", reason, hbuf0, inet_ntoa(iphdr->ip_dst), logbuf, in pptpd_gre_input()
/openbsd/sys/net/
H A Dif_ppp.c1181 u_char *iphdr; in ppp_inproc() local
1284 TYPE_COMPRESSED_TCP, sc->sc_comp, &iphdr, &hlen); in ppp_inproc()
1316 bcopy(iphdr, cp + PPP_HDRLEN, hlen); in ppp_inproc()
1341 TYPE_UNCOMPRESSED_TCP, sc->sc_comp, &iphdr, &hlen); in ppp_inproc()
/openbsd/gnu/usr.bin/binutils/bfd/
H A Delf32-frv.c4310 Elf_Internal_Phdr *iphdr = &elf_tdata (ibfd)->phdr[i]; in elf32_frvfdpic_copy_private_bfd_data() local
4315 memcpy (&elf_tdata (obfd)->phdr[i], iphdr, sizeof (*iphdr)); in elf32_frvfdpic_copy_private_bfd_data()
/openbsd/gnu/usr.bin/binutils-2.17/bfd/
H A Delf32-bfin.c4768 Elf_Internal_Phdr *iphdr = &elf_tdata (ibfd)->phdr[i]; in elf32_bfinfdpic_copy_private_bfd_data() local
4773 memcpy (&elf_tdata (obfd)->phdr[i], iphdr, sizeof (*iphdr)); in elf32_bfinfdpic_copy_private_bfd_data()
H A Delf32-frv.c6454 Elf_Internal_Phdr *iphdr = &elf_tdata (ibfd)->phdr[i]; in elf32_frvfdpic_copy_private_bfd_data() local
6459 memcpy (&elf_tdata (obfd)->phdr[i], iphdr, sizeof (*iphdr)); in elf32_frvfdpic_copy_private_bfd_data()