Recommand · January 13, 2022 0

Adding suport for new L2 protocol

I have to add support for new L2 protocol.

  1. For parsing the header at the ingress I can register handler with dev_add_pack and parse/skip the header.

  2. At the egress, I can create net_device_ops structure and add the new L2 header in ndo_start_xmit callback or is there any otherway ?