Hi,

to my last question how to get the original destination address of an
intercepted paket, I got a nice answer for TCP connections.

Unfortunately, getsockname() does not work for UDP pakets. Well, it kind
of works, but it returns 0.0.0.0 as an address and the port number is the
port the requests are redirected to. This does not really help in finding
out where to forward them :-(

Is there anyway to get this information? It would already help a lot, if I
could get the destination port. It might be possible to guess the
destination address in my case.

I could possibly redirect every UDP port I'm intercepting to a unique
port, but I'm trying to write a DirectPlay 6 proxy and this **** protokol
can use 100 UDP ports and I don't think it's a good idea to redirect all of
them.

Any help appreciated,
Lars

-- 
The box said "Windows 95, Windows NT 4.0, or better", so I installed Linux
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to