<div dir="ltr">Hi,<div><br></div><div>in case it would help here are the errors I get on 2.6.13:</div><div><ul style><li style>before commenting out #include <linux/netfilter/nfnetlink.h> in src/ipset.c<br><br>ipset.c:29:39: fatal error: linux/netfilter/nfnetlink.h: No such file or directory<br>
<br></li><li style>and after commenting it out<br><br>ipset.c: In function 'add_attr':<br>ipset.c:57:26: error: invalid application of 'sizeof' to incomplete type 'struct nlattr' <br>ipset.c:58:7: error: dereferencing pointer to incomplete type<br>
ipset.c:59:7: error: dereferencing pointer to incomplete type<br>ipset.c:60:25: error: invalid application of 'sizeof' to incomplete type 'struct nlattr' <br>ipset.c: In function 'new_add_to_ipset':<br>
ipset.c:121:21: error: invalid application of 'sizeof' to incomplete type 'struct nfgenmsg' <br>ipset.c:122:6: error: dereferencing pointer to incomplete type<br>ipset.c:123:6: error: dereferencing pointer to incomplete type<br>
ipset.c:123:18: error: 'NFNETLINK_V0' undeclared (first use in this function)<br>ipset.c:123:18: note: each undeclared identifier is reported only once for each function it appears in<br>ipset.c:124:6: error: dereferencing pointer to incomplete type<br>
ipset.c:130:21: error: invalid application of 'sizeof' to incomplete type 'struct nlattr' <br>ipset.c:131:12: error: dereferencing pointer to incomplete type<br>ipset.c:131:25: error: 'NLA_F_NESTED' undeclared (first use in this function)<br>
ipset.c:133:21: error: invalid application of 'sizeof' to incomplete type 'struct nlattr' <br>ipset.c:134:12: error: dereferencing pointer to incomplete type<br>ipset.c:136:73: error: 'NLA_F_NET_BYTEORDER' undeclared (first use in this function)<br>
ipset.c:138:12: error: dereferencing pointer to incomplete type<br>ipset.c:139:12: error: dereferencing pointer to incomplete type</li></ul></div><div><div class="gmail_extra"><br>Best,</div><div class="gmail_extra">Gene</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">p.s. Don't ask why I'm using 2.6.13 - the answer is I have to ;-)<br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 10:28 PM, Vladislav Grishenko <span dir="ltr"><<a href="mailto:themiron@mail.ru" target="_blank">themiron@mail.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dears,<br>
We have 2.6.22 with ipset. Plz, keep in mind there're no only vanilla<br>
kernels around.<br>
<br>
Best Regards, Vladislav Grishenko<br>
<div class=""><div class="h5"><br>
> -----Original Message-----<br>
> From: <a href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk">dnsmasq-discuss-bounces@lists.thekelleys.org.uk</a> [mailto:<a href="mailto:dnsmasq-">dnsmasq-</a><br>
> <a href="mailto:discuss-bounces@lists.thekelleys.org.uk">discuss-bounces@lists.thekelleys.org.uk</a>] On Behalf Of Simon Kelley<br>
> Sent: Monday, April 22, 2013 7:07 PM<br>
> To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> Subject: Re: [Dnsmasq-discuss] [Patch] dnsmasq with IPSET feature enabled<br>
> doesn't compile on linux kernel < 2.6.24<br>
><br>
> On 20/04/13 15:31, Eugene Rudoy wrote:<br>
> > Dear all,<br>
> ><br>
> > dnsmasq with IPSET feature enabled (added in dnsmasq-2.66 and enabled<br>
> > by<br>
> > default) doesn't compile on linux kernel versions<  2.6.24. The<br>
> > attached patch fixes the problem by disabling the feature for these<br>
kernel<br>
> versions.<br>
> ><br>
> > As far as I understand the missing symbols are just convenience ones,<br>
> > from technical point of view it is possible to add IPSET support also<br>
> > for kernel versions prior to 2.6.24. I however don't need this<br>
> > feature, thus simple disable-patch.<br>
> ><br>
><br>
> Hmmm, As I recall, considerable effort was made to get this code to work<br>
> with old kernels, so I'm wary of just disabling it in this circumstance.<br>
>   CC'ing the orginal author for his comments.<br>
><br>
><br>
> Cheers,<br>
><br>
> Simon.<br>
><br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</div></div></blockquote></div><br></div></div></div>