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

Malformed packet when parsing dhcp ack #477

Open chirayu-patel opened 2 years ago

chirayu-patel commented 2 years ago

Most of the dhcp acks in this packet capture are getting categorized as malformed.

E.g : 192.168.1.172, 192.168.1.166, 192.168.1.159

Can you please let me know the possible reason.

dhcpissue.zip

chirayu-patel commented 2 years ago

can someone help on this please !!

mfontanini commented 2 years ago

Looks like there's some padding at the end of around half of the packets, and those are not being parsed correctly. I'm not sure where this padding is coming from, but I'll try to have a look once I have some time.

chirayu-patel commented 2 years ago

Thanks for sharing the info. I am actually using libtins in production and facing this issue at 1 particular customer's place and the customer is after me :)

chirayu-patel commented 2 years ago

Hi, Will you be able to help with this please