DragonFly BSD
DragonFly commits List (threaded) for 2013-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DragonFly_RELEASE_3_4 carp: Fix routes reset issue


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Jun 2013 18:38:47 -0700 (PDT)

commit cdf58d343d1bbfe1adc256bc82b4909e71eabd02
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Wed May 29 20:41:40 2013 +0800

    carp: Fix routes reset issue
    
    Before this commit, routes related to carp or carp backing device were
    reset, i.e. only prefix route was left, when carp state changed, e.g.
    carp is down.
    
    This commit fixes this routes reset issue by replacing the carp or carp
    device routes' rt_ifa and rt_ifp with proper ifaddr and ifnet, instead
    of discarding the old routes and installing the new prefix route.
    
    Reported-by: robgar

Summary of changes:
 sys/net/route.c       | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sys/net/route.h       |  1 +
 sys/netinet/in.c      | 10 ++++++
 sys/netinet/in_rmx.c  | 16 ++++++++-
 sys/netinet/in_var.h  |  1 +
 sys/netinet/ip_carp.c | 26 ++++----------
 6 files changed, 130 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cdf58d343d1bbfe1adc256bc82b4909e71eabd02


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]