[756] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Gated

daemon@ATHENA.MIT.EDU (Drew Eckhardt)
Sat Jul 22 09:03:25 1995

To: m-ke0082@SPARKY.CS.NYU.EDU (Ken Estes)
cc: linux-net@vger.rutgers.edu
In-reply-to: Your message of "Fri, 21 Jul 1995 12:33:52 EDT."
             <9507211633.AA09339@SPARKY.CS.NYU.EDU> 
Date: Sat, 22 Jul 1995 01:42:44 -0600
From: Drew Eckhardt <drew@poohsticks.org>

In message <9507211633.AA09339@SPARKY.CS.NYU.EDU>, m-ke0082@SPARKY.CS.NYU.EDU w
rites:
>I am having some routing problems and was wondering if anyone has
>given thought to creating a GNU version of Gated.  If this was done
>Gated could be distributed standard with all the distributions of
>Linux. (Just a thought)

Could you quantify a bit more?  

The stock gated does NOT install netmasks for the routes it adds,
which is B-A-D bad.  The following fixes this particularly nasty 
problem.

--- krt_rt_ioctl.c      1995/06/25 02:32:42     1.1
+++ krt_rt_ioctl.c      1995/06/25 02:32:44
@@ -60,6 +60,9 @@
     bzero((caddr_t) & krt, sizeof(krt));
     krt.rt_dst = *sock2unix(dest, (int *) 0);          /* struct copy */
     krt.rt_gateway = *sock2unix(router, (int *) 0);    /* struct copy */
+#ifdef linux
+    krt.rt_genmask = *sock2unix(mask, (int *) 0);
+#endif
     krt.rt_flags = krt_state_to_flags(krtp->krtp_state);
     if (sockishost(dest, mask)) {
        BIT_SET(krt.rt_flags, RTF_HOST);


home help back first fref pref prev next nref lref last post