Skip to contentSkip to conversation

net/packet: Fix a comment about network_header

PATCH Applied Xie He 2 participants 2 messages Sep 18, 2020 – Sep 19, 2020

Subsystems (3)
lore
Share & tools
lore

Xie He

author
#0 lore raw

PATCH 1/1 net/packet: Fix a comment about network_header

skb->nh.raw has been renamed as skb->network_header in 2007, in commit b0e380b1d8a8 ("[SK_BUFF]: unions of just one member don't get
anything done, kill them")

So here we change it to the new name.

Cc Willem de Bruijn <[email protected]>
---
 net/packet/af_packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/packet/af_packet.c +1 -1
index f59fa26d4826..cefbd50c1090 100644
@@ -142,7 +142,7 @@ dev->header_ops == NULL (ll header is invisible to us)
    mac_header -> data
    data       -> data
 
-   We should set nh.raw on output to correct posistion,
+   We should set network_header on output to the correct position,
    packet classifier depends on it.
  */
 
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw

From: Xie He <[email protected]>
Date: Fri, 18 Sep 2020 06:56:16 -0700

Quoted 8 lines

skb->nh.raw has been renamed as skb->network_header in 2007, in commit b0e380b1d8a8 ("[SK_BUFF]: unions of just one member don't get
anything done, kill them")

So here we change it to the new name.

Cc Willem de Bruijn <[email protected]>

Applied.