tcpdump/tests/ldp-ldp_tlv_print-oobr.out
Francois-Xavier Le Bail 78a4ee8222 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 aa5c6b710d
in 4.9 branch.
2019-10-21 19:11:48 +02:00

7 lines
576 B
Plaintext

1 [Error converting time] IP (tos 0x0, id 4608, offset 0, flags [+, DF, rsvd], proto UDP (17), length 25600, options (EOL), bad cksum 8e (->4023)!)
24.250.219.0.4098 > 0.0.0.0.646:
LDP, Label-Space-ID: 0.0.127.255:796, pdu-length: 514
Address Withdraw Message (0x0301), length: 22, Message ID: 0x00001600, Flags: [ignore if unknown]
Unknown TLV (0x0404), length: 0, Flags: [ignore and don't forward if unknown]
Fault-Tolerant Session Parameters TLV (0x0503), length: 8, Flags: [ignore and don't forward if unknown] [tlv length 8 < 12] (invalid) [|ldp]