Search Linux Wireless

Re: NL80211_CMD_GET_WIPHY reply doesn't fit into nl message buffer

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

 



On Mon, 2008-09-29 at 14:01 +0200, Jiri Slaby wrote:

> Anyway it is wrong. NLMSG_GOODSIZE * x for x > 1 doesn't give skb aligned to a
> page boundary. bufsize should start with PAGE_SIZE or 8192 and be multiplied
> then and the parameter used for nlmsg_new SKB_WITH_OVERHEAD(bufsize).

Hm ok.

> But it's ugly as hell, I agree -- and quite a temporary solution until somebody
> decides to add channels, another channel info or whatever.

I'd much prefer just splitting it up over multiple messages, shouldn't
be too hard but will possibly require changes in the userspace parsers.

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