Searched refs:ip6optlen (Results 1 - 3 of 3) sorted by relevance

/netbsd-current/lib/libc/net/
H A Dip6opt.c66 static int ip6optlen(uint8_t *opt, uint8_t *lim);
309 if ((optlen = ip6optlen(*tptrp, lim)) == 0)
322 if (ip6optlen(*tptrp, lim) == 0)
368 if ((optlen = ip6optlen(*tptrp, lim)) == 0)
378 if ((optlen = ip6optlen(optp, lim)) == 0)
393 ip6optlen(uint8_t *opt, uint8_t *lim) function
584 if ((optlen = ip6optlen(optp, lim)) == 0)
589 if ((optlen = ip6optlen(optp, lim)) == 0)
629 if ((optlen = ip6optlen(optp, lim)) == 0)
/netbsd-current/sys/netipsec/
H A Dxform_ah.c295 int count, ip6optlen; local
418 ip6optlen = skip - sizeof(struct ip6_hdr);
421 if (ip6optlen > 0) {
423 ptr = malloc(ip6optlen, M_XDATA, M_NOWAIT);
436 ip6optlen, ptr);
449 for (off = 0; off < ip6optlen;) {
452 if (off + sizeof(*ip6e) > ip6optlen) {
457 if (noff > ip6optlen) {
509 m_copyback(m, sizeof(struct ip6_hdr), ip6optlen, ptr);
/netbsd-current/sbin/ping6/
H A Dping6.c287 int ip6optlen = 0; local
763 ip6optlen += CMSG_SPACE(sizeof(struct in6_pktinfo));
766 ip6optlen += CMSG_SPACE(sizeof(int));
769 if (ip6optlen) {
770 if ((scmsg = (char *)malloc(ip6optlen)) == 0)
773 smsghdr.msg_controllen = ip6optlen;

Completed in 108 milliseconds