git: a1db1097e654 - main - netlink: fix build without NETLINK in the kernel.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Apr 2023 11:19:49 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=a1db1097e654272c1af0a1e0581b4a8deb75f168 commit a1db1097e654272c1af0a1e0581b4a8deb75f168 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-04-26 11:18:43 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-04-26 11:19:41 +0000 netlink: fix build without NETLINK in the kernel. PR: 271066 --- sys/netlink/netlink_glue.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/netlink/netlink_glue.c b/sys/netlink/netlink_glue.c index 069cb9900e03..940ff2de4859 100644 --- a/sys/netlink/netlink_glue.c +++ b/sys/netlink/netlink_glue.c @@ -49,6 +49,7 @@ #include <netlink/netlink.h> #include <netlink/netlink_ctl.h> #include <netlink/netlink_var.h> +#include <netlink/route/route_var.h> /* Standard bits: built-in the kernel */ SYSCTL_NODE(_net, OID_AUTO, netlink, CTLFLAG_RD, 0, ""); @@ -282,11 +283,11 @@ int nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs, const struct nlattr_bmask *bm , struct nl_pstate *npt) { - return (_nl->nl_modify_ifp(ifp, lattrs, bm, npt)); + return (_nl->nl_modify_ifp_generic(ifp, lattrs, bm, npt)); } -static void -nl_store_ifp_cookie_stub(struct nl_pstate *npt, struct ifnet *ifp) +void +nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp) { return (_nl->nl_store_ifp_cookie(npt, ifp)); }