From nobody Tue Oct 27 20:56:22 2026 X-Original-To: dev-commits-src-main@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 4jDjTL6kNXz6xKGh for ; Tue, 27 Oct 2026 20:56:22 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jDjTL68wTz4JJK for ; Tue, 27 Oct 2026 20:56:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793134582; 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=xBblZKrDC1R/xTMb5nakvhUgb+BbmjUIE7foysyN+gs=; b=Tieb3orm9qsfeOIPzq0md0FRm3wrfyku8MXgCRs0K05niWN544CFs7E69eZjZNtCX2zMBX 6X297toQAHP51LhMRtVQbhU3q6j8i7qMFj8CdWzraM2zAvL04p8816rA/0UEW37nvK0UvA 1Vh7nJmEQ+F9GjgQ0OUqhPsDJXV75eBFYV5HTTSngKdktz24AD1o/50Q7NXBOscNteQIaC 80jnDLqGOM50N+SgQDU+FJmXNZq+u5xRYX0JxerkQpToyeaQGaiA8p8uVIQOBG2Wr0qus3 YOLXfTIv9sjugbZSpKn1pfHNKPaH/hgUHIQ5sdgXs5IBa32P+nZ+8hc2EFTHyg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793134582; b=dNB+yiHtdF9tCzafhHSZv4UEsTw93Kt1cYsuZufcBKMA7bty4MaXVSVZmii+uuNn1f60zk uMzUdHIU6u0FOYWJXeYqMRRycc8sn9PfHtlDSinTMb+ZTV0FygdFQerIiCx+aa9q/qAEow xq80hIDiMHownGTKmwCepCpKRbsjLpAyWMlSwpuStm56RtSUQgDLOBAENCnm7eMbNMYKOk F2GirjNCS5pShwVQ7P/XL9U+Z3ZOIGPcpNNIsX0w84+EIT1ehmu/DtHvjK5GdWvwO58k6T V8fheUbQ+OY1pENhYwcc9tUZvI+DKFof7n1GASSq8fZidBoLs5iYAQwxBijYGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793134582; 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=xBblZKrDC1R/xTMb5nakvhUgb+BbmjUIE7foysyN+gs=; b=RdyqbTlV52DYbtbtqDxjdEJ2o9rIj58fhZZFdZ3f+4eskiAn0m4voay8Xc52Huq28sAPwN DVUglEbh736FJWkLBXyEEi2zCAmI7qngLE/9b37xhFIp8MRr98kq3kujiRoSt0sAwsCUu9 tgaGwxvr7rJ167R3MzlfFMugIrJAvuK1FiA0kQYFdE3FeC3dQHxL0h6EUscrUHOSxL48AP 81Q9q2KyZVp3XCqUVHdNI5AR7dsvC/HiRt3SKhj0DHQPVlANqtZnGQPoNJRGbvtxBja8KI VWJdRa4s3mCZRSDcoPugceOt95Z4z/LaoEir2idgubdyP2aa4Jde2uJtbW9cPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jDjTL5ppXzf5d for ; Tue, 27 Oct 2026 20:56:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1d282 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 27 Oct 2026 20:56:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: f2d4370fbbe6 - main - ipfw: declare the ipfw_nat module List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f2d4370fbbe6a24b663a4151e3a462e8e2c306c6 Auto-Submitted: auto-generated Date: Tue, 27 Oct 2026 20:56:22 +0000 Message-Id: <6ae10ff6.1d282.5f45f3d7@gitrepo.freebsd.org> The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=f2d4370fbbe6a24b663a4151e3a462e8e2c306c6 commit f2d4370fbbe6a24b663a4151e3a462e8e2c306c6 Author: Gleb Smirnoff AuthorDate: 2026-10-27 20:53:26 +0000 Commit: Gleb Smirnoff CommitDate: 2026-10-27 20:53:26 +0000 ipfw: declare the ipfw_nat module The module declaration is necessary for 'kldstat -m' to see it, and the rc(8) uses that to detect presence of ipfw_nat. NB: the module(9) KPI lacks a way to declare a module without providing an empty handler and no SYSINITs. Reported by: ambrisko Fixes: 9bcc1e97dda8e926483b81874884211bbe4f36e9 --- sys/netpfil/ipfw/ip_fw_nat.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c index 1131cd75afbd..ab624ce7b430 100644 --- a/sys/netpfil/ipfw/ip_fw_nat.c +++ b/sys/netpfil/ipfw/ip_fw_nat.c @@ -1194,6 +1194,24 @@ ipfw_nat_destroy(void *dummy __unused) ipfw_nat_get_log_ptr = NULL; } +static int +ipfw_nat_modevent(module_t mod, int type, void *unused) +{ + switch (type) { + case MOD_LOAD: + case MOD_UNLOAD: + return (0); + default: + return (EOPNOTSUPP); + } +} + +static moduledata_t ipfw_nat_mod = { + .name = "ipfw_nat", + .evhand = ipfw_nat_modevent, +}; + +DECLARE_MODULE(ipfw_nat, ipfw_nat_mod, SI_SUB_PROTO_FIREWALL, SI_ORDER_SECOND); MODULE_DEPEND(ipfw_nat, libalias, 1, 1, 1); MODULE_DEPEND(ipfw_nat, ipfw, 3, 3, 3); MODULE_VERSION(ipfw_nat, 1);