hi,guys
From MSDN’s connect remarks:
For a connectionless socket (for example, type SOCK_DGRAM),
the operation performed by connect is merely to establish a default destination address
that can be used on subsequent send/ WSASend and recv/ WSARecv calls. Any datagrams
received from an address other than the destination address specified will be discarded.
I try to intercept UDP and redirect to another IP/Port.
e.g: I can intercept connect(TDI_CONNECT), and do redirect from 192.168.0.158 to 10.1.0.158.
from tcpdump info, when my udp client application call ‘send’ package to the server, the server
can recieve and response the package to my client, but my client application can not ‘recv’ the package.
I think it is the reason that when UDP ‘connect’, it establishs the relationship between the ‘s’
and the ‘destination ip/port’, but I modified the ‘destination ip/port’, so the udp/ip device will
discard the recieved package, right?
If that is true, where and how can I control and modify the relationship?
Thanks!
Best Regards
Ouyang Kai