Lines Matching refs:plen

492 	u_int plen, plenbytes;
496 plen = pptr[0];
497 if (32 < plen)
502 plenbytes = (plen + 7) / 8;
506 if (plen % 8) {
508 ((0xff00 >> (plen % 8)) & 0xff);
510 snprintf(buf, buflen, "%s/%d", getname((u_char *)&addr), plen);
524 u_int plen, plenbytes;
529 plen = pptr[0]; /* get prefix length */
539 if (24 > plen)
542 plen-=24; /* adjust prefixlen - labellength */
544 if (32 < plen)
549 plenbytes = (plen + 7) / 8;
553 if (plen % 8) {
555 ((0xff00 >> (plen % 8)) & 0xff);
560 plen,
713 u_int plen;
716 plen = pptr[0]; /* get prefix length */
718 if (0 == plen)
721 if (32 > plen)
724 plen-=32; /* adjust prefix length */
726 if (64 < plen)
730 TCHECK2(pptr[1], (plen + 7) / 8);
731 memcpy(&route_target, &pptr[1], (plen + 7) / 8);
732 if (plen % 8) {
733 ((u_char *)&route_target)[(plen + 7) / 8 - 1] &=
734 ((0xff00 >> (plen % 8)) & 0xff);
740 return 5 + (plen + 7) / 8;
750 u_int plen;
753 plen = pptr[0]; /* get prefix length */
755 if ((24+64) > plen)
758 plen-=(24+64); /* adjust prefixlen - labellength - RD len*/
760 if (32 < plen)
764 TCHECK2(pptr[12], (plen + 7) / 8);
765 memcpy(&addr, &pptr[12], (plen + 7) / 8);
766 if (plen % 8) {
767 ((u_char *)&addr)[(plen + 7) / 8 - 1] &=
768 ((0xff00 >> (plen % 8)) & 0xff);
774 plen,
778 return 12 + (plen + 7) / 8;
960 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len;
963 plen=EXTRACT_16BITS(pptr);
964 tlen=plen;
970 if (plen==12) {
982 return plen;
983 } else if (plen>17) {
1037 return plen+2;
1054 u_int plen, plenbytes;
1058 plen = pd[0];
1059 if (128 < plen)
1064 plenbytes = (plen + 7) / 8;
1068 if (plen % 8) {
1070 ((0xff00 >> (plen % 8)) & 0xff);
1072 snprintf(buf, buflen, "%s/%d", getname6((u_char *)&addr), plen);
1086 u_int plen, plenbytes;
1091 plen = pptr[0]; /* get prefix length */
1093 if (24 > plen)
1096 plen-=24; /* adjust prefixlen - labellength */
1098 if (128 < plen)
1103 plenbytes = (plen + 7) / 8;
1106 if (plen % 8) {
1108 ((0xff00 >> (plen % 8)) & 0xff);
1113 plen,
1130 u_int plen;
1133 plen = pptr[0]; /* get prefix length */
1135 if ((24+64) > plen)
1138 plen-=(24+64); /* adjust prefixlen - labellength - RD len*/
1140 if (128 < plen)
1144 TCHECK2(pptr[12], (plen + 7) / 8);
1145 memcpy(&addr, &pptr[12], (plen + 7) / 8);
1146 if (plen % 8) {
1147 addr.s6_addr[(plen + 7) / 8 - 1] &=
1148 ((0xff00 >> (plen % 8)) & 0xff);
1154 plen,
1158 return 12 + (plen + 7) / 8;
1169 u_int plen;
1172 plen = pptr[0]; /* get prefix length */
1174 if (152 < plen)
1178 TCHECK2(pptr[4], (plen + 7) / 8);
1179 memcpy(&addr, &pptr[4], (plen + 7) / 8);
1180 if (plen % 8) {
1181 addr[(plen + 7) / 8 - 1] &=
1182 ((0xff00 >> (plen % 8)) & 0xff);
1185 isonsap_string(addr,(plen + 7) / 8),
1186 plen);
1188 return 1 + (plen + 7) / 8;
1198 u_int plen;
1201 plen = pptr[0]; /* get prefix length */
1203 if ((24+64) > plen)
1206 plen-=(24+64); /* adjust prefixlen - labellength - RD len*/
1208 if (152 < plen)
1212 TCHECK2(pptr[12], (plen + 7) / 8);
1213 memcpy(&addr, &pptr[12], (plen + 7) / 8);
1214 if (plen % 8) {
1215 addr[(plen + 7) / 8 - 1] &=
1216 ((0xff00 >> (plen % 8)) & 0xff);
1221 isonsap_string(addr,(plen + 7) / 8),
1222 plen,
1226 return 12 + (plen + 7) / 8;