Takahiro HAYASHI <t-hash%abox3.so-net.ne.jp@localhost> writes: > hi, > > On Tue, 03 Jul 2012 20:38:44 -0400 > Greg Troxel <gdt%ir.bbn.com@localhost> wrote: > >> Route6d runs, but I have no routes. kill -USR1 shows a sane database. >> Starting up route6d -d, for every route I get: >> >> Can not write to rtsock (addroute): Invalid argument >> >> >> Is route6d working for anyone else? > > This should be same problem with PR 44647, affect HEAD and netbsd-6. > I made a patch for this, but I forgot to post it. (I did for routed) > This is not tested. > > Index: src/usr.sbin/route6d/route6d.c > =================================================================== > RCS file: /cvsroot/src/usr.sbin/route6d/route6d.c,v > retrieving revision 1.63 > diff -u -r1.63 route6d.c > --- src/usr.sbin/route6d/route6d.c 23 Apr 2010 15:30:30 -0000 1.63 > +++ src/usr.sbin/route6d/route6d.c 28 Feb 2011 16:52:07 -0000 > @@ -83,9 +83,17 @@ > #endif > > /* alignment constraint for routing socket */ > +#if defined(__NetBSD__) && defined(RT_ROUNDUP) > +#define ROUNDUP(a) RT_ROUNDUP(a) > +#else > #define ROUNDUP(a) \ > ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long)) > +#endif > +#if defined(__NetBSD__) && defined(RT_ADVANCE) > +#define ADVANCE(x, n) RT_ADVANCE(x, n) > +#else > #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len)) > +#endif > > /* > * Following two macros are highly depending on KAME Release I see - will try it out.
Attachment:
pgpS0Ifhvz_8N.pgp
Description: PGP signature