> 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

Reply via email to