[hipl-dev] Re: new libhipcore library

  • From: Miika Komu <miika.komu@xxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Fri, 04 Sep 2009 13:40:55 +0300

Hi again,

I need also some help in solving a conundrum originating from the new library. I had to add the following code piece:

/* @todo: why the heck do we need this here on linux? */
struct in6_pktinfo
{
  struct in6_addr ipi6_addr;  /* src/dst IPv6 address */
  unsigned int ipi6_ifindex;  /* send/recv interface index */
};

in here:

http://infrahip.hiit.fi/cgi-bin/archzoom.cgi/hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--userspace--2.6--patch-2471/hipd/maintenance.c.diff?diff
http://infrahip.hiit.fi/cgi-bin/archzoom.cgi/hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--userspace--2.6--patch-2471/hipd/output.c.diff?diff
http://infrahip.hiit.fi/cgi-bin/archzoom.cgi/hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--userspace--2.6--patch-2471/libhipcore/message.c.diff?diff
http://infrahip.hiit.fi/cgi-bin/archzoom.cgi/hipl-dev@xxxxxxxxxxxxxxxxxxx/hipl--userspace--2.6--patch-2471/test/conntest.c.diff?diff

even though it's defined in <netinet/in.h>. Otherwise a *fresh copy* of code doesn't compile (weirdly, old copy did compile). It gives the following error:

message.lo -MD -MP -MF .deps/message.Tpo -c message.c -fPIC -DPIC -o .libs/message.o
message.c: In function ‘hip_read_control_msg_all’:
message.c:478: error: dereferencing pointer to incomplete type
make[1]: *** [message.lo] Error 1

Any suggestions?




Other related posts: