Re: in.c autoadding prefix route

From: Brooks Davis (brooks_at_one-eyed-alien.net)
Date: 11/12/04

  • Next message: Bruce M Simpson: "Re: in.c autoadding prefix route"
    Date: Thu, 11 Nov 2004 19:13:18 -0800
    To: Max Laier <max@love2party.net>
    
    
    

    On Thu, Nov 11, 2004 at 09:24:05PM +0100, Max Laier wrote:
    > All,
    >
    > I know I have sent this a couple of times before, but never got anywhere. This
    > time I am set to commit!
    >
    > The attached patch (http://people.freebsd.org/~mlaier/in.c.patch) derived from
    > WIDE via OpenBSD in.c, rev 1.21 improves the handling of automatic prefix
    > routes.
    >
    > Right now you can't have two legs into the same network. If you want to, you
    > must give on of the interfaces a host address only (netmask /32). This way it
    > is not possible to hand over the route if one of the interfaces is
    > "removed" (however this is done in the special case).
    >
    > The patch allows to add more than on IPv4 address with the same prefix. In the
    > case that there is a route already, we leave it alone and add the new address
    > without the IFA_ROUTE flag. When we remove an address later on, that has a
    > route associated, we try to find an alternative address to use for the route
    > and hand it over.
    >
    > This is required for CARP, but should be helpful for other situations as well.

    I have no objections so this change. Does this help or hurt our quest
    to be able to usefully bind to 0.0.0.0? It would be really nice if we
    could eventually do this so we could stop running bpf on 90+% of all
    machines just so we could use DHCP.

    -- Brooks

    
    



  • Next message: Bruce M Simpson: "Re: in.c autoadding prefix route"

    Relevant Pages

    • Re: in.c autoadding prefix route
      ... > time I am set to commit! ... rev 1.21 improves the handling of automatic prefix ... > case that there is a route already, we leave it alone and add the new address ... > This is required for CARP, but should be helpful for other situations as well. ...
      (freebsd-arch)
    • Re: in.c autoadding prefix route
      ... > time I am set to commit! ... rev 1.21 improves the handling of automatic prefix ... > case that there is a route already, we leave it alone and add the new address ... > This is required for CARP, but should be helpful for other situations as well. ...
      (freebsd-arch)
    • Re: in.c autoadding prefix route
      ... > time I am set to commit! ... rev 1.21 improves the handling of automatic prefix ... > The patch allows to add more than on IPv4 address with the same prefix. ... > case that there is a route already, we leave it alone and add the new address ...
      (freebsd-arch)
    • Re: in.c autoadding prefix route
      ... > time I am set to commit! ... rev 1.21 improves the handling of automatic prefix ... > The patch allows to add more than on IPv4 address with the same prefix. ... > case that there is a route already, we leave it alone and add the new address ...
      (freebsd-arch)
    • Re: in.c autoadding prefix route
      ... > time I am set to commit! ... rev 1.21 improves the handling of automatic prefix ... > The patch allows to add more than on IPv4 address with the same prefix. ... > case that there is a route already, we leave it alone and add the new address ...
      (freebsd-net)