Searched refs:plenbytes (Results 1 – 2 of 2) sorted by relevance
/external/tcpdump/ |
D | print-bgp.c | 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() [all …]
|
D | print-hncp.c | 206 int plenbytes; in print_prefix() local 220 plenbytes = (plen + 7) / 8; in print_prefix() 221 if (max_length < (u_int)plenbytes + IPV4_MAPPED_HEADING_LEN) in print_prefix() 223 memcpy(&addr, &prefix[1 + IPV4_MAPPED_HEADING_LEN], plenbytes); in print_prefix() 225 ((u_char *)&addr)[plenbytes - 1] &= in print_prefix() 229 plenbytes += 1 + IPV4_MAPPED_HEADING_LEN; in print_prefix() 231 plenbytes = decode_prefix6(ndo, prefix, max_length, buf, sizeof(buf)); in print_prefix() 235 return plenbytes; in print_prefix()
|