Re: Another bug with netmasked aliases (with fix)

From: Ruslan Ermilov (ru_at_freebsd.org)
Date: 12/08/04

  • Next message: Andrew White: "Best layer 2 bridge over IP solution ?"
    Date: Wed, 8 Dec 2004 23:11:22 +0200
    To: Max Laier <max@love2party.net>
    
    
    

    Hi Max,

    On Wed, Dec 08, 2004 at 09:06:58PM +0100, Max Laier wrote:
    > Any reason you didn't include the following (also part
    > of OpenBSD rev. 1.47)?:
    >
    I developed it independently of OpenBSD, and only later
    found that OpenBSD also had it, so I missed this part.
    It's indeed needed.

    > | /*
    > | * make sure to set rt->rt_ifa to the interface
    > | * address we are using, otherwise we will have trouble
    > | * with source address selection.
    > | */
    > | ifa = &ia->ia_ifa;
    > | if (ifa != rt->rt_ifa) {
    > | IFAFREE(rt->rt_ifa);
    > | ifa->ifa_refcnt++;
    > | rt->rt_ifa = ifa;
    > | }
    >
    >
    > Updated diff attached. Not sure if it makes any difference?
    >
    Of course it does. Without it, "ping <alias>" comes from
    the main address, where it should come from <alias>.

    Reviewed. Please commit.

    Cheers,

    -- 
    Ruslan Ermilov
    ru@FreeBSD.org
    FreeBSD committer
    
    



  • Next message: Andrew White: "Best layer 2 bridge over IP solution ?"

    Relevant Pages

    • Re: Another bug with netmasked aliases (with fix)
      ... > appears to be another bug. ... > Adding an alias to the Ethernet interface with the same ... > have a route for the alias being added. ... Any reason you didn't include the following (also part of OpenBSD rev. 1.47)?: ...
      (freebsd-net)
    • ksh error message
      ... alias X='nohup Y &; exit' ... Dave Feustel ... Using OpenBSD with or without X & KDE? ...
      (comp.unix.shell)
    • Re: OpenBSD LiveCD -- public beta
      ... New user should not use OpenBSD if they don't undestand what they do! ... There is no technical or 'philosophical' reason not to 'allow' KDE. ... I like to do things with the console/command line, but I berate who want do things like in windows in a system as OpenBSD, and your live cd can help people to do this kind of things. ...
      (comp.unix.bsd.openbsd.misc)
    • Re: Darwin/OSX Bluetooth code
      ... > porting the NetGraph framework to other OS's, and if BlueTooth support ... > will provide yet one more reason for the need to do this, ... FWIW, I'm not aware of any such work for OpenBSD, and I estimate ...
      (freebsd-current)
    • Re: How to spoof/masquerade mac addresses?
      ... On 5 Oct 2003, David Magda wrote: ... >> By default it is not possible under OpenBSD. ... > Is there any reason for this? ... M. Barry, Mayor of Washington, DC ...
      (comp.unix.bsd.openbsd.misc)