Skip to content

Instantly share code, notes, and snippets.

@microwaves
Created August 20, 2011 04:00
Show Gist options
  • Save microwaves/1158638 to your computer and use it in GitHub Desktop.
Save microwaves/1158638 to your computer and use it in GitHub Desktop.
plan 9 IP routing
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]++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment