mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2025-01-08 00:38:23 +08:00
0fa0692de3
Do more checks for running past the TLV or subTLV length. For errors where we go past the TLV or subTLV length, report that as a separate error from just "ran past the end of the packet". When looping over TLVs or subTLVs, loop as long as there's data available and, if there isn't *enough* data available within the TLV or subTLV, report that as a "ran past the end of the TLV/subTLV" error. In isis_print_ext_is_reach(), correctly calculate the number of bytes we process - that amount is smaller for the Alias TLV than for other TLVs, as the Alias TLV doesn't have a Metric field.
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
1 [Error converting time] UI 22! Pad! IS-IS, length 262138
|
|
L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 224 (224)
|
|
source-id: fe02.0000.d0f9, holding time: 3928s, Flags: [unknown circuit type 0x00]
|
|
lan-id: 1000.4101.0000.88, Priority: 127, PDU length: 44959
|
|
unknown TLV #162, length: 1
|
|
0x0000: e2
|
|
IS Reachability TLV #2, length: 12
|
|
bogus virtual flag 0x07
|
|
IS Neighbor: 0100.1001.9de0.00, Default Metric: 34, Internal
|
|
Delay Metric: 5, Internal
|
|
Error Metric: 27, Internal
|
|
Authentication TLV #10, length: 1
|
|
unknown Authentication type 0x05:
|
|
unknown TLV #146, length: 32
|
|
0x0000: 2020 2020 2020 2020 2020 2020 2020 2020
|
|
0x0010: 2020 2020 2020 2020 2020 2220 2020 2020
|
|
unknown TLV #32, length: 32
|
|
0x0000: 2000 0001 0020 2020 2020 2020 207f 0020
|
|
0x0010: 2020 2020 2020 2020 2020 2e20 2020 20c9
|
|
unknown TLV #32, length: 32
|
|
0x0000: 2020 2010 0020 2020 2020 0b20 2020 2020
|
|
0x0010: 2020 2020 2020 8181 7281 8181 8181 8181
|
|
Multi-Topology-Aware Port Capability TLV #143, length: 129
|
|
RES: 8, MTID(s): 385
|
|
unknown subTLV #129, length: 68
|
|
unknown subTLV #32, length: 32
|
|
unknown subTLV #129, length: 129 (> containing TLV length) [|isis]
|