From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 31 Jul 2011 09:21:23 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <86tya3tuj8.fsf@cmarib.ramside> References: <86tya3tuj8.fsf@cmarib.ramside> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Plan 9 IPv4 router Topicbox-Message-UUID: 09112536-ead7-11e9-9d60-3106f5b1d025 > Does anybody know if it's possible to use Plan 9 as an IPv4 router? plan 9 does a fine job of routing ip4 packets. i used plan 9 to do that for a 4 months recently during a network renumbering. if you do this, make sure you've made this revert to ip.c. the sources version has both lines, which is harmless but redundant. minooka; diff -c /n/dump/2010/0930/sys/src/9/ip/ip.c /n/dump/2010/0820/sys/src/9/ip/ip.c /n/dump/2010/0930/sys/src/9/ip/ip.c:463,469 - /n/dump/2010/0820/sys/src/9/ip/ip.c:463,469 } /* don't forward to source's network */ - memset(&conv, 0, sizeof conv); + conv.r = nil; r = v4lookup(f, h->dst, &conv); if(r == nil || r->ifc == ifc){ ip->stats[OutDiscards]++; - erik