Re: best source address (TDI)



The best source address for the local endpoint using Winsock or TDI is INADDR_ANY (0). Let the stack figure out what interface and IP address to use.

You would specifiy a particular local interface (local IP address) only if you had some requirement to bind only to a particular interface.

Good luck,

Thomas F. Divine, Windows DDK MVP
http://www.pcasua.com

<pg.gupta@xxxxxxxxx> wrote in message news:1150591869.563566.185610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I want to find the best source address for a given destination address
in a TCP TDI filter, and bind the connection endpoint to that source
address. How can I do this in TDI?

Thanks,
Piyush

PS: Is this the right list for this question?


.



Relevant Pages

  • Re: best source address (TDI)
    ... the alternative solution is to reset the local endoint to ... route to the application specified destination, my TDI filter tries to ... connect to my server through that interface and connection fails. ... bind call will do socket binding to the local address. ...
    (microsoft.public.development.device.drivers)
  • Re: NDISProtocol Driver on WinCE
    ... "An NDIS protocol driver can support Transport Driver Interface (TDI) at its ...
    (microsoft.public.development.device.drivers)
  • Re: How to send data over Network
    ... Think twice before going into direction of DriverStudio. ... Sending UDP socket is possible via TDI ... interface and so i want also to implment it with the tdi. ...
    (microsoft.public.development.device.drivers)
  • NDISProtocol Driver on WinCE
    ... "An NDIS protocol driver can support Transport Driver Interface (TDI) at its ...
    (microsoft.public.development.device.drivers)
  • Re: ssh -b bind_address not working?
    ... i have to admit I don't understand exactly ... what you mean with "local endpoint for its TCP connection". ... to the ssh manual I understand it should also use the interface: ...
    (comp.security.ssh)