Date: Thu, 25 Nov 2004 17:06:41 +0300 From: Gleb Smirnoff <glebius@freebsd.org> To: net@freebsd.org Subject: route cacheing for gif(4) should be optional Message-ID: <20041125140641.GA78210@cell.sick.ru>
next in thread | raw e-mail | index | archive | help
--Kj7319i9nmIyA2yE Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Back to this problem: http://freebsd.rambler.ru/bsdmail/freebsd-net_2004/msg01305.html I've found two more people who dislike this feature of gif(4). So I'd like to make it optional. We already have LINK2 flag removing sourceroute filter from gif(4), which is commonly used in asymmetrically routed networks. I suggest to use this flag also for disabling route cacheing, since asymmetricity often appears in dynamically routed networks, and if one runs dynamic routing, he probably wants to remove route cacheing, too. Any objections? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=koi8-r Content-Disposition: attachment; filename="in_gif.c.diff" Index: in_gif.c =================================================================== RCS file: /home/ncvs/src/sys/netinet/in_gif.c,v retrieving revision 1.26 diff -u -r1.26 in_gif.c --- in_gif.c 18 Jun 2004 02:04:07 -0000 1.26 +++ in_gif.c 25 Nov 2004 17:16:14 -0000 @@ -209,6 +209,12 @@ } error = ip_output(m, NULL, &sc->gif_ro, 0, NULL, NULL); + + if ((sc->gif_if.if_flags & IFF_LINK2) != 0) { + RTFREE(sc->gif_ro.ro_rt); + sc->gif_ro.ro_rt = NULL; + } + return (error); } --Kj7319i9nmIyA2yE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041125140641.GA78210>