From nobody Fri May 29 22:18:55 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 4gRySN41QVz6gBkJ for ; Fri, 29 May 2026 22:19:00 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRySN2BTHz4JV0 for ; Fri, 29 May 2026 22:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780093140; 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=iuUQllQ5VuvlW8KtWK+RmjUoh7E4eQdLaoovIOXJVYc=; b=rRlE1Ws4jQpQB5TRMJiRVP6YZsZbyEPf6cXCqRM8cK00S4etQ/GNNZA8KOgw9Q0wAteshl 6uhGCAq8Z5WX+effE3LD4TCEtMt+hBBFCh2Y2JdIACp6566NJEnEyWLYFJLvf6BvtpImHP I3vmGMvW8hneD6Xy/jC5cZnwbiNzqUnh+7ErUeqCGlio4QIcq92d8XIttWwgA+uFxzsjQf d4jFU5ELWBuc3o0qiLT5kMqMjW1MYSFz19Gw9LfLkpbpo2uoauuqDN1fdDCJR6JA/nG2Yw DxtKK1W/NghtgaijyIJn0kAE+DgrakyZfQ98gGXCV1zFrLcO4y9wMNkvpURyTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780093140; a=rsa-sha256; cv=none; b=uafKtAzeG4k0FNmHeMLA7Xh1w89gNfYKbziNvdfW8VQpiiSQECQwt9G9jghEYPHWjCN5Xs l5bkudB2KByXA1qOvjXeQMhKXoI3Duej3pqXqcdYoaV9ePdorBBqz4xkwtRvhFFwDGb1Vm JsG8bKCRFB7NCxkPGrCnYwk7+t8bTJJkri9w7TkrarLUfwE78rkXz4y5eKViirxhgptzVk uaqGSIoI6wDkNg/fXMyc71pbR8iAvcdRPlxLgbEd8cO0rFVOTNgP1+ed5+ZLEPDcAIxLYn MMNEX5Nuwkz1ewPf5eUT+tZ8HabgXae86mLzQrbb3OHl8sJBZW/uwE77xcBTUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780093140; 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=iuUQllQ5VuvlW8KtWK+RmjUoh7E4eQdLaoovIOXJVYc=; b=tDXcgqQ1VUscgYt5D04hgD/Om2gTI3IgXUnQ7wAOfGZejgSTMYaFy5NbWWfIODXfxx+dw6 gmUdc/ZeSD98cE1uerMobHgTyS3J51DMFip5ZYU1/HEfnxxCN/hR6uISx0lP49126zwa4d u5ItpQgCIPyhqI2NMA9UgrvmZ756jsXbJsYZxaKVCaGGzUXLmAVpDe0n9pZHpFkizmS7Kq tDRp+G7CSFYlrcWWyuhNbip5vXNLD/Sz36En78rWllZ9l8uohFzjud7yCSx4BoCLRd3/XA 43ZbP/1xu7EFT7erR9jtB5fQmSC+CzcfQ5nrI7hhmjdwLBZweSWOPwFT9LnXVw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gRySN1V0MzsSH for ; Fri, 29 May 2026 22:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b5de by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 29 May 2026 22:18:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 32a7ba251acb - main - route: Fix `flush` w/o specified address family 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 32a7ba251acbfb442665eed40fb4f48c8f2bd710 Auto-Submitted: auto-generated Date: Fri, 29 May 2026 22:18:55 +0000 Message-Id: <6a1a10cf.3b5de.2223573f@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=32a7ba251acbfb442665eed40fb4f48c8f2bd710 commit 32a7ba251acbfb442665eed40fb4f48c8f2bd710 Author: Ed Maste AuthorDate: 2026-05-29 16:44:09 +0000 Commit: Ed Maste CommitDate: 2026-05-29 22:18:20 +0000 route: Fix `flush` w/o specified address family PR: 291867 Reported by: gavin Reviewed by: pouria, melifaro Sponsored by: The FreeBSD Foundation Fixes: c597432e2297 ("route(8): convert to netlink") Differential Revision: https://reviews.freebsd.org/D57336 --- sbin/route/route_netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/route/route_netlink.c b/sbin/route/route_netlink.c index 051662688047..0d4420767082 100644 --- a/sbin/route/route_netlink.c +++ b/sbin/route/route_netlink.c @@ -950,7 +950,8 @@ flushroutes_fib_nl(int fib, int af) struct snl_msg_info attrs = {}; print_nlmsg(&h, hdr, &attrs); } - if (r.rta_table != (uint32_t)fib || r.rtm_family != af) + if (r.rta_table != (uint32_t)fib || + (af != AF_UNSPEC && r.rtm_family != af)) continue; if ((r.rta_rtflags & RTF_GATEWAY) == 0) continue;