From nobody Wed Nov 20 05:28:53 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XtVK21Mdwz5dGZZ for ; Wed, 20 Nov 2024 05:28:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtVK20DKcz4H0Z for ; Wed, 20 Nov 2024 05:28:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732080534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m4IZ3TiMM79o0daxNzuuuxYV63qfDNCBewfZfDoM2Js=; b=WOJd1m08iKTWf5vohEP7c+S1XSuNsQ8rq1BIITY7lSMhpBwAaGrPjcqw1fQXkjSbX0WJGf ikjfiRYJwuCQkN60nDTYic9IsMyPssG6nqNZnfvOmmeQkGIbseBYuocAVKPFmbiAmD8LVp SgTSmnvLtNJQBtCsLWUQlF4tAY7QucndVpJTAuIXSV4J64i+hRrjIo4MVGPNS7lt4od/9J /cmw3rCix161PBKItl/NcqE5UatR5xpk1QAIVlAESOr7r7VZkbnC9JKx5sEKhdOdPrLnn8 RJ4JVU3Q5mBMevvvy73vIinopyiLIF2sB1e/lbz4CvdCYSBcPkWCqKZtoj7hdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732080534; a=rsa-sha256; cv=none; b=o0b0jcfyaw/Jw2dMfgk+Atlo0SSK9CEQLLZeMAXVlcaEhBugUcVD1G8PJ1zl0EzxPaUOLs u50cmDmWMavBmPFi+66y4xfnbv+cjfTDcTGU37E1LCAVRn3W5JWdK14mxkijAL5x4DZ1+0 BI3bvazndpY5X/5EaZ8x/qXhfI1nBdf6EZQkTCenFXBELSGSQs0Eq+S+PqiAZSlPesoTQy 1j+yOOal2W45CGRRWSearMYy+Nn9Hom4sYMgfqGnxz1M8+MsYhRAnz21RaOZfiinLlkz5/ jkYWeFQpJNaVBY4RF50lZavjcMKkfBpF8LFuzx5cfm0A2wcGKqAbI+x4n0T7Yg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XtVK16ySYzhW3 for ; Wed, 20 Nov 2024 05:28:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4AK5Sr3a053014 for ; Wed, 20 Nov 2024 05:28:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AK5Srw4053013 for bugs@FreeBSD.org; Wed, 20 Nov 2024 05:28:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282870] rtnl_handle_iflink() has a type mismatch for ifnet_link_event Date: Wed, 20 Nov 2024 05:28:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nakayamakenjiro@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282870 Bug ID: 282870 Summary: rtnl_handle_iflink() has a type mismatch for ifnet_link_event Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: nakayamakenjiro@gmail.com Created attachment 255318 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D255318&action= =3Dedit patch for rtnl_handle_iflink type mismatch In sys/net/if_var.h, the type for ifnet_link_event is defined as: ``` /* Interface link state change event */ typedef void (*ifnet_link_event_handler_t)(void *, if_t, int); EVENTHANDLER_DECLARE(ifnet_link_event, ifnet_link_event_handler_t); ``` However, in sys/netlink/route/iface.c, the rtnl_handle_iflink() function, w= hich only takes two arguments, is registered as a handler for ifnet_link_event. ``` static void rtnl_handle_iflink(void *arg, if_t ifp) { NL_LOG(LOG_DEBUG2, "ifnet %s", if_name(ifp)); rtnl_handle_ifevent(ifp, NL_RTM_NEWLINK, 0); } ... iflink_event =3D EVENTHANDLER_REGISTER( ifnet_link_event, rtnl_handle_iflink, NULL, EVENTHANDLER_PRI_ANY); ``` --=20 You are receiving this mail because: You are the assignee for the bug.=