lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <D5C1322C3E673F459512FB59E0DDC329031B5835@orsmsx414.amr.corp.intel.com>
Date:	Mon, 25 Jun 2007 16:23:02 -0700
From:	"Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@...el.com>
To:	"David Miller" <davem@...emloft.net>, <kaber@...sh.net>
Cc:	<netdev@...r.kernel.org>, <shemminger@...ux-foundation.org>
Subject: RE: [RTNETLINK]: Add nested compat attribute

> From: Patrick McHardy <kaber@...sh.net>
> Date: Mon, 25 Jun 2007 23:08:09 +0200
> 
> > David Miller wrote:
> > >
> > >> I've been using this patch and the IPROUTE2 patches Patrick has 
> > >> proposed with no issues.  Can someone else look at these patches 
> > >> when they have time?  I'd be interested in seeing them 
> make it into 2.6.23.
> > >>     
> > >
> > > I've just put Patrick's patch into the net-2.6.23 tree.
> > >   
> > 
> > You seem to have added the netlink patch for the generic netlink 
> > attributes. Peter needs the rtnetlink attribute patch since qdiscs 
> > still use the old stuff.
> > 
> > Attached again to this mail.
> 
> Thanks for the clarification, I thought they were both the 
> same patch, resent for the sake of tgraf seeing it.
> 
> I've applied this one too, thanks Patrick.

It looks like the one Patrick resent was the older version that requires
a typecast.  This is the function prototype currently in the kernel:

+extern int rtattr_parse_nested_compat(struct rtattr *tb[], int maxattr,
+				      struct rtattr *rta, void **data,
int len);

This is the newer version:

+extern int __rtattr_parse_nested_compat(struct rtattr *tb[], int
maxattr,
+				        struct rtattr *rta, int len);
+#define rtattr_parse_nested_compat(tb, max, rta, data, len) \
+({	data = RTA_PAYLOAD(rta) >= len ? RTA_DATA(rta) : NULL; \
+	__rtattr_parse_nested_compat(tb, max, rta, len); })
+

I can send the update to what's in 2.6.23 as the first patch of my
series, or I can write my function calls using the older callback (which
isn't a problem).  Which would you prefer?

Thanks,
-PJ Waskiewicz
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ