Search Linux Wireless

Re: [PATCH] mac80211: separate monitor/subif_start_xmit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-06-28 at 22:35 -0700, Michael Wu wrote:
> On Thursday 21 June 2007 06:39, Johannes Berg wrote:
> > +	skb_set_network_header(skb, len + sizeof(struct ieee80211_hdr));
> > +	skb_set_transport_header(skb, len + sizeof(struct ieee80211_hdr));
> > +
> Hm, just noticed a potential problem with this. sizeof(struct ieee80211_hdr) 
> can't be used since ieee80211 headers are variable sized and the smallest 
> frames can end up being smaller than the 4 addr header.

Uh, let me think, yeah sounds about right, we'll have to get the actual
header length. There's a function for that though.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux