Ben Reser wrote: > On Mon, Apr 22, 2002 at 11:00:56PM -0500, Peter Caldes wrote: > > I want the application(s) to specify the next hop the packet takes without >modifying the IP packet > > itself, so that the packet can be directed/forwarded to a particular router based >on the application > > parameters. The real reason is that IP addresses in the same subnet might reside >behind different > > routers. (ie. 1.2.3.1 is behind RouterA, 1.2.3.2 is behind RouterB). The >application knows which > > router to use. > > Why not take a look at the source code to traceroute on Linux? It > should have an implementation of what you're trying to do. At least if > I understand what you want correctly.
Using Traceroute as a basis won't work because when it source-routes the packet, the source route is specified in the IP option header in the packet as either a strict source-route or a loose source-route. I do NOT want to modify the original packet, I just want to push it in one direction or another (ie. towards RouterA or RouterB or RouterC). Another thing I may not have made clear is that the packets I intercept/forward do not necessarily originate/terminate on my machine. Only users who have been authenticated are allowed to pass data thru my machine.