Searched refs:ip6_plen (Results 1 - 25 of 56) sorted by relevance

123

/netbsd-current/external/bsd/tcpdump/dist/
H A Dprint-frag6.c54 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) -
59 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) -
H A Dip6.h89 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
H A Dprint-ip6.c263 payload_len = GET_BE_U_2(ip6->ip6_plen);
/netbsd-current/external/bsd/ipf/dist/lib/
H A 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);
H A Dprintpacket.c31 len = ntohs(((ip6_t *)ip)->ip6_plen);
/netbsd-current/sys/netinet6/
H A Din6_l2tp.c141 ip6hdr.ip6_plen = 0;
143 ip6hdr.ip6_plen += sizeof(uint32_t);
146 ip6hdr.ip6_plen += var->lv_peer_cookie_len;
162 ip6hdr.ip6_plen += m->m_pkthdr.len;
163 HTONS(ip6hdr.ip6_plen);
H A Din6_offload.c112 iph->ip6_plen = htons(thlen + mss);
199 hdrlen + offsetof(struct ip6_hdr, ip6_plen);
H A Dfrag6.c197 if (ip6->ip6_plen == 0) {
209 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset
214 offsetof(struct ip6_hdr, ip6_plen));
379 ip6af->ip6af_len = ip6->ip6_plen;
474 ip6->ip6_plen = htons(next);
H A Dip6_input.c561 plen = (u_int32_t)ntohs(ip6->ip6_plen);
581 if (ip6->ip6_plen == 0 && plen == 0) {
592 (char *)&ip6->ip6_plen - (char *)ip6);
961 if (ip6->ip6_plen) {
H A Dudp6_usrreq.c993 #if 0 /* ip6_plen will be filled in ip6_output. */
994 ip6->ip6_plen = htons((u_int16_t)plen);
1481 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - skip);
H A Din6_gif.c162 #if 0 /* ip6->ip6_plen will be filled by ip6_output */
163 ip6->ip6_plen = htons((u_int16_t)m->m_pkthdr.len);
/netbsd-current/sys/external/bsd/ipf/netinet/
H A Dip_rcmd_pxy.c249 slen = ip6->ip6_plen;
250 ip6->ip6_plen = htons(sizeof(*tcp));
304 ip6->ip6_plen = slen;
H A Dip_tftp_pxy.c329 slen = ip6->ip6_plen;
330 ip6->ip6_plen = htons(sizeof(udp));
394 ip6->ip6_plen = slen;
/netbsd-current/sys/arch/xen/xen/
H A Dxennet_checksum.c134 iplen = ntohs(ip6h->ip6_plen);
/netbsd-current/sys/netinet/
H A Dip6.h93 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
H A Dtcp_syncache.c1155 /* ip6_plen will be updated in ip6_output() */
1321 ip6->ip6_plen = htons(tlen - hlen);
1326 ip6->ip6_plen = htons(tlen - hlen);
/netbsd-current/external/bsd/ipf/dist/
H A Dip_tftp_pxy.c349 slen = ip6->ip6_plen;
350 ip6->ip6_plen = htons(sizeof(udp));
412 ip6->ip6_plen = slen;
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/
H A Ddump.c205 ip6.ip6_plen = htons(sizeof(uh) + msg->l);
/netbsd-current/sys/net/npf/
H A Dnpf_sendpkt.c159 ip6->ip6_plen = htons(len);
/netbsd-current/sys/netipsec/
H A Dipsec_output.c229 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
781 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
H A Dxform_ipip.c456 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6o));
H A Dxform_ah.c398 if (ip6.ip6_plen == 0) {
921 ipoffs = offsetof(struct ip6_hdr, ip6_plen);
/netbsd-current/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_mbuf_subr.c212 ip6->ip6_plen = htons(size);
/netbsd-current/sys/dist/pf/net/
H A 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-current/usr.sbin/trpt/
H A Dtrpt.c458 len = ip6->ip6_plen;

Completed in 324 milliseconds

123