This commit is contained in:
christos 2008-03-25 22:54:54 +00:00
parent 8910b668ba
commit 8f0af7be4b
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: arp.c,v 1.29 2008/03/25 21:23:50 christos Exp $ */
/* $NetBSD: arp.c,v 1.30 2008/03/25 22:54:54 christos Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@ -163,6 +163,7 @@ arpwhohas(struct iodesc *d, struct in_addr addr)
inet_ntoa(addr), ether_sprintf(ah->arp_sha));
}
#endif
/*###166 [cc] warning: statement with no effect%%%*/
MACPY(ah->arp_sha, al->ea);
++arp_num;

View File

@ -1,4 +1,4 @@
/* $NetBSD: net.h,v 1.21 2008/03/25 21:23:50 christos Exp $ */
/* $NetBSD: net.h,v 1.22 2008/03/25 22:54:54 christos Exp $ */
/*
* Copyright (c) 1993 Adam Glass
@ -54,7 +54,7 @@
/* Returns true if n_long's on the same net */
#define SAMENET(a1, a2, m) ((a1.s_addr & m) == (a2.s_addr & m))
#define MACPY(s, d) memcpy(d, s, d, 6)
#define MACPY(s, d) memcpy(d, s, 6)
#define MAXTMO 20 /* seconds */
#define MINTMO 2 /* seconds */