Searched refs:iphdr (Results 1 – 10 of 10) sorted by relevance
| /netbsd-src/usr.sbin/npf/npftest/libnpftest/ |
| H A D | npf_mbuf_subr.c | 170 struct ip *iphdr; in mbuf_construct() local 175 iphdr = mtod(m, struct ip *); in mbuf_construct() 177 iphdr->ip_v = IPVERSION; in mbuf_construct() 178 iphdr->ip_hl = sizeof(struct ip) >> 2; in mbuf_construct() 179 iphdr->ip_off = 0; in mbuf_construct() 180 iphdr->ip_ttl = 64; in mbuf_construct() 181 iphdr->ip_p = proto; in mbuf_construct() 184 l4data = (void *)(iphdr + 1); in mbuf_construct() 186 iphdr->ip_len = htons(size); in mbuf_construct() 223 struct ip *iphdr; in mbuf_return_hdrs() local [all …]
|
| /netbsd-src/sys/netinet/ |
| H A D | in_l2tp.c | 92 struct ip iphdr; /* capsule IP header, host byte ordered */ in in_l2tp_output() local 130 memset(&iphdr, 0, sizeof(iphdr)); in in_l2tp_output() 131 iphdr.ip_src = sin_src->sin_addr; in in_l2tp_output() 132 iphdr.ip_dst = sin_dst->sin_addr; in in_l2tp_output() 133 iphdr.ip_p = IPPROTO_L2TP; in in_l2tp_output() 135 iphdr.ip_ttl = ip_l2tp_ttl; in in_l2tp_output() 137 iphdr.ip_len = sizeof(struct ip); in in_l2tp_output() 139 iphdr.ip_len += sizeof(uint32_t); in in_l2tp_output() 142 iphdr.ip_len += var->lv_peer_cookie_len; in in_l2tp_output() 160 iphdr.ip_len += m->m_pkthdr.len; in in_l2tp_output() [all …]
|
| H A D | in_gif.c | 90 struct ip iphdr; /* capsule IP header, host byte ordered */ in in_gif_output() local 148 memset(&iphdr, 0, sizeof(iphdr)); in in_gif_output() 149 iphdr.ip_src = sin_src->sin_addr; in in_gif_output() 152 iphdr.ip_dst = sin_dst->sin_addr; in in_gif_output() 157 iphdr.ip_p = proto; in in_gif_output() 159 iphdr.ip_ttl = ip_gif_ttl; in in_gif_output() 160 iphdr.ip_len = htons(m->m_pkthdr.len + sizeof(struct ip)); in in_gif_output() 162 ip_ecn_ingress(ECN_ALLOWED, &iphdr.ip_tos, &tos); in in_gif_output() 164 ip_ecn_ingress(ECN_NOCARE, &iphdr.ip_tos, &tos); in in_gif_output() 173 bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip)); in in_gif_output()
|
| /netbsd-src/sys/net/ |
| H A D | if_mpls.c | 605 struct ip iphdr; in mpls_label_inet() local 613 m_copydata(m, offset, sizeof(struct ip), &iphdr); in mpls_label_inet() 617 ms->shim.ttl = iphdr.ip_ttl; in mpls_label_inet() 621 ms->shim.exp = ((u_int8_t)iphdr.ip_tos) >> 5; in mpls_label_inet()
|
| H A D | if_ppp.c | 1452 u_char *iphdr; in ppp_inproc() local 1555 TYPE_COMPRESSED_TCP, sc->sc_comp, &iphdr, &hlen); in ppp_inproc() 1585 bcopy(iphdr, cp + PPP_HDRLEN, hlen); in ppp_inproc() 1610 TYPE_UNCOMPRESSED_TCP, sc->sc_comp, &iphdr, &hlen); in ppp_inproc()
|
| /netbsd-src/external/mpl/dhcp/dist/common/ |
| H A D | dlpi.c | 426 struct ip iphdr; local 466 offset = ETHER_H_PREFIX + sizeof (iphdr) + sizeof (u_int16_t); 475 offset = ETHER_H_PREFIX + ((u_int8_t *)&(iphdr.ip_p) - (u_int8_t *)&iphdr);
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | elf32-lm32.c | 2348 Elf_Internal_Phdr *iphdr = &elf_tdata (ibfd)->phdr[i]; in lm32_elf_fdpic_copy_private_bfd_data() local 2353 memcpy (&elf_tdata (obfd)->phdr[i], iphdr, sizeof (*iphdr)); in lm32_elf_fdpic_copy_private_bfd_data()
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | elf32-lm32.c | 2348 Elf_Internal_Phdr *iphdr = &elf_tdata (ibfd)->phdr[i]; in lm32_elf_fdpic_copy_private_bfd_data() local 2353 memcpy (&elf_tdata (obfd)->phdr[i], iphdr, sizeof (*iphdr)); in lm32_elf_fdpic_copy_private_bfd_data()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | i82557.c | 1308 const uint16_t *iphdr; in fxp_rx_hwcksum() 1310 iphdr = (uint16_t *)ip; in fxp_rx_hwcksum() 1313 hsum += ntohs(*iphdr++); in fxp_rx_hwcksum()
|
| /netbsd-src/crypto/dist/ipsec-tools/src/racoon/ |
| H A D | isakmp.c | 210 struct iphdr ip; in isakmp_handler()
|