aboutsummaryrefslogtreecommitdiff
path: root/tools/net/ynl/lib/ynl.py
diff options
context:
space:
mode:
authorZhengchao Shao <[email protected]>2023-12-02 21:04:38 +0800
committerPaolo Abeni <[email protected]>2023-12-05 13:42:08 +0100
commitfb70136ded2e1ea3cde27d0393cfadab4240a141 (patch)
treebec643246b12b1b0aba2f17463507f9ad464dccd /tools/net/ynl/lib/ynl.py
parentcb297cc5e194a2ea3cb8aaf722005286ee42b011 (diff)
ipvlan: implement .parse_protocol hook function in ipvlan_header_ops
The .parse_protocol hook function in the ipvlan_header_ops structure is not implemented. As a result, when the AF_PACKET family is used to send packets, skb->protocol will be set to 0. Ipvlan is a device of type ARPHRD_ETHER (ether_setup). Therefore, use eth_header_parse_protocol function to obtain the protocol. Signed-off-by: Zhengchao Shao <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions