]> The Tcpdump Group git mirrors - tcpdump/commit
LDP: Fix a length check
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 21 Oct 2019 15:36:40 +0000 (17:36 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 21 Oct 2019 17:11:48 +0000 (19:11 +0200)
commit78a4ee82226a3fe19981841dfe24d5e9cb437524
treeef6095c023ebbd2274228257c2b0b10497c2edf1
parent1b428d2dca964cc7a1696559b293749e738c3939
LDP: Fix a length check

In ldp_tlv_print(), the FT Session TLV length must be 12, not 8 (RFC3479)

Moreover:
Update the TLV_TCHECK() macro to remove the useless ND_TCHECK_LEN() call
with the GET_ macros. Thus remain the length check giving a more accurate
output.

Rename a label.

Update the output of a test accordingly.

Add a comment.

Partial update from aa5c6b710dfd8020d2c908d6b3bd41f1da719b3b
in 4.9 branch.
print-ldp.c
tests/ldp-ldp_tlv_print-oobr.out