Re: Building iptables from source with kernel source

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

 



On Monday 2012-07-30 14:11, Arif Hossain wrote:

>On Mon, 2012-07-30 at 13:58 +0200, Jan Engelhardt wrote:
>> On Monday 2012-07-30 13:01, Arif Hossain wrote:
>> 
><snip>
>> iptables is independent of any particular kernel tree. Copy (or
>> symlink) your file into <iptables>/include/linux/netfilter, that is
>> easiest.
>> 
>
>I've thought this easy way out actually. But i just hate the manual
>copying of same file. If i update something in one, i will have to
>remember to copy it before building it,because build will be ok with old
>file. That may lead to undefined behavior.
>
>Not a great fan of symlinks either.
>
><snip>
>
>> That is too unspecified to derive any cause.
>> (Also note that ksource uses the source dir, not the include dir.)
>
>Error message is trivial, "can not find file <xt_mymatch.h>.

That is because you are supposed to

  #include  <linux/netfilter/xt_mymatch.h>

provided the file is in

  $kerneldir/include/linux/netfilter/  or
  $iptablesinclude/include/linux/netfilter/

Looking at the existing extensions can help ;)

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux