]> The Tcpdump Group git mirrors - tcpdump/commit
ldp: use a constant 2, not LDP_TLV_ADDRESS_LIST_AFNUM_LEN.
authorGuy Harris <[email protected]>
Wed, 27 May 2020 05:15:50 +0000 (22:15 -0700)
committerGuy Harris <[email protected]>
Wed, 27 May 2020 05:15:50 +0000 (22:15 -0700)
commit351c0ad599a51374fedda513704e739e4257102b
tree7c98ebed222a89ec48053569d9b185c0fa2f060c
parenta225ce337dfbbd8f52043827b792d869e8a306e7
ldp: use a constant 2, not LDP_TLV_ADDRESS_LIST_AFNUM_LEN.

We already use GET_BE_U_2(), and use 2 in the TLV_TCHECK() call; this
makes it a bit more obvious (if you read TLV_TCHECK()) that the test
makes sure we can subtract from tlv_tlen without underflowing.
print-ldp.c