head 1.2; access; symbols pkgsrc-2026Q3:1.1.0.50 pkgsrc-2026Q3-base:1.1 pkgsrc-2026Q2:1.1.0.48 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.46 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.44 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.42 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.40 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.38 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.36 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.34 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.32 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.30 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.28 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.26 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.24 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.22 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.20 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.18 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.16 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.14 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.12 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.10 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.8 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.6 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.4 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.2 pkgsrc-2020Q3-base:1.1; locks; strict; comment @ * @; 1.2 date 2026.10.24.19.43.42; author drixter; state dead; branches; next 1.1; commitid 2BKtqoYMMiOjzL0H; 1.1 date 2020.07.07.08.48.25; author sborrill; state Exp; branches; next ; commitid IJJkxh2OK7tXR7fC; desc @@ 1.2 log @arping: Update to version 2.29 Notable changes: * Fix VLAN reply filtering when using -V. * Fix a bunch of pedantic warnings. Arping 2.28 Only change: Compile fix for non-Linux Arping 2.27 Notable changes: * Use Landlock, where available, to drop more privs Arping 2.26 Notable changes * Build fixes for Android Arping 2.25 Notable changes: * seccomp (default disabled): Allow some more syscalls * seccomp (default disabled): Move some checks from build time to runtime * Sane output and exit code when sending ARP replies * Work around libpcap bug when linking with musl Arping 2.24 Notable changes * Stricter and more correct number parsing and casting Arping 2.23 Notable changes: * Work around VLAN bug in libpcap 1.7-1.9.0 * Linux: Experimental support for seccomp (off by default) * Android: Don't attempt to use caps if header files missing * OpenBSD: try lo0, not just lo, for interface fallback * Made -P set target MAC address (-t) Arping 2.22 Only real changes are to support newer version of unit test framework. @ text @$NetBSD: patch-arping.c,v 1.1 2020/07/07 08:48:25 sborrill Exp $ Don't declare variables in a for statement. --- src/arping.c.orig 2020-07-07 09:38:15.158734218 +0100 +++ src/arping.c 2020-07-07 09:38:49.341138903 +0100 @@@@ -222,11 +222,12 @@@@ static ssize_t xgetrandom(void *buf, const size_t buflen, const unsigned int flags) { + int n; #ifdef HAVE_GETRANDOM return getrandom(buf, buflen, flags); #else char* p = buf; - for (int n = 0; n < buflen; n++) { + for (n = 0; n < buflen; n++) { p[n] = random() & 0xff; } return buflen; @@@@ -236,7 +237,8 @@@@ static long int xrandom() { const int maxtry = 10; - for (int c = 0; c < maxtry; c++) { + int c; + for (c = 0; c < maxtry; c++) { long int ret; const ssize_t rc = xgetrandom(&ret, sizeof(ret), 0); if (rc == -1) { @ 1.1 log @Add patch to avoid declaring variables in a for statement which reduces compiler compatibility for no benefit @ text @d1 1 a1 1 $NetBSD$ @