Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gopacket fails to decode example EAPOLKey layers #1197

Open
aftermathdigital opened this issue Nov 8, 2024 · 0 comments
Open

gopacket fails to decode example EAPOLKey layers #1197

aftermathdigital opened this issue Nov 8, 2024 · 0 comments

Comments

@aftermathdigital
Copy link

Gopacket fails to decode the wireshark sample pcap at:

https://wiki.wireshark.org/uploads/__moin_import__/attachments/SampleCaptures/Network_Join_Nokia_Mobile.pcap

Printing one of the packets results in the following:

PACKET: 131 bytes, truncated, wire length 131 cap length 131 @ 2000-01-01 00:04:57.630171 +0000 GMT
- Layer 1 (24 bytes) = Dot11    {Contents=[..24..] Payload=[..103..] Type=Data Proto=0 Flags=FROM-DS DurationID=44 Address1=00:16:bc:3d:aa:57 Address2=00:01:e3:41:bd:6e Address3=00:01:e3:41:bd:6e Address4= SequenceNumber=440 FragmentNumber=0 Checksum=0 QOS=nil HTControl=nil DataLayer={ Contents=[] Payload=[..103..]}}
- Layer 2 (00 bytes) = Dot11Data        {Contents=[] Payload=[..103..]}
- Layer 3 (03 bytes) = LLC      {Contents=[170, 170, 3] Payload=[..100..] DSAP=170 IG=false SSAP=170 CR=false Control=3}
- Layer 4 (05 bytes) = SNAP     {Contents=[..5..] Payload=[..95..] OrganizationalCode=[0, 0, 0] Type=EAPOL}
- Layer 5 (04 bytes) = EAPOL    {Contents=[1, 3, 0, 95] Payload=[..91..] Version=1 Type=EAPOLKey Length=95}
- Layer 6 (91 bytes) = DecodeFailure    Packet decoding error: EAPOLKey length 91 too short, 95 required

Wireshark appears to parse the pcap correctly.

Possibly related to #544 but I've not had much time to root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant