mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
b7b72b7c63
If we have an Ethernet packet where the last 2 octets of the header are a length rather than an Ethernet type, and it's less than the remaining length of the packet, shorten the length and captured length, update the snapshot end. Turn the buffer stack into a "packet information" stack, so that, if we *do* update the snapshot end, we push the old end onto the stack, and pop it off as soon as we're done dissecting the Ethernet packet, in case there's more data in the packet after the Ethernet packet. Use the stack when we use the IPv4 and IPv6 length fields as well.
91 lines
7.9 KiB
Plaintext
91 lines
7.9 KiB
Plaintext
1 11:50:35.352170 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
2 11:50:37.214151 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
3 11:50:39.227534 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
4 11:50:41.240343 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
5 11:50:43.253615 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
6 11:50:45.266889 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
7 11:50:47.280508 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
8 11:50:49.293428 STP 802.1w, Rapid STP, Flags [Proposal], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
9 11:50:51.306707 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
10 11:50:53.320006 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
11 11:50:55.333257 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
12 11:50:57.346887 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
13 11:50:59.359867 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
14 11:51:01.373086 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
15 11:51:03.386550 STP 802.1w, Rapid STP, Flags [Proposal, Learn], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
16 11:51:05.365396 STP 802.1w, Rapid STP, Flags [Topology change, Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
17 11:51:05.399631 STP 802.1w, Rapid STP, Flags [Topology change, Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
18 11:51:07.413269 STP 802.1w, Rapid STP, Flags [Topology change, Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
19 11:51:09.426184 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
20 11:51:11.439472 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
21 11:51:13.452762 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
22 11:51:15.466142 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
23 11:51:17.479631 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
24 11:51:19.492583 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
25 11:51:21.505865 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
26 11:51:23.519148 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
27 11:51:25.532418 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
28 11:51:27.546083 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
29 11:51:29.559090 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|
|
30 11:51:31.572240 STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8001.00:19:06:ea:b8:80.800c, length 36
|
|
message-age 0.00s, max-age 20.00s, hello-time 2.00s, forwarding-delay 15.00s
|
|
root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
|