Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package arpwatch for openSUSE:Factory checked in at 2022-12-12 17:40:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/arpwatch (Old) and /work/SRC/openSUSE:Factory/.arpwatch.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "arpwatch" Mon Dec 12 17:40:31 2022 rev:40 rq:1042415 version:3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/arpwatch/arpwatch.changes 2022-04-27 21:42:26.321093395 +0200 +++ /work/SRC/openSUSE:Factory/.arpwatch.new.1835/arpwatch.changes 2022-12-12 17:42:28.582055070 +0100 @@ -1,0 +2,6 @@ +Tue Dec 6 12:34:56 UTC 2022 - o...@aepfle.de + +- Enable loading of ethercodes.dat with arpwatch.ETHERCODES.patch +- Log useless 0-source only once for each MAC + +------------------------------------------------------------------- New: ---- arpwatch.ETHERCODES.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ arpwatch.spec ++++++ --- /var/tmp/diff_new_pack.btRP7T/_old 2022-12-12 17:42:29.074057837 +0100 +++ /var/tmp/diff_new_pack.btRP7T/_new 2022-12-12 17:42:29.078057859 +0100 @@ -33,6 +33,7 @@ Source12: arpwatch.service Patch0: arpwatch-2.1a11-chrootbuild.diff Patch1: arpwatch-no-source-zero.dif +Patch2: arpwatch.ETHERCODES.patch Patch5: arpwatch-2.1a11-drop-privs-manpage.dif Patch6: arpwatch-2.1a11-drop-privs.dif # PATCH-Fix-Upstream -- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625796#20 -- seife+...@b1-systems.com @@ -65,7 +66,10 @@ %build %configure -%make_build ARPDIR=%{_localstatedir}/lib/arpwatch +%make_build \ + ARPDIR=%{_localstatedir}/lib/arpwatch \ + ETHERCODES=%{_datadir}/arpwatch/ethercodes.dat \ + %nil %install mkdir -p \ ++++++ arpwatch-no-source-zero.dif ++++++ --- /var/tmp/diff_new_pack.btRP7T/_old 2022-12-12 17:42:29.134058174 +0100 +++ /var/tmp/diff_new_pack.btRP7T/_new 2022-12-12 17:42:29.138058197 +0100 @@ -1,14 +1,16 @@ -Index: arpwatch-3.1/arpwatch.c -=================================================================== ---- arpwatch-3.1.orig/arpwatch.c -+++ arpwatch-3.1/arpwatch.c -@@ -481,6 +481,12 @@ process_ether(u_char *u, const struct pc +--- a/arpwatch.c ++++ b/arpwatch.c +@@ -481,6 +481,16 @@ process_ether(u_char *u, const struct pc if (toskip(sia)) return; + /* dhcp broadcasts source from 0.0.0.0 - ignore */ + if (sia == 0) { -+ dosyslog(LOG_INFO, "0-source", sia, sea, sha); ++ static u_char old_sea[6]; ++ if (memcmp(old_sea, sea, 6)) { ++ dosyslog(LOG_INFO, "0-source", sia, sea, sha); ++ memcpy(old_sea, sea, 6); ++ } + return; + } + ++++++ arpwatch.ETHERCODES.patch ++++++ --- a/Makefile.in +++ b/Makefile.in @@ -55,7 +55,7 @@ ALL = $(PROG) arpsnmp CC = @CC@ CCOPT = @V_CCOPT@ INCLS = -I. @V_INCLS@ -DEFS = @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\" +DEFS = @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\" -DETHERCODES=\"$(ETHERCODES)\" # Standard CFLAGS CFLAGS = @CFLAGS@ @CPPFLAGS@ $(CCOPT) $(DEFS) $(INCLS) --- a/arpwatch.h +++ b/arpwatch.h @@ -1,7 +1,9 @@ /* @(#) $Id: arpwatch.h 1197 2012-11-03 00:35:36Z leres $ (LBL) */ #define ARPFILE "arp.dat" +#ifndef ETHERCODES #define ETHERCODES "ethercodes.dat" +#endif #define CHECKPOINT (15*60) /* Checkpoint time in seconds */ #ifdef ETHER_HEADER_HAS_EA ++++++ arpwatch@.service ++++++ --- /var/tmp/diff_new_pack.btRP7T/_old 2022-12-12 17:42:29.190058489 +0100 +++ /var/tmp/diff_new_pack.btRP7T/_new 2022-12-12 17:42:29.194058512 +0100 @@ -1,3 +1,4 @@ +# vim: syntax=systemd [Unit] Description=Arpwatch daemon which keeps track of ethernet/ip address pairings After=network.target