Handling packets with 802.1Q VLAN tag

20 views
Skip to first unread message

Nida Afreen

unread,
Mar 6, 2025, 3:01:43 AMMar 6
to PcapPlusPlus support
I am using sendPacket with checkMtu as false to send packets of size 1518 bytes having the following fields;
Ethernet header - 14 bytes
802.1Q VLAN tag - 4 bytes
IP header - 20  bytes
UDP header - 8 bytes
Data - 1472 bytes

The sendPacket failes with error "send error:
packetSendPacket failed".
But the same works when packet size is 1514 bytes (with 4 bytes VLAN tag).

Can you please explain how to handle packets having VLAN tag and are greater than 1514 bytes MTU. Is fragmentation required? If yes, then what should be the IPv4 length; 1500 or 1496?

Regards,
Nida

PcapPlusPlus Support

unread,
Mar 29, 2025, 10:27:17 PMMar 29
to Nida Afreen, PcapPlusPlus support
Hi Nida,

I'm sorry for the late reply. Maybe the NIC doesn't allow sending packets with more than 1514 bytes?

Thanks,
PcapPlusPlus maintainer


--
You received this message because you are subscribed to the Google Groups "PcapPlusPlus support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcapplusplus-sup...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pcapplusplus-support/b3bacf0e-cee5-49af-85d9-aa8797529e88n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages