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

git: carp: Fix routes reset issue


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 May 2013 00:28:26 -0700 (PDT)

commit 2c1793932940230c08a7de65090d8a49ede91459
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/2c1793932940230c08a7de65090d8a49ede91459


-- 
DragonFly BSD source repository



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