Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 1995 01:04:07 -0700
From:      David Greenman <davidg@Root.COM>
To:        Peter Wemm <peter@haywire.dialix.com>
Cc:        hackers@FreeBSD.org
Subject:   Re: More on "Hmm.. Strange..." 
Message-ID:  <199505190804.BAA00362@corbin.Root.COM>
In-Reply-To: Your message of "Fri, 19 May 95 12:15:18 %2B0800." <Pine.SV4.3.91.950519105053.23362C-100000@haywire.DIALix.COM> 

next in thread | previous in thread | raw e-mail | index | archive | help
>The first sendto() always works, and the second sendto() sends the 
>datagram to the *wrong interface*!
>
>Just a (yet another) reminder of the config:
>
>ed0: flags=8963<UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
>	inet 192.203.228.69 netmask 0xfffffff0 broadcast 192.203.228.79
>ppp0: flags=151<UP,POINTOPOINT,RUNNING,PROMISC> mtu 1500
>	inet 192.203.228.69 --> 192.203.228.3 netmask 0xfffffff0 
>
>In this case, in the above program, the first sendto() sends a 5 byte 
>broadcast to 192.203.228.79 on the ethernet (correct!). The second 
>sendto(), the 10 byte datagram gets sent to 192.203.228.79 on the PPP 
>interface!!!!!  (of which the remote sends it straight back!  after a 
>game of ping-pong, an icmp timer exceeded message is sent).

   That is happening because you have both the ethernet and ppp interfaces in
the same subnet. FreeBSD doesn't support this - each network interface must be
in a unique subnet. As far as I know, it's always been this way in BSD.

-DG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505190804.BAA00362>