* FOR A PARTICULAR PURPOSE.
*
* Reference documentation:
- * http://www.cisco.com/c/en/us/support/docs/lan-switching/vtp/10558-21.html
- * http://docstore.mik.ua/univercd/cc/td/doc/product/lan/trsrb/frames.htm
+ * https://www.cisco.com/c/en/us/support/docs/lan-switching/vtp/10558-21.html
+ * https://docstore.mik.ua/univercd/cc/td/doc/product/lan/trsrb/frames.htm
*
*/
ND_TCHECK_8(tptr);
ND_PRINT("\n\t Config Rev %x, Updater %s",
GET_BE_U_4(tptr),
- ipaddr_string(ndo, tptr+4));
+ GET_IPADDR_STRING(tptr+4));
tptr += 8;
ND_TCHECK_LEN(tptr, VTP_UPDATE_TIMESTAMP_LEN);
ND_PRINT(", Timestamp 0x%08x 0x%08x 0x%08x",
*
*/
- ND_TCHECK_4(tptr);
ND_PRINT(", Config Rev %x", GET_BE_U_4(tptr));
/*
*/
tptr += 4;
- while (tptr < (pptr+length)) {
+ while ((unsigned)(tptr - pptr) < length) {
- ND_TCHECK_1(tptr);
len = GET_U_1(tptr);
if (len == 0)
break;
/*
* Cisco specs say 2 bytes for type + 2 bytes for length;
- * see http://docstore.mik.ua/univercd/cc/td/doc/product/lan/trsrb/frames.htm
+ * see https://docstore.mik.ua/univercd/cc/td/doc/product/lan/trsrb/frames.htm
* However, actual packets on the wire appear to use 1
* byte for the type and 1 byte for the length, so that's
* what we do.
*
*/
- ND_TCHECK_4(tptr);
ND_PRINT("\n\tStart value: %u", GET_BE_U_4(tptr));
break;