|
|
Re: [patch net-next 3/4] team: add binary option type |
Wed, Apr 04, 2012 at 11:45:47PM CEST, davem@xxxxxxxxxxxxx wrote: >From: Jiri Pirko <jpirko@xxxxxxxxxx> >Date: Wed, 4 Apr 2012 14:29:31 +0200 > >> Wed, Apr 04, 2012 at 12:38:16AM CEST, davem@xxxxxxxxxxxxx wrote: >>>From: Jiri Pirko <jpirko@xxxxxxxxxx> >>>Date: Sat, 31 Mar 2012 23:01:21 +0200 >>> >>>> For transfering generic binary data (e.g. BPF code), introduce new >>>> binary option type. >>>> >>>> Signed-off-by: Jiri Pirko <jpirko@xxxxxxxxxx> >>> >>>Several issues: >>> >>>> + struct team_option_binary tbinary; >>> >>>You put this into a netlink attribute, it has a non-fixed >>>type size because it uses pointer. A compat task will do >>>the wrong thing and you won't interpret it's attribute >>>correctly. >> >> I'm not nla_putting struct team_option_binary tbinary. I'm putting only >> the data on what the pointer stored into that points (tbinary.data): >> >> nla_put(skb, TEAM_ATTR_OPTION_DATA, tbinary.data_len, tbinary.data)); > >Aha, I misread, thanks for explaining. Going to repost 3/4 and 4/4. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion] [Ethernet Bridging] [Linux Wireless Networking] [Linux Bluetooth Networking] [Linux Networking Users] [VLAN] [Git] [IETF Annouce] [Linux Assembly] [Security] [Bugtraq] [Photo] [Singles Social Networking] [Yosemite Information] [MIPS Linux] [ARM Linux Kernel] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Free Dating]
![]() |
![]() |