]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: skip interfaces starting with "lo" in find_ipv{4,6}_in_subnet() 32420/head
authorlijaiwei1 <lijiawei1@chinatelecom.cn>
Tue, 24 Dec 2019 14:34:46 +0000 (22:34 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 25 Dec 2019 15:48:12 +0000 (23:48 +0800)
commit5cf0fa872231f4eaf8ce6565a04ed675ba5b689b
tree25e8f6d45e935b01c1b1072d9cdc368eb13f7963
parent31e6b807f99bb331d70f9a0785f068571c81c19d
common: skip interfaces starting with "lo" in find_ipv{4,6}_in_subnet()

This will solve the issue that the osd can't restart after seting a
virtual local loopback IP.
In find_ipv4_in_subnet() and find_ipv6_in_subnet(), I use
boost::starts_with(addrs->ifa_name, "lo") to ship the interfaces
starting with "lo".

Fixes: https://tracker.ceph.com/issues/43417
Signed-off-by: Jiawei Li <lijiawei1@chinatelecom.cn>
src/common/ipaddr.cc