From nobody Tue Oct 27 20:56:22 2026 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 4jDjTR6hx2z6xKGk for ; Tue, 27 Oct 2026 20:56:27 +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 4jDjTR68YRz4JRC for ; Tue, 27 Oct 2026 20:56:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793134587; 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=wZpcdtayWrptgveJbIpi4JpdCFYXVvVL+y8K6gufwPaht3f0fRCRLKNyICyicOekPgg4PP inn4yrwku25vA5RwvbWIZDD1VSxq/cHaSSvqUnShhSDadhu25vSUHyvebZ8wD3WDnQToib Eiyc3SBeLsn6rbX+UcwZguz2UvB4HGYFGPUeGEOevYCJnIkGZkvdFNeOCI7OtXLPqYFGz3 x3MsQ9DxPWlQRniHvbtqh3n6nP9OvqqKLwqSRMZKzaQdQoVuLZyTIDLgK8f11QLr0AEDmQ axXg1sDJAG944CijXcioRvse/L18zmasFjGBZ9qhoof+/Vbq4V/nKoMv+7ADNQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793134587; b=s/CwIyrJw4FgXhnga5p2Sm4+xz883fA0q07xC0QSrgSNhAOgf27kdGE36ukQXu4hUKyuh9 lr8oDrHN2zsFL9b2XzqZ+JFdr3leLrPFSBx6o7wPs4dUDvQcQdfT4+B28uGaQX18++vAKU VwlPom/W3KJRSPF2uHH74Oq2Am6hpHRmVbsKkfpkfUl4tJcVaJUr8SHVP8SsEkrwk0gHq/ KYpFUrUayLlIII3NDVDhG2Q2GZuditN6G3afSnFSMAe48s6D8SuYUrQ6sltYLvMZS/k7FG WsnWaMRkC+amJ59SnDFzxZSMrC3EvJqjNKptZYXWnaMLp0GOBJvT4Kmceh6WKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793134587; 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=EbtXm0Om7Mq69IDlZ/YxEfrJFiJnD6W85ndTmYhon248ZgFcy4oj5yq5lP8bwbl6d0abEe Gyzb8XvGCBudm969JgF1SVZH6BBbKXMSKC7rJUl+g8jMobuWnQbrTXFq71ckzyNAbqOezo +/jZUauI+b3LPd3F/G1GyTNuOJBPfs5QDHRII2Fm3TaatqqXigVTo4x4tOWtWFrKZ5qSjE 3tQsBlFXnE7ck2Hq+Egg/W64CLT+Ssy2AC9noUnphTegDI7jkOKyz6xIKVzIDjHj77+Igv eIjMtRSlYUKZo2U72MrAQGpzK0uXzsXqliD2/YHky6pPIQlKHtUBu5r8se6zbw== 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 4jDjTR5qjyzdvW for ; Tue, 27 Oct 2026 20:56:27 +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-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches 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);