mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[SK_BUFF]: Introduce skb_transport_header(skb)
For the places where we need a pointer to the transport header, it is still legal to touch skb->h.raw directly if just adding to, subtracting from or setting it to another layer header. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a27ef749e7
commit
9c70220b73
42 changed files with 129 additions and 102 deletions
|
|
@ -1585,9 +1585,10 @@ static int ax25_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|||
|
||||
skb_set_transport_header(skb, lv);
|
||||
|
||||
SOCK_DEBUG(sk, "base=%p pos=%p\n", skb->data, skb->h.raw);
|
||||
SOCK_DEBUG(sk, "base=%p pos=%p\n",
|
||||
skb->data, skb_transport_header(skb));
|
||||
|
||||
*skb->h.raw = AX25_UI;
|
||||
*skb_transport_header(skb) = AX25_UI;
|
||||
|
||||
/* Datagram frames go straight out of the door as UI */
|
||||
ax25_queue_xmit(skb, ax25->ax25_dev->dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue