Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rarpd Indicate on which interface a packet has been...



details:   https://anonhg.NetBSD.org/src/rev/fae79467d17c
branches:  trunk
changeset: 481988:fae79467d17c
user:      abs <abs%NetBSD.org@localhost>
date:      Fri Feb 11 11:25:23 2000 +0000

description:
Indicate on which interface a packet has been received when debugging

diffstat:

 usr.sbin/rarpd/rarpd.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r beaee2ffb19d -r fae79467d17c usr.sbin/rarpd/rarpd.c
--- a/usr.sbin/rarpd/rarpd.c    Fri Feb 11 10:43:36 2000 +0000
+++ b/usr.sbin/rarpd/rarpd.c    Fri Feb 11 11:25:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rarpd.c,v 1.35 2000/02/07 01:15:52 nathanw Exp $       */
+/*     $NetBSD: rarpd.c,v 1.36 2000/02/11 11:25:23 abs Exp $   */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -28,7 +28,7 @@
 #endif /* not lint */
 
 #ifndef lint
-__RCSID("$NetBSD: rarpd.c,v 1.35 2000/02/07 01:15:52 nathanw Exp $");
+__RCSID("$NetBSD: rarpd.c,v 1.36 2000/02/11 11:25:23 abs Exp $");
 #endif
 
 
@@ -398,9 +398,6 @@
        struct ether_arp *ap = (struct ether_arp *) (p + sizeof(*ep));
 #endif
 
-       if (dflag)
-               fprintf(stderr, "got a packet\n");
-
        if (len < sizeof(*ep) + sizeof(*ap)) {
                rarperr(NONFATAL, "truncated request");
                return 0;
@@ -525,6 +522,8 @@
 
                                caplen = bhp->bh_caplen;
                                hdrlen = bhp->bh_hdrlen;
+                               debug("received packet on %s", ii->ii_name);
+
                                if (rarp_check(bp + hdrlen, caplen))
                                        rarp_process(ii, bp + hdrlen);
                                bp += BPF_WORDALIGN(hdrlen + caplen);



Home | Main Index | Thread Index | Old Index