Subject: Re: [netatalk-admins] Disable routing if I have two interfaces.
From: thomas (thomas@buttle.verlag.total)
Date: Tue Jun 23 1998 - 05:52:12 EDT
Well I don't know, what the clean way is, but on a 2.0.32 Linux,
we wanted the same and did it "cruel and dirty":
-START-------------------------.../linux/net/appletalk/ddp...-----------
--- ddp.c.orig Fri May 31 12:46:27 1996
+++ ddp.c Fri Mar 28 16:32:51 1997
@@ -1489,10 +1489,16 @@
{
kfree_skb(skb, FREE_READ);
return(0);
}
#endif
+
+#if 1 /* Don't do appletalk routing */
+ kfree_skb(skb, FREE_READ);
+ return 0;
+#endif
+
ta.s_net=ddp->deh_dnet;
ta.s_node=ddp->deh_dnode;
/* Route the packet */
rt=atrtr_find(&ta);
--- END ----------------------------------------------------------------
If there is a better solution (there must be) tell me where ...
Thomas Riewe
On Tue, 23 Jun 1998, Magnus Hoglund wrote:
>
> Hi,
>
> I'm running netatalk with the latest asun-patches on a Solaris 2.6-box
> with two ethernet-interfaces and have a question.... I would like to
> disable Appletalk-routing between the interfaces. How do I do that?
>
> Regards. Magnus Hoglund
> Dalarna University
> SWEDEN
>
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:32:50 EST