From nobody Fri Dec 23 15:26:31 2022 X-Original-To: dev-commits-src-all@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 4Ndrcm04v2z1LqJH; Fri, 23 Dec 2022 15:26:32 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ndrcl6PnCz3vJb; Fri, 23 Dec 2022 15:26:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671809191; 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=YNktnqc1YGMp3D/rT4tXat6y3P8gFvK9plJLtS4tCWY=; b=sVvi8E76Sh6uUIZ/xozJcK/oGy3xCqTMmx+scYvRhmiJAJLRWu6Wi0JWGmaobTjZDUnejK EkYb49a3dfL36HZrNz8M0vU+XWRdFqbr73PiOSlENne40M4PolBGnvZaDRiRw1F1lFKwSi BHFZtgrKXf7pGFM0RwQnfvsuaaraq/PpMHgIiCfJIYhxfG7JOuqMyYp74O8wL5yUqgTv06 DBOwDDOG7G6o9W72vasyjVMCQz9GiLBhw8Ezi0IGWhWxSFQweXwHcKY+B4FAkqZMzAeQZA aKiLgmaQv1PXescrGUnUWvsykH3xNC0F4hB34UDaDt0OKeRmXuMF0kQBi8dzmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671809191; 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=YNktnqc1YGMp3D/rT4tXat6y3P8gFvK9plJLtS4tCWY=; b=tO/UALCmnNw/ZH4XiGb0Xip1WCAD/VBTOyJdu2agTmEFUiqNbb2OnEgrIInjCNWrT5PB53 1cZqRbGXha0USAsrSyJ2TUzLw0V+WCg4B1XSOooEdn5ajBhAE/1kM2upVT5BfAler5vSzy L+BIRZuZj4T2PljRr4byF+9DATj4w7OsTANvFzykOyKHZW5U3lDlOEcQUDtRfftsoo+Tj4 leDKEaJjLUVVlhWHr4NoAR2IfAJV4GAllw5t+6GQTEZDYQFbwrq/zrU9fHH4/lJG/SiIOb F0BnX7B0cfAKu+Z0NnJLx7aq8iIGFdGxzj9qtdaoIXTyXcEmGY1/It4rCDqItQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671809191; a=rsa-sha256; cv=none; b=s5uLL1eipt83ESjDHhRgCH5ywGEiI3KqawjdVOwXu/DVokXz1x9Pn22X9NQQU10lI9NwQf 5TOPLOeHI7qTYIH5KGRFBgNquqE31wjqQjC4pQJ4cJTs7gLTM1Et0B3GmA0JT7YefOE8T/ MfJV7U4fVfZqhljSI3GVpER0GUH5C4zl5+LS6/SfOYG4LNEBWNaafSP4EKjqtna+pPpwjO M5AwO+8Dckd7sdez+9tFqwBUw+Myvoe3+vm5G7xxny/3WihjtnRY5SAcYcFZmjY7HvnHS3 2ptUkZQtx5Lb4cmj+Fq4lerESAS1ZxbodjTMxekAy/HTqHCT7CJwiuTWonmMWQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Ndrcl5TYqzdRL; Fri, 23 Dec 2022 15:26:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BNFQVHH010674; Fri, 23 Dec 2022 15:26:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BNFQVUR010673; Fri, 23 Dec 2022 15:26:31 GMT (envelope-from git) Date: Fri, 23 Dec 2022 15:26:31 GMT Message-Id: <202212231526.2BNFQVUR010673@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: c9313a0bad68 - main - netlink: allow netlink to be build in the kernel List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9313a0bad682351858e2e326cdb0f1d0bc2d1d8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=c9313a0bad682351858e2e326cdb0f1d0bc2d1d8 commit c9313a0bad682351858e2e326cdb0f1d0bc2d1d8 Author: Alexander V. Chernikov AuthorDate: 2022-12-22 14:51:36 +0000 Commit: Alexander V. Chernikov CommitDate: 2022-12-23 15:24:44 +0000 netlink: allow netlink to be build in the kernel Differential Revision: https://reviews.freebsd.org/D37781 --- sys/conf/NOTES | 3 +++ sys/conf/files | 12 ++++++++++++ sys/conf/options | 1 + sys/modules/netlink/Makefile | 2 +- sys/netlink/route/{route.c => rt.c} | 0 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/sys/conf/NOTES b/sys/conf/NOTES index dede651eaf9f..a1c0e71551ae 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -692,6 +692,9 @@ options IPSEC_SUPPORT # TLS framing and encryption/decryption of data over TCP sockets. options KERN_TLS # TLS transmit and receive offload +# Netlink kernel/user<>kernel/user messaging interface +options NETLINK + # # SMB/CIFS requester # NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV diff --git a/sys/conf/files b/sys/conf/files index 29cf7851f561..eb5fe2055f8e 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4471,6 +4471,18 @@ netipsec/xform_ipcomp.c optional ipsec inet | ipsec inet6 netipsec/xform_tcp.c optional ipsec inet tcp_signature | \ ipsec inet6 tcp_signature | ipsec_support inet tcp_signature | \ ipsec_support inet6 tcp_signature +netlink/netlink_domain.c optional netlink +netlink/netlink_generic.c optional netlink +netlink/netlink_io.c optional netlink +netlink/netlink_message_parser.c optional netlink +netlink/netlink_message_writer.c optional netlink +netlink/netlink_module.c optional netlink +netlink/netlink_route.c optional netlink +netlink/route/iface_drivers.c optional netlink +netlink/route/iface.c optional netlink +netlink/route/neigh.c optional netlink +netlink/route/nexthop.c optional netlink +netlink/route/rt.c optional netlink netpfil/ipfw/dn_aqm_codel.c optional inet dummynet netpfil/ipfw/dn_aqm_pie.c optional inet dummynet netpfil/ipfw/dn_heap.c optional inet dummynet diff --git a/sys/conf/options b/sys/conf/options index 85f456555447..1f5003507539 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -459,6 +459,7 @@ MBUF_PROFILING MBUF_STRESS_TEST MROUTING opt_mrouting.h NFSLOCKD +NETLINK PF_DEFAULT_TO_DROP opt_pf.h ROUTE_MPATH opt_route.h ROUTETABLES opt_route.h diff --git a/sys/modules/netlink/Makefile b/sys/modules/netlink/Makefile index eb166ac42ea6..791b953e5b84 100644 --- a/sys/modules/netlink/Makefile +++ b/sys/modules/netlink/Makefile @@ -4,7 +4,7 @@ KMOD= netlink SRCS = netlink_module.c netlink_domain.c netlink_io.c \ netlink_message_parser.c netlink_message_writer.c netlink_generic.c \ netlink_route.c route/iface.c route/iface_drivers.c route/neigh.c \ - route/nexthop.c route/route.c + route/nexthop.c route/rt.c SRCS+= opt_inet.h opt_inet6.h opt_route.h EXPORT_SYMS= diff --git a/sys/netlink/route/route.c b/sys/netlink/route/rt.c similarity index 100% rename from sys/netlink/route/route.c rename to sys/netlink/route/rt.c