From 6299f1f1cabecdee1f82e06fc6cce234f933eea9 Mon Sep 17 00:00:00 2001 From: Quang Anh <59093097+ngxquanganh@users.noreply.github.com> Date: Sun, 27 Apr 2025 00:15:35 +0700 Subject: [PATCH] linux: stop old interface name instead of new one (#505) --- src/if-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/if-linux.c b/src/if-linux.c index b9082505..96d1e50b 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -1137,7 +1137,7 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm) /* Handle interface being renamed */ if (strcmp(ifp->name, ifn) != 0) { - dhcpcd_handleinterface(ctx, -1, ifn); + dhcpcd_handleinterface(ctx, -1, ifp->name); dhcpcd_handleinterface(ctx, 1, ifn); return 0; } -- 2.47.2