• Bug#265158: arpwatch: Should report the host running on in the From: he

    From Christoph Biedl@1:229/2 to All on Thu Aug 12 02:00:20 2004
    From: [email protected]

    This is a multi-part MIME message sent by reportbug.

    Package: arpwatch
    Version: 2.1a11-6.3
    Severity: wishlist

    Hello Peter,

    quite some time ago I've written a patch that adds the host name where
    arpwatch is running to the From: header. This is useful when running
    arpwatch on several hosts but reading all mails on just one computer.

    Example:
    | From: Arpwatch gateway <arpwatch@gateway>
    instead of just
    | From: Arpwatch <arpwatch@gateway>

    The localhost module was stolen from the hostname package.


    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7
    Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

    Versions of packages arpwatch depends on:
    ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libpcap0.7 0.7.2-7 System interface for user-level pa

    -- no debconf information

    diff --new-file -ur arpwatch-2.1a11.orig/Makefile.in arpwatch-2.1a11/Makefile.in
    --- arpwatch-2.1a11.orig/Makefile.in Fri Jan 23 17:32:39 2004
    +++ arpwatch-2.1a11/Makefile.in Fri Jan 23 17:39:53 2004
    @@ -67,7 +67,7 @@
    @rm -f $@
    $(CC) $(CFLAGS) -c $(srcdir)/$*.c

    -CSRC = db.c dns.c ec.c file.c intoa.c machdep.c util.c report.c setsignal.c +CSRC = db.c dns.c ec.c file.c intoa.c machdep.c util.c report.c localhost.c setsignal.c
    WSRC = arpwatch.c
    SSRC = arpsnmp.c
    GENSRC = version.c
    @@ -79,7 +79,7 @@
    OBJ = $(WSRC:.c=.o) $(SSRC:.c=.o) $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
    WOBJ = $(WSRC:.c=.o) $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
    SOBJ = $(SSRC:.c=.o) $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
    -HDR = arpwatch.h db.h dns.h ec.h file.h machdep.h report.h setsignal.h
    +HDR = arpwatch.h db.h dns.h ec.h file.h machdep.h report.h localhost.h setsignal.h

    TAGHDR = \
    /usr/include/net/if.h \
    diff --new-file -ur arpwatch-2.1a11.orig/localhost.c arpwatch-2.1a11/localhost.c
    --- arpwatch-2.1a11.orig/localhost.c Thu Jan 1 01:00:00 1970
    +++ arpwatch-2.1a11/localhost.c Fri Ja