NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/44647: routed sometimes thinls kernel routes disappear



The following reply was made to PR kern/44647; it has been noted by GNATS.

From: Frank Kardel <kardel%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: Takahiro HAYASHI <hash%abox3.so-net.ne.jp@localhost>, 
kern-bug-people%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/44647: routed sometimes thinls kernel routes disappear
Date: Sat, 05 Mar 2011 09:43:32 +0100

 That was exactly what was needed.
 
 routing is stable again an no more unexpected messages are generated by 
 routed.
 
 The fix should be committed.
 
 Frank
 
 On 03/01/11 06:00, Takahiro HAYASHI wrote:
 > The following reply was made to PR kern/44647; it has been noted by GNATS.
 >
 > From: Takahiro HAYASHI<hash%abox3.so-net.ne.jp@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: kardel%pip.acrys.com@localhost, kern-bug-people%netbsd.org@localhost, 
 > gnats-admin%netbsd.org@localhost,
 >          netbsd-bugs%netbsd.org@localhost
 > Subject: Re: kern/44647: routed sometimes thinls kernel routes disappear
 > Date: Tue, 01 Mar 2011 13:57:50 +0900
 >
 >   This patch might help you.
 >
 >   Index: src/sbin/routed/if.c
 >   ===================================================================
 >   RCS file: /cvsroot/src/sbin/routed/if.c,v
 >   retrieving revision 1.29
 >   diff -u -r1.29 if.c
 >   --- src/sbin/routed/if.c   13 Oct 2010 09:19:40 -0000      1.29
 >   +++ src/sbin/routed/if.c   28 Feb 2011 16:52:06 -0000
 >   @@ -641,6 +641,9 @@
 >    #ifdef _HAVE_SA_LEN
 >      static struct sockaddr sa_zero;
 >    #endif
 >   +#if defined(__NetBSD__)&&  defined(RT_ROUNDUP)
 >   +#define ROUNDUP(a) RT_ROUNDUP(a)
 >   +#else
 >    #ifdef sgi
 >    #define ROUNDUP(a) ((a)>  0 ? (1 + (((a) - 1) | (sizeof(__uint64_t) - 
 > 1))) \
 >                  : sizeof(__uint64_t))
 >   @@ -648,6 +651,7 @@
 >    #define ROUNDUP(a) ((a)>  0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) \
 >                  : sizeof(long))
 >    #endif
 >   +#endif /* defined(__NetBSD__)&&  defined(RT_ROUNDUP) */
 >
 >
 >      memset(info, 0, sizeof(*info));
 >
 >   --
 >   Takahiro HAYASHI
 >
 >    
 


Home | Main Index | Thread Index | Old Index