Skip to content

Commit

Permalink
net/packet: Fix a comment about network_header
Browse files Browse the repository at this point in the history
skb->nh.raw has been renamed as skb->network_header in 2007, in
commit b0e380b ("[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]>
Signed-off-by: Xie He <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Xie He authored and davem330 committed Sep 19, 2020
1 parent a78766d commit 0959972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand Down

0 comments on commit 0959972

Please sign in to comment.