summaryrefslogtreecommitdiff
path: root/sys/dev/dec
diff options
context:
space:
mode:
authoris <is@NetBSD.org>1997-03-15 18:09:08 +0000
committeris <is@NetBSD.org>1997-03-15 18:09:08 +0000
commit07b064e02e8e7e44fc512c16bb738773fec298ce (patch)
tree56722e7d774212d1461b6179a5f5e6bb206bb330 /sys/dev/dec
parent9b9fb25893c487e5ab45d96afdef31da5e6a538d (diff)
New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will only support Ethernet. Tcpdump itself should be ok, but libpcap needs lot of work. For the detailed change history, look at the commit log entries for the is-newarp branch.
Diffstat (limited to 'sys/dev/dec')
-rw-r--r--sys/dev/dec/if_le_dec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/dec/if_le_dec.c b/sys/dev/dec/if_le_dec.c
index 50094f17fdb..599c41ba526 100644
--- a/sys/dev/dec/if_le_dec.c
+++ b/sys/dev/dec/if_le_dec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_le_dec.c,v 1.3 1996/10/13 01:38:38 christos Exp $ */
+/* $NetBSD: if_le_dec.c,v 1.4 1997/03/15 18:12:04 is Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@@ -49,10 +49,11 @@
#include <sys/device.h>
#include <net/if.h>
+#include <net/if_ether.h>
#ifdef INET
#include <netinet/in.h>
-#include <netinet/if_ether.h>
+#include <netinet/if_inarp.h>
#endif
#include <dev/ic/am7990reg.h>
@@ -87,8 +88,8 @@ dec_le_common_attach(sc, eap)
/*
* Get the ethernet address out of rom
*/
- for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++) {
- sc->sc_arpcom.ac_enaddr[i] = *eap;
+ for (i = 0; i < sizeof(sc->sc_enaddr); i++) {
+ sc->sc_enaddr[i] = *eap;
eap += 4;
}