Lines Matching refs:plenbytes

492 	u_int plen, plenbytes;  in decode_prefix4()  local
502 plenbytes = (plen + 7) / 8; in decode_prefix4()
503 TCHECK2(pptr[1], plenbytes); in decode_prefix4()
504 ITEMCHECK(plenbytes); in decode_prefix4()
505 memcpy(&addr, &pptr[1], plenbytes); in decode_prefix4()
507 ((u_char *)&addr)[plenbytes - 1] &= in decode_prefix4()
511 return 1 + plenbytes; in decode_prefix4()
524 u_int plen, plenbytes; in decode_labeled_prefix4() local
549 plenbytes = (plen + 7) / 8; in decode_labeled_prefix4()
550 TCHECK2(pptr[4], plenbytes); in decode_labeled_prefix4()
551 ITEMCHECK(plenbytes); in decode_labeled_prefix4()
552 memcpy(&addr, &pptr[4], plenbytes); in decode_labeled_prefix4()
554 ((u_char *)&addr)[plenbytes - 1] &= in decode_labeled_prefix4()
564 return 4 + plenbytes; in decode_labeled_prefix4()
1054 u_int plen, plenbytes; in decode_prefix6() local
1064 plenbytes = (plen + 7) / 8; in decode_prefix6()
1065 TCHECK2(pd[1], plenbytes); in decode_prefix6()
1066 ITEMCHECK(plenbytes); in decode_prefix6()
1067 memcpy(&addr, &pd[1], plenbytes); in decode_prefix6()
1069 addr.s6_addr[plenbytes - 1] &= in decode_prefix6()
1073 return 1 + plenbytes; in decode_prefix6()
1086 u_int plen, plenbytes; in decode_labeled_prefix6() local
1103 plenbytes = (plen + 7) / 8; in decode_labeled_prefix6()
1104 TCHECK2(pptr[4], plenbytes); in decode_labeled_prefix6()
1105 memcpy(&addr, &pptr[4], plenbytes); in decode_labeled_prefix6()
1107 addr.s6_addr[plenbytes - 1] &= in decode_labeled_prefix6()
1117 return 4 + plenbytes; in decode_labeled_prefix6()