Re: [PATCH net] drivers/net/wan/hdlc: Set skb->protocol before transmitting

2020-09-17 Thread David Miller
From: Xie He Date: Wed, 16 Sep 2020 14:25:07 -0700 > This patch sets skb->protocol before transmitting frames on the HDLC > device, so that a user listening on the HDLC device with an AF_PACKET > socket will see outgoing frames' sll_protocol field correctly set and > consistent with that of

[PATCH net] drivers/net/wan/hdlc: Set skb->protocol before transmitting

2020-09-16 Thread Xie He
This patch sets skb->protocol before transmitting frames on the HDLC device, so that a user listening on the HDLC device with an AF_PACKET socket will see outgoing frames' sll_protocol field correctly set and consistent with that of incoming frames. 1. Control frames in hdlc_cisco and hdlc_ppp