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

non-pointer type ‘const Tins::IP’ #411

Closed Tomasz158 closed 4 years ago

Tomasz158 commented 4 years ago

While following the Sniffing tutorial, I encounter an error: In function ‘bool doo(Tins::PDU&)’: base operand of ‘->’ has non-pointer type ‘const Tins::IP’

Tomasz158 commented 4 years ago

it worked when I wrote ip.dst_addr() instead of ip->dst_addr();