From: Bill Joy Date: Tue, 24 Nov 1981 07:38:30 +0000 (-0800) Subject: band-aid to setup ifen X-Git-Tag: BSD-4_1_snap-Snapshot-Development~429 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/2b8d82a0ee88a1bb40b74a9f4b07ff1e3c2e0305 band-aid to setup ifen SCCS-vsn: sys/vax/if/if_en.c 4.12 --- diff --git a/usr/src/sys/vax/if/if_en.c b/usr/src/sys/vax/if/if_en.c index af9186792b..5fb39d2491 100644 --- a/usr/src/sys/vax/if/if_en.c +++ b/usr/src/sys/vax/if/if_en.c @@ -1,4 +1,4 @@ -/* if_en.c 4.11 81/11/20 */ +/* if_en.c 4.12 81/11/23 */ #include "en.h" /* @@ -10,6 +10,7 @@ #include "../h/mbuf.h" #include "../net/inet.h" #include "../net/inet_pcb.h" +#include "../net/if.h" #include "../net/inet_systm.h" #include "../net/imp.h" #include "../net/ip.h" @@ -78,7 +79,14 @@ enprobe(reg) enattach(ui) struct uba_device *ui; { + extern struct ifnet ifen; + ifen.if_mtu = 1024; + ifen.if_net = 10; + ifen.if_addr.s_host = LOCALHST; + ifen.if_addr.s_net = LOCALNET; + ifen.if_addr.s_imp = LOCALIMP; + n_lhost = ifen.if_addr; } eninit(unit)