David Preece wrote:
>
> Hi,
>
> Due to the wonder of IPFW and divert sockets I have been merrily catching
> packets, modifying them and reinjecting back in from userland to great
> effect for some time now. What I would like (need) to do is much the same,
> but being able to explicitly state which route to take (for a packet going
> outwards), or being able to tell which route a packet came in from (for a
> packet coming inwards).
>
> I suspect the necessary stunts are to have access to sufficiently low level
> networking to be able to capture and write a packet with layer 2
> information, which probably involves netgraph? Can anyone think of another
> way? Oh, and if I do go to netgraph (in itself not a bad thing), do I have
> to use a kernel mode debugger - just too addicted to KDevelop I guess.
the address you get from the divert socket includes (if you know where to look)
the incoming interface..
you can the resend back to a specific rule
and use the 'fwd' rules to send out different
interfaces
>
> Thanks,
> Dave
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
--
+------------------------------------+ ______ _ __
| __--_|\ Julian Elischer | \ U \/ / hard at work in
| / \ [EMAIL PROTECTED] +------>x USA \ a very strange
| ( OZ ) \___ ___ | country !
+- X_.---._/ presently in San Francisco \_/ \\
v
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message