Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rarpd With RARP, MAC asks, and IP answers. Fixes PR...



details:   https://anonhg.NetBSD.org/src/rev/07d8d2491812
branches:  trunk
changeset: 499452:07d8d2491812
user:      is <is%NetBSD.org@localhost>
date:      Mon Nov 20 14:59:30 2000 +0000

description:
With RARP, MAC asks, and IP answers. Fixes PR 11330 by Thilo Manske, who
also provided the fix (modulo formatting).

diffstat:

 usr.sbin/rarpd/rarpd.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r abf6569721ed -r 07d8d2491812 usr.sbin/rarpd/rarpd.c
--- a/usr.sbin/rarpd/rarpd.c    Mon Nov 20 14:55:15 2000 +0000
+++ b/usr.sbin/rarpd/rarpd.c    Mon Nov 20 14:59:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rarpd.c,v 1.39 2000/10/11 20:23:55 is Exp $    */
+/*     $NetBSD: rarpd.c,v 1.40 2000/11/20 14:59:30 is 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.39 2000/10/11 20:23:55 is Exp $");
+__RCSID("$NetBSD: rarpd.c,v 1.40 2000/11/20 14:59:30 is Exp $");
 #endif
 
 
@@ -941,11 +941,11 @@
        len = sizeof(*ep) + sizeof(*ap);
 #endif
 
-       debug("%s asked; %s replied", hp->h_name,
-                           ether_ntoa((struct ether_addr *)ar_tha(ap)));
+       debug("%s asked; %s replied",
+           ether_ntoa((struct ether_addr *)ar_tha(ap)), hp->h_name);
        if (lflag)
-               syslog(LOG_INFO, "%s asked; %s replied", hp->h_name, 
-                   ether_ntoa((struct ether_addr *)ar_tha(ap)));
+               syslog(LOG_INFO, "%s asked; %s replied",
+                   ether_ntoa((struct ether_addr *)ar_tha(ap)), hp->h_name);
        n = write(ii->ii_fd, (char *) ep, len);
        if (n != len) {
                rarperr(NONFATAL, "write: only %d of %d bytes written", n, len);



Home | Main Index | Thread Index | Old Index