On Mon, 2007-04-30 at 09:26 -0700, Patrick McCarty wrote:
[...]
> I could probably assist in finding the appropriate struct's and
> whatnot, but I'm not in much of a position to test ipv6 code.

Good. That should be enough.

> Adding these to src/bsd/net.c seems to fix the problem, and I now have a binary:
> 
> #include <netinet6/in6_var.h> /* For struct in6_ifreq */
> #include <ifaddrs.h>

Added them.

> cc -DVERSION=\"0.5.0\" -static -MD -Isrc -I./src  -D__OpenBSD__   -c
> -o src/bsd/net.o src/bsd/net.c
> src/bsd/net.c: In function `set_sysctl_int':
> src/bsd/net.c:144: warning: passing arg 4 of `sysctl' from
> incompatible pointer type
> 
> Line 144:
>  if (sysctl(mib, 4, &old, &len, &new, sizeof (new)) < 0)
> 
> As for this one, len is an unsigned int.... OpenBSD expects a size_t like MacOSX
> 
> At the beginning of set_sysctl_int:
> 
> #if __MacOSX__ || defined __OpenBSD__
>   size_t len = sizeof (old);
> #else
>   unsigned int len = sizeof (old);
> #endif
>
> I added the || OpenBSD, which gets rid of the warning.

Updated it too. And committed both fixes to CVS-HEAD.

[...]
> Of course, compiling that just exposed another strcpy (in
> src/bsd/kernel_routes):

There are lots of them there .....

[...]

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



