From nobody Sun Mar 15 05:37:50 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 4fYRnw0BDSz6V7kB for ; Sun, 15 Mar 2026 05:37:56 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fYRnv5Czbz4J7j for ; Sun, 15 Mar 2026 05:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773553075; 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=Cb687AUz0riuoh/5y3GdP1wD1tQpfy8g3IXEDHxRsSw=; b=XQj32SdjuTEsZJ9NqUDSY1H53iudexV7RYTCKUxxzjX4F37SorVZ21wHQ6eMjxyJPOKOQJ +iE8wDiAZT74lMME6j80p+GwmB7NEbhlHe51bOenvGVhn1m0mIndSQO34/zLDd0CrHwK0u Q1k70Twdr0adziP5F02Ft4JWVj3nkzZDyKrvas7EJFdutOT4O/Ha7RbduqSX3/mjY6EYDE QUJnzveSAMzhpTc/mGQ0Je6cp0oVJypeu2+3/+LaOCRnXbl9EdRwEObij2oIkHC1s5B9uy fwBRPGWb1kVbLnKsExERlgbFOgbTEFm/Jn+YNQTETHdoi/t/+AcxvYJ+20Wnkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773553075; a=rsa-sha256; cv=none; b=R1NEdDZ9kbeWWncytLgHYsb6BJN4OrHsZ8fZoqYJJ6t0MjxyI68NBA5j4qTRheH9Kfnr9N 5LjTI5rdQSF84ZenOZlG/vXf9Ya4QTr5uTq17a+LePFL5iINuxKVI2toYRgf3j+AXrE4ek foRTiE44qsJ9Qi9/NtHPjZt4PoL8J0RR0wTegA6kAy+XosoJaF9i4Ql2Gq2kzFMH55eDaO LfQA8dasK6YABT+ZEmI2aJBUzRo70QuaTEgWYYU/iIkVI/OPEOwNcVdENSyiejbvCtVVUb /Ln1fOK3yrjWwLwvKlHjHYjo+BdC3y4dvDfcAWUtiCXMrukRm8xRMCxmoDCcmw== 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=1773553075; 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=Cb687AUz0riuoh/5y3GdP1wD1tQpfy8g3IXEDHxRsSw=; b=yXDD38/syiRU6SIDCJPMT1Ww3SJMXvPloc4YTVGcfwRQKtK/pFMJCgejXGe1qmUPfEJblm 9vImCk5Z6l1QuidO51hWi8KolhCHmCzyApgLmtio08qRh/yPkgjq8QTYfiSt4qCGxd747R mMrpRelS0L0kPJ4KwMP/10MWKVbz4njQO1Ehg6KLIvQ5CBecot41r7VikN9a6lKaD/Avys O6eVIuw84tLkIeJlwBVwfnnECHW0bqNRtQpMnnoQh7i9AfHeonJmUR8bpWVna699Q8guGG 5NvY/y1NGROtqa/lT53n3pzNQAgf4HSPr5Js3eaNJq3odNbczmbA3DC4HnSvow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fYRnv3tHBzbxM for ; Sun, 15 Mar 2026 05:37:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e97a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 15 Mar 2026 05:37:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Joseph Mingrone Subject: git: a0b3ef195260 - main - ipfwpcap: Fix build after libpcap 1.10.6 update 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a0b3ef1952603ebf0307ca723b03e5a71598dd5a Auto-Submitted: auto-generated Date: Sun, 15 Mar 2026 05:37:50 +0000 Message-Id: <69b645ae.1e97a.46de4c5f@gitrepo.freebsd.org> The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/src/commit/?id=a0b3ef1952603ebf0307ca723b03e5a71598dd5a commit a0b3ef1952603ebf0307ca723b03e5a71598dd5a Author: Joseph Mingrone AuthorDate: 2026-03-15 05:32:01 +0000 Commit: Joseph Mingrone CommitDate: 2026-03-15 05:32:01 +0000 ipfwpcap: Fix build after libpcap 1.10.6 update pcap-int.h now references SIZEOF_TIME_T from libpcap's config.h, which is not available to consumers of the internal header outside of the libpcap build. Switch to the public header and replace the direct FILE* casts and ferror()/fflush() calls with pcap_dump_flush(3), which is the correct public API for flushing a pcap dump file. Sponsored by: The FreeBSD Foundation --- usr.sbin/ipfwpcap/ipfwpcap.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/usr.sbin/ipfwpcap/ipfwpcap.c b/usr.sbin/ipfwpcap/ipfwpcap.c index a9cead99bd07..2032387aaa0b 100644 --- a/usr.sbin/ipfwpcap/ipfwpcap.c +++ b/usr.sbin/ipfwpcap/ipfwpcap.c @@ -41,11 +41,7 @@ #include -/* XXX normally defined in config.h */ -#define HAVE_STRLCPY 1 -#define HAVE_SNPRINTF 1 -#define HAVE_VSNPRINTF 1 -#include /* see pcap(3) and /usr/src/contrib/libpcap/. */ +#include #ifdef IP_MAXPACKET #define BUFMAX IP_MAXPACKET @@ -295,8 +291,7 @@ if (debug) fprintf(stderr, " sendto(%d) = %d\n", sd, r); (void) gettimeofday(&(phd.ts), NULL); phd.caplen = phd.len = nr; pcap_dump((u_char *)dp, &phd, buf); - if (ferror((FILE *)dp)) { perror(dumpf); quit(14); } - (void) fflush((FILE *)dp); + if (pcap_dump_flush(dp) == -1) { pcap_perror(p, dumpf); quit(14); } } quit(0);