Dear All, 

I have loaded OpenNHRP source code in to eclipse but it seems that there are many sips between the cup and lips :)

  1. First of all, libev is showing strange problems. For example, in ev_kqueue.c, eclipse cannot resolve the #include <sys/event.h>. After this, I am getting errors - semicolon missing and syntax error in multiple places in the inline function definition:
  2. void inline_speed
    kqueue_change (EV_P_ int fd, int filter, int flags, int fflags)
      array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, EMPTY2);

      EV_SET (&kqueue_changes [kqueue_changecnt - 1], fd, filter, flags, fflags, 0, 0);
  3. Similarly, in the ev_port.c, eclipse cannot resolve the #include <port.h>
  4. In OpenNHRP.c a constant is used OPENNHRP_ADMIN_SOCKET, which is taken from the Makefile, Eclipse is unable to resolve this symbol. May be I should put it in Envoirnment Tab in eclipse and this might work. 
  5. Similarly, #include <ares.h> cannot be resolved. 


On Mon, Jul 21, 2014 at 4:08 PM, Timo Teras <> wrote:
On Mon, 21 Jul 2014 12:31:36 +0500
masoom alam <> wrote:

> We have successfully loaded OpenNHRP source code using the CDT plugin
> in Eclipse. A confusion is that can we run it without making 'make'
> and 'make install'. I mean it will be nice, if we can lively debug
> the code without installing it. Is this possible, as the code read
> several values from the kernel too.....

Yes, it can be run from where ever. The only requirements are to to
have net admin capability (or being root), and having proper
configuration in /etc/opennhrp/opennhrp.conf or using -c parameter to
specify valid config file.

- Timo