]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/ipaddr: Allow binding on lo 38925/head
authorThomas Goirand <zigo@debian.org>
Fri, 15 Jan 2021 09:50:05 +0000 (10:50 +0100)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2021 14:38:35 +0000 (22:38 +0800)
commit201b59204374ebdab91bb554b986577a97b19c36
tree92520beeed1250d88e8a3e668afadc5c12676fba
parent892c51dd3c5f7108e766bea30cd5e0d801b0abd3
common/ipaddr: Allow binding on lo

Commmit 5cf0fa872231f4eaf8ce6565a04ed675ba5b689b, solves the issue that
the osd can't restart after seting a virtual local loopback IP. However,
this commit also prevents a bgp-to-the-host over unumbered Ipv6
local-link is setup, where OSD typically are bound to the lo interface.

To solve this, this single char patch simply checks against "lo:" to
match only virtual interfaces instead of anything that starts with "lo".

Fixes: https://tracker.ceph.com/issues/48893
Signed-off-by: Thomas Goirand <zigo@debian.org>
src/common/ipaddr.cc