summaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_out.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-11 22:39:41 -0300
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:25:01 -0700
commitc14d2450cb7fe1786e2ec325172baf66922bf597 (patch)
tree1186bfb1ed197e81a1ff816a513ad69503d5d786 /net/ax25/ax25_out.c
parent878c814500b123dd61a5e211879a32e5fd932713 (diff)
downloadtalos-obmc-linux-c14d2450cb7fe1786e2ec325172baf66922bf597.tar.gz
talos-obmc-linux-c14d2450cb7fe1786e2ec325172baf66922bf597.zip
[SK_BUFF]: Introduce skb_set_network_header
For the cases where the network header is being set to a offset from skb->data. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/ax25_out.c')
-rw-r--r--net/ax25/ax25_out.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ax25/ax25_out.c b/net/ax25/ax25_out.c
index 02dea851a11a..e66953ce53e7 100644
--- a/net/ax25/ax25_out.c
+++ b/net/ax25/ax25_out.c
@@ -148,7 +148,8 @@ void ax25_output(ax25_cb *ax25, int paclen, struct sk_buff *skb)
if (ka9qfrag == 1) {
skb_reserve(skbn, frontlen + 2);
- skbn->nh.raw = skbn->data + skb_network_offset(skb);
+ skb_set_network_header(skbn,
+ skb_network_offset(skb));
memcpy(skb_put(skbn, len), skb->data, len);
p = skb_push(skbn, 2);
@@ -161,7 +162,8 @@ void ax25_output(ax25_cb *ax25, int paclen, struct sk_buff *skb)
}
} else {
skb_reserve(skbn, frontlen + 1);
- skbn->nh.raw = skbn->data + skb_network_offset(skb);
+ skb_set_network_header(skbn,
+ skb_network_offset(skb));
memcpy(skb_put(skbn, len), skb->data, len);
p = skb_push(skbn, 1);
*p = AX25_P_TEXT;
OpenPOWER on IntegriCloud