summaryrefslogtreecommitdiff
path: root/pfinet/ethernet.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-10-19 02:27:19 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-10-19 02:27:19 +0000
commitc2fbae5bac510f01abbe4da06f11bfb847119ecc (patch)
tree6639cbdb5c3ac8cf0a3f7b6d49711a1f3555bf25 /pfinet/ethernet.c
parent3114bbcb0cf91390266e2e1e59d233a5ee293243 (diff)
Formerly ethernet.c.~9~
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r--pfinet/ethernet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c
index 3a42097f..77fd5a0e 100644
--- a/pfinet/ethernet.c
+++ b/pfinet/ethernet.c
@@ -184,6 +184,8 @@ setup_ethernet_device (void)
ether_dev.pa_addr = ether_dev.pa_brdaddr = ether_dev.pa_mask = 0;
ether_dev.pa_alen = sizeof (unsigned long);
+ ethernet_open (&ether_dev);
+
/* Fetch hardware information */
count = NET_STATUS_COUNT;
device_get_status (ether_port, NET_STATUS, (dev_status_t) &netstat, &count);
@@ -193,7 +195,7 @@ setup_ethernet_device (void)
assert (netstat.address_size == ETH_ALEN);
count = 2;
- assert (count * sizeof (int) <= ETH_ALEN);
+ assert (count * sizeof (int) >= ETH_ALEN);
device_get_status (ether_port, NET_ADDRESS, net_address, &count);
net_address[0] = ntohl (net_address[0]);
net_address[1] = ntohl (net_address[1]);