Subject: Re: how to get FreeBSD ping.c into NetBSD?
To: None <tech-net@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-net
Date: 11/23/2006 00:24:00
On Wed, Nov 22, 2006 at 08:20:07PM +0100, Gert Doering wrote:
> Hi,
> 
> On Wed, Nov 22, 2006 at 08:10:18PM +0100, Hubert Feyrer wrote:
> > On Wed, 22 Nov 2006, David Young wrote:
> > >    -I ifaddr
> > >            Send multicast datagrams on the network interface specified by
> > >            the interface's hostname or IP address.
> > 
> > How about:
> > 
> >  -I ipaddr
> > 	Send datagrams on the network interface specified by the
> > 	interface's hostname or IP address, 
> 
> Hmmm, that's not actually what it's doing ("send out on *that* network
> interface").  It's just using that IP address, and sending out the
> packets via the normal routing table (unless "-r" is set).

I believe there is a difference between unicast and multicast: for
multicast, ping really does use the interface specified by the IP for
multicast.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933