Home
last modified time | relevance | path

Searched refs:ip6_plen (Results 1 – 25 of 55) sorted by relevance

123

/netbsd/src/external/bsd/ipf/dist/lib/
Dipft_tx.c146 mb->mb_len = ntohs(((ip6_t *)ip)->ip6_plen) +
392 ip6->ip6_plen = sizeof(struct tcphdr);
395 ip6->ip6_plen = sizeof(struct udphdr);
398 ip6->ip6_plen = ICMP6ERR_IPICMPHLEN;
502 if (ip6->ip6_plen == 0) {
503 ip6->ip6_plen++;
505 ip6->ip6_plen = htons(ip6->ip6_plen);
Dprintpacket.c31 len = ntohs(((ip6_t *)ip)->ip6_plen);
/netbsd/src/sys/netinet6/
Din6_l2tp.c141 ip6hdr.ip6_plen = 0; in in6_l2tp_output()
143 ip6hdr.ip6_plen += sizeof(uint32_t); in in6_l2tp_output()
146 ip6hdr.ip6_plen += var->lv_peer_cookie_len; in in6_l2tp_output()
162 ip6hdr.ip6_plen += m->m_pkthdr.len; in in6_l2tp_output()
163 HTONS(ip6hdr.ip6_plen); in in6_l2tp_output()
Dfrag6.c197 if (ip6->ip6_plen == 0) { in frag6_input()
209 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset in frag6_input()
214 offsetof(struct ip6_hdr, ip6_plen)); in frag6_input()
379 ip6af->ip6af_len = ip6->ip6_plen; in frag6_input()
474 ip6->ip6_plen = htons(next); in frag6_input()
Din6_offload.c112 iph->ip6_plen = htons(thlen + mss); in tcp6_segment()
197 hdrlen + offsetof(struct ip6_hdr, ip6_plen); in in6_undefer_cksum()
Dip6_input.c561 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input()
581 if (ip6->ip6_plen == 0 && plen == 0) { in ip6_input()
592 (char *)&ip6->ip6_plen - (char *)ip6); in ip6_input()
961 if (ip6->ip6_plen) { in ip6_process_hopopts()
Dudp6_usrreq.c996 ip6->ip6_plen = htons((u_int16_t)plen); in udp6_output()
1483 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - skip); in udp6_espinudp()
Din6_gif.c163 ip6->ip6_plen = htons((u_int16_t)m->m_pkthdr.len); in in6_gif_output()
/netbsd/src/external/bsd/tcpdump/dist/
Dprint-frag6.c53 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen)) in frag6_print()
57 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) - in frag6_print()
Dip6.h89 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
Dprint-ip6.c255 payload_len = GET_BE_U_2(ip6->ip6_plen); in ip6_print()
/netbsd/src/sys/external/bsd/ipf/netinet/
Dip_rcmd_pxy.c249 slen = ip6->ip6_plen; in ipf_p_rcmd_portmsg()
250 ip6->ip6_plen = htons(sizeof(*tcp)); in ipf_p_rcmd_portmsg()
304 ip6->ip6_plen = slen; in ipf_p_rcmd_portmsg()
Dip_tftp_pxy.c329 slen = ip6->ip6_plen; in ipf_p_tftp_backchannel()
330 ip6->ip6_plen = htons(sizeof(udp)); in ipf_p_tftp_backchannel()
394 ip6->ip6_plen = slen; in ipf_p_tftp_backchannel()
/netbsd/src/external/bsd/ipf/dist/
Dip_tftp_pxy.c349 slen = ip6->ip6_plen;
350 ip6->ip6_plen = htons(sizeof(udp));
412 ip6->ip6_plen = slen;
/netbsd/src/sys/netinet/
Dip6.h93 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
Dtcp_syncache.c1321 ip6->ip6_plen = htons(tlen - hlen); in syn_cache_respond()
1326 ip6->ip6_plen = htons(tlen - hlen); in syn_cache_respond()
/netbsd/src/sys/arch/xen/xen/
Dxennet_checksum.c134 iplen = ntohs(ip6h->ip6_plen); in xennet_checksum_fill()
/netbsd/src/crypto/dist/ipsec-tools/src/racoon/
Ddump.c205 ip6.ip6_plen = htons(sizeof(uh) + msg->l);
/netbsd/src/sys/netipsec/
Dipsec_output.c229 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); in ipsec_process_done()
780 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); in ipsec6_process_packet()
Dxform_ipip.c456 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6o)); in ipip_output()
/netbsd/src/sys/net/npf/
Dnpf_sendpkt.c159 ip6->ip6_plen = htons(len); in npf_return_tcp()
/netbsd/src/sys/dist/pf/net/
Dpf_norm.c1193 if (h->ip6_plen != 0)
1224 if (ntohs(h->ip6_plen) == 0)
1227 plen = ntohs(h->ip6_plen);
1240 if (ntohs(h->ip6_plen) == 0 || jumbolen)
1242 plen = ntohs(h->ip6_plen);
/netbsd/src/usr.sbin/npf/npftest/libnpftest/
Dnpf_mbuf_subr.c212 ip6->ip6_plen = htons(size); in mbuf_construct6()
/netbsd/src/sys/dev/pci/
Dif_jme.c1378 ip6.ip6_plen = 0; in jme_encap()
1380 offsetof(struct ip6_hdr, ip6_plen), in jme_encap()
1381 sizeof(ip6.ip6_plen), &ip6.ip6_plen); in jme_encap()
1413 ip6->ip6_plen = 0; in jme_encap()
/netbsd/src/usr.sbin/trpt/
Dtrpt.c458 len = ip6->ip6_plen; in tcp_trace()

123