netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* more on forcing traffic to route to local interface though another interface.
@ 2002-09-13  4:31 Ben Greear
  0 siblings, 0 replies; only message in thread
From: Ben Greear @ 2002-09-13  4:31 UTC (permalink / raw)
  To: netdev@oss.sgi.com

I've been adding printk's to the linux routing code to try to figure
out how things are working...

It appears that at least one of the reasons why what I want to do will
not work is that this code in route.c:

  	/*
	 *	Now we are ready to route packet.
	 */
	if ((err = fib_lookup(&key, &res)) != 0) {
		if (!IN_DEV_FORWARD(in_dev))
			goto e_inval;
		goto no_route;
	}

returns a 'res' that has the res.type == RTN_LOCAL.


So, does anyone know what part of the code populates
the fib tables?  I need to convince that code to never (or rarely)
use any RTN_LOCAL type, at least for certain interfaces and/or sockets.


Other ideas are welcome, of course!

Ben

-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-13  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13  4:31 more on forcing traffic to route to local interface though another interface Ben Greear

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).