Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:plen

488 	u_int plen, plenbytes;
492 plen = pptr[0];
493 if (32 < plen)
498 plenbytes = (plen + 7) / 8;
502 if (plen % 8) {
504 ((0xff00 >> (plen % 8)) & 0xff);
506 snprintf(buf, buflen, "%s/%d", getname(ndo, (u_char *)&addr), plen);
521 u_int plen, plenbytes;
526 plen = pptr[0]; /* get prefix length */
536 if (24 > plen)
539 plen-=24; /* adjust prefixlen - labellength */
541 if (32 < plen)
546 plenbytes = (plen + 7) / 8;
550 if (plen % 8) {
552 ((0xff00 >> (plen % 8)) & 0xff);
557 plen,
715 u_int plen;
718 plen = pptr[0]; /* get prefix length */
720 if (0 == plen) {
725 if (32 > plen)
728 plen-=32; /* adjust prefix length */
730 if (64 < plen)
734 ND_TCHECK2(pptr[1], (plen + 7) / 8);
735 memcpy(&route_target, &pptr[1], (plen + 7) / 8);
736 if (plen % 8) {
737 ((u_char *)&route_target)[(plen + 7) / 8 - 1] &=
738 ((0xff00 >> (plen % 8)) & 0xff);
744 return 5 + (plen + 7) / 8;
755 u_int plen;
758 plen = pptr[0]; /* get prefix length */
760 if ((24+64) > plen)
763 plen-=(24+64); /* adjust prefixlen - labellength - RD len*/
765 if (32 < plen)
769 ND_TCHECK2(pptr[12], (plen + 7) / 8);
770 memcpy(&addr, &pptr[12], (plen + 7) / 8);
771 if (plen % 8) {
772 ((u_char *)&addr)[(plen + 7) / 8 - 1] &=
773 ((0xff00 >> (plen % 8)) & 0xff);
779 plen,
783 return 12 + (plen + 7) / 8;
968 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len;
971 plen=EXTRACT_16BITS(pptr);
972 tlen=plen;
978 if (plen==12) {
990 return plen;
991 } else if (plen>17) {
1045 return plen+2;
1063 u_int plen, plenbytes;
1067 plen = pd[0];
1068 if (128 < plen)
1073 plenbytes = (plen + 7) / 8;
1077 if (plen % 8) {
1079 ((0xff00 >> (plen % 8)) & 0xff);
1081 snprintf(buf, buflen, "%s/%d", getname6(ndo, (u_char *)&addr), plen);
1096 u_int plen, plenbytes;
1101 plen = pptr[0]; /* get prefix length */
1103 if (24 > plen)
1106 plen-=24; /* adjust prefixlen - labellength */
1108 if (128 < plen)
1113 plenbytes = (plen + 7) / 8;
1116 if (plen % 8) {
1118 ((0xff00 >> (plen % 8)) & 0xff);
1123 plen,
1141 u_int plen;
1144 plen = pptr[0]; /* get prefix length */
1146 if ((24+64) > plen)
1149 plen-=(24+64); /* adjust prefixlen - labellength - RD len*/
1151 if (128 < plen)
1155 ND_TCHECK2(pptr[12], (plen + 7) / 8);
1156 memcpy(&addr, &pptr[12], (plen + 7) / 8);
1157 if (plen % 8) {
1158 addr.s6_addr[(plen + 7) / 8 - 1] &=
1159 ((0xff00 >> (plen % 8)) & 0xff);
1165 plen,
1169 return 12 + (plen + 7) / 8;
1181 u_int plen;
1184 plen = pptr[0]; /* get prefix length */
1186 if (152 < plen)
1190 ND_TCHECK2(pptr[4], (plen + 7) / 8);
1191 memcpy(&addr, &pptr[4], (plen + 7) / 8);
1192 if (plen % 8) {
1193 addr[(plen + 7) / 8 - 1] &=
1194 ((0xff00 >> (plen % 8)) & 0xff);
1197 isonsap_string(addr,(plen + 7) / 8),
1198 plen);
1200 return 1 + (plen + 7) / 8;
1211 u_int plen;
1214 plen = pptr[0]; /* get prefix length */
1216 if ((24+64) > plen)
1219 plen-=(24+64); /* adjust prefixlen - labellength - RD len*/
1221 if (152 < plen)
1225 ND_TCHECK2(pptr[12], (plen + 7) / 8);
1226 memcpy(&addr, &pptr[12], (plen + 7) / 8);
1227 if (plen % 8) {
1228 addr[(plen + 7) / 8 - 1] &=
1229 ((0xff00 >> (plen % 8)) & 0xff);
1234 isonsap_string(addr,(plen + 7) / 8),
1235 plen,
1239 return 12 + (plen + 7) / 8;