OSDN Git Service

net/packet: Fix a comment about network_header
authorXie He <xie.he.0141@gmail.com>
Fri, 18 Sep 2020 13:56:16 +0000 (06:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 23:40:48 +0000 (16:40 -0700)
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 <willemdebruijn.kernel@gmail.com>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c

index f59fa26..cefbd50 100644 (file)
@@ -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.
  */