From 2b8d82a0ee88a1bb40b74a9f4b07ff1e3c2e0305 Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Mon, 23 Nov 1981 23:38:30 -0800 Subject: [PATCH] band-aid to setup ifen SCCS-vsn: sys/vax/if/if_en.c 4.12 --- usr/src/sys/vax/if/if_en.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) -- 2.20.1