diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-10 12:30:58 -0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:24:37 -0700 |
commit | 48d49d0ccdaa9caff4636ef9c3410973d28131b5 (patch) | |
tree | 3bdf0729bf05e817d1bb9c3299906682414f8a76 /net | |
parent | f64955eb117ad62480b858fd69a11e6f9e74f60b (diff) | |
download | op-kernel-dev-48d49d0ccdaa9caff4636ef9c3410973d28131b5.zip op-kernel-dev-48d49d0ccdaa9caff4636ef9c3410973d28131b5.tar.gz |
[SK_BUFF]: Introduce skb_set_mac_header()
For the cases where we want to set skb->mac.raw to an offset from skb->data.
Simple cases first, the memmove ones and specially pktgen will be left for later.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/br2684.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 900d42c..a1686df 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c @@ -458,7 +458,7 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb) /* FIXME: tcpdump shows that pointer to mac header is 2 bytes earlier, than should be. What else should I set? */ skb_pull(skb, plen); - skb->mac.raw = skb->data - ETH_HLEN; + skb_set_mac_header(skb, -ETH_HLEN); skb->pkt_type = PACKET_HOST; #ifdef CONFIG_BR2684_FAST_TRANS skb->protocol = ((u16 *) skb->data)[-1]; |