git: a2f54460e39a - stable/14 - netlink/route: Fix the argument list for rtnl_handle_iflink()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 28 Nov 2024 14:47:08 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a2f54460e39a915a72df095a3de52a844335024b

commit a2f54460e39a915a72df095a3de52a844335024b
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-11-22 13:52:57 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-28 14:41:52 +0000

    netlink/route: Fix the argument list for rtnl_handle_iflink()
    
    This function is registered as a ifnet_link_event and so should have the
    corresponding argument list.
    
    PR:             282870
    Reported by:    nakayamakenjiro@gmail.com
    MFC after:      1 week
    
    (cherry picked from commit 0289db3259532d51ebe58bc0b2647a0d9e6cae66)
---
 sys/netlink/route/iface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c
index 0587b478431e..fe6d6bf18c90 100644
--- a/sys/netlink/route/iface.c
+++ b/sys/netlink/route/iface.c
@@ -1427,7 +1427,7 @@ rtnl_handle_ifdetach(void *arg, if_t ifp)
 }
 
 static void
-rtnl_handle_iflink(void *arg, if_t ifp)
+rtnl_handle_iflink(void *arg, if_t ifp, int link_state __unused)
 {
 	NL_LOG(LOG_DEBUG2, "ifnet %s", if_name(ifp));
 	rtnl_handle_ifevent(ifp, NL_RTM_NEWLINK, 0);