Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C758D59.9A0B7AC4@etr-usa.com> Date: Thu, 21 Feb 2002 17:14:17 -0700 From: Warren Young Organization: -ENOENT X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Cygwin-L Subject: Re: BSD Style ping for Cygwin References: <001701c1ba5f$717de4e0$1a00010a AT gemplex DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Majid Ansari wrote: > > I am looking for a ping with a > feature to specify source address on windows ... please let me know if any > other tool doing that on windows. In the Winsock Programmer's FAQ, there is source code for doing a ping, which will let you set the source address. However, the code doesn't actually _set_ the address when doing a normal ping, which implies that the network stack sets this field for you before sending the packet out. It may be that it would rewrite that field if you did set it to something that doesn't match a local interface. Download the code and try it. If it works, you can go grab Linux's or one of the BSD's ping programs and modify it so it can be part of Cygwin. http://tangentsoft.net/wskfaq/examples/rawping.html -- = Winsock Programmer's FAQ: http://tangentsoft.net/wskfaq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/