mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 377 forks source link

it seems like libtins can not find the Tins::SNAP #321

Open AmitArie opened 5 years ago

AmitArie commented 5 years ago

PLATFORM Operating System: Centos 7 C++ 17, gcc version 8.1.0 (GCC) Libtins version : 4.0

-- Hey,

  1. I am trying to parse a CDP ( Cisco Discovery Protocol ) and it seems like Tins can not find SNAP, but instead, it finds only LLC.

  2. In addition, if the Packet is Dot1Q tagged, Libtins cannot find LLC header.

CDP PCAP, C++ Code attached. cdp.pcapng.tar.gz

cdp.cpp.tar.gz