From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Plan 9 IPv4 router
Date: Sun, 31 Jul 2011 09:21:23 -0400 [thread overview]
Message-ID: <a9103dbe9c4bfb38c48c0fadd5ef7c6b@brasstown.quanstro.net> (raw)
In-Reply-To: <86tya3tuj8.fsf@cmarib.ramside>
> 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
next prev parent reply other threads:[~2011-07-31 13:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-30 19:53 smiley
2011-07-30 20:52 ` Sergey Zhilkin
2011-07-30 20:57 ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2011-07-30 21:03 ` Sergey Zhilkin
2011-07-30 22:06 ` David du Colombier
2011-07-31 18:34 ` David du Colombier
2011-07-31 13:21 ` erik quanstrom [this message]
2011-07-31 14:26 ` Alexander Sychev
2011-07-31 16:54 ` smiley
2011-07-31 17:52 ` David du Colombier
2011-07-31 20:34 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9103dbe9c4bfb38c48c0fadd5ef7c6b@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).