For this test genl-ctrl-list to work properly, shouldn't there be a kernel module who is listening for this? In other words, should I run this command after I have loaded  and insmod the kernel part of my code? This library  is in user space, after all right, whereas the netlink related code is in the kernel.<br>
<br><div class="gmail_quote">On Fri, Apr 20, 2012 at 1:39 PM, Thomas Graf <span dir="ltr"><<a href="mailto:tgraf@infradead.org">tgraf@infradead.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Apr 20, 2012 at 10:51:02AM -0700, Ali Ranjbar wrote:<br>
> Thomas;<br>
><br>
</div><div class="im">> Interesting, I had to cross compile the libnl using a compiler for mips<br>
> provided by Broadcom, I don't know if that could be an issue.<br>
<br>
</div>This could be related. What I am trying to say here is that there is<br>
code in src/genl-ctrl-list.c which can easily verify whether the<br>
kernel part is functioning properly so you can easily track down the<br>
origin of your problem quickly.<br>
<div class="im"><br>
> I had<br>
> integrate this library within an existing code base which has 1000 of<br>
> Makefile and all. One more thing. As you see below, I only linked nl and<br>
> genl not the route or nf portions of the library? Could this be a problem?<br>
> I thought, I can do this, since you have divided the library to 4 different<br>
> portion (so final execution won't get too big), so I only link portions of<br>
> the library I need. The way I determined which library I need was to start<br>
> with all and build, then start commenting out specific libraries and see if<br>
> linker complains. This is how i determined that I only need lnl-3 and<br>
> lnl-genl-3.<br>
<br>
</div>This is perfectly acceptable and you are encouraged to do so.<br>
</blockquote></div><br><br clear="all"><br>-- <br><br>Best Regards;<br>Ali Ranjbar<br>Founder<br>Embedded Software DTI Corp.<br>Mobile: 847-337-8895<br>Email: <a href="mailto:ali.ranjbar@ieee.org" target="_blank">ali.ranjbar@ieee.org</a><br>
<br><br>