]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/pick_address: match against the current iface in pick_iface 69822/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 30 Jun 2026 06:58:24 +0000 (14:58 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 1 Jul 2026 02:06:29 +0000 (10:06 +0800)
commit29017afa1a79e577b8527188f0d915d6e1de44a9
treec8b832c606943dea294448a4e300369250056216
parent239be57c06cf9713f63fdfdef830650bb24679db
common/pick_address: match against the current iface in pick_iface

The loop iterated over addr but always passed the list head *ifa
to matches_with_net, so it only ever tested the first interface
while returning the iterated interface's name. Match against
*addr.

Fixes: https://tracker.ceph.com/issues/77847
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/common/pick_address.cc