Soon as you parse the ethernet header, the ethertype tells you ipv4 or pv6, etc.
Hemant From: [email protected] <[email protected]> Sent: Friday, June 11, 2021 4:37 AM To: [email protected] Subject: Private: Re: [vpp-dev] vpp plugin to parse a packet to check ipv4 or ipv6 #vpp #vpp-dev #classify #vnet On Thu, Jun 10, 2021 at 10:37 PM, <[email protected] <mailto:[email protected]> > wrote: Hi Hemant, Much appreciated. Thanks for your reply. I am able to increment the pointer and typecast to see the ipv4 header. I have a question here. If I typecast the packet with ipv4 . Am i not presuming the next field is ipv4 header ? what in the case if it is ipv6 header ? I am literally doing a packet parsing here. Is there any vpp example to outline how to do it in right way ? thanks for your understanding
smime.p7s
Description: S/MIME cryptographic signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19557): https://lists.fd.io/g/vpp-dev/message/19557 Mute This Topic: https://lists.fd.io/mt/83465381/21656 Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev Mute #classify:https://lists.fd.io/g/vpp-dev/mutehashtag/classify Mute #vnet:https://lists.fd.io/g/vpp-dev/mutehashtag/vnet Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
