Lines Matching refs:plenbytes
534 u_int plen, plenbytes; in decode_prefix4() local
544 plenbytes = (plen + 7) / 8; in decode_prefix4()
545 ND_TCHECK2(pptr[1], plenbytes); in decode_prefix4()
546 ITEMCHECK(plenbytes); in decode_prefix4()
547 memcpy(&addr, &pptr[1], plenbytes); in decode_prefix4()
549 ((u_char *)&addr)[plenbytes - 1] &= in decode_prefix4()
553 return 1 + plenbytes; in decode_prefix4()
567 u_int plen, plenbytes; in decode_labeled_prefix4() local
592 plenbytes = (plen + 7) / 8; in decode_labeled_prefix4()
593 ND_TCHECK2(pptr[4], plenbytes); in decode_labeled_prefix4()
594 ITEMCHECK(plenbytes); in decode_labeled_prefix4()
595 memcpy(&addr, &pptr[4], plenbytes); in decode_labeled_prefix4()
597 ((u_char *)&addr)[plenbytes - 1] &= in decode_labeled_prefix4()
607 return 4 + plenbytes; in decode_labeled_prefix4()
1121 u_int plen, plenbytes; in decode_prefix6() local
1131 plenbytes = (plen + 7) / 8; in decode_prefix6()
1132 ND_TCHECK2(pd[1], plenbytes); in decode_prefix6()
1133 ITEMCHECK(plenbytes); in decode_prefix6()
1134 memcpy(&addr, &pd[1], plenbytes); in decode_prefix6()
1136 addr.s6_addr[plenbytes - 1] &= in decode_prefix6()
1140 return 1 + plenbytes; in decode_prefix6()
1154 u_int plen, plenbytes; in decode_labeled_prefix6() local
1171 plenbytes = (plen + 7) / 8; in decode_labeled_prefix6()
1172 ND_TCHECK2(pptr[4], plenbytes); in decode_labeled_prefix6()
1173 memcpy(&addr, &pptr[4], plenbytes); in decode_labeled_prefix6()
1175 addr.s6_addr[plenbytes - 1] &= in decode_labeled_prefix6()
1185 return 4 + plenbytes; in decode_labeled_prefix6()