CONNMARK problem

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

 



Hi ,

I am trying to add CONNMARK support  to my kernel , and after compilation , the CONNMARK.o module is not made.
This is what I done on my RedHat 9 system:
  1. Get  kernel sources : linux-2.4.26.tar.gz 
  2. Get:  patch-o-matic-ng-20040302.tar.bz2
  3. Apply patch only for CONNMARK ( using  ./runme extra  , and test it with   ./runme --test CONNMARK)
    • Already applied:

      Testing CONNMARK... applied

      Excellent! Source trees are ready for compilation.
  4. make menuconfig ,and using the old config ( importing RedHat Athlon config)
  5. Selecting (like modules) :
    •   <M>   Connection state match support  
        <M>   Connection mark match support (NEW)
        <M>   Connection tracking match support 
  6. finish to compile without any errors , but  the CONNMARK.o module was not build
  7. Trying to figure what went wrong , I  saw that in .config there is not set CONFIG_IP_NF_TARGET_CONNMARK , which is required by Makefile to build the object :     obj-$(CONFIG_IP_NF_TARGET_CONNMARK) += ipt_CONNMARK.o
  8. More, I checked  Config.in file (from netfilter folder) and :
    • if [ "$CONFIG_IP_NF_CONNTRACK_MARK" != "n" ]; then
            dep_tristate '  Connection mark match support' CONFIG_IP_NF_MATCH_CONNMARK $CONFIG_IP_NF_IPTABLES
          fi
    • As you see , it is testing if  $CONFIG_IP_NF_CONNTRACK_MARK ( which is not set by anybody , and get true cause is not "n" ) and is setting: CONFIG_IP_NF_MATCH_CONNMARK as a module in ".config" file .
    • Conclusion the only line in ".config" file regarding CONNTRACK is : CONFIG_IP_NF_MATCH_CONNMARK=m  , so normaly that make is not building CONNMARK.o
  9. I try to set manually in ".config" those variables, but is not working , I get some errors cause CONFIG_IP_NF_CONNTRACK_MARK is tested in ip_conntrack.h, and if  it is set manually is not exported ...duno why.<><><>
<><>Any help will be appreciated .
Thank you ,
Iulian
    <><>

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux