+
+#if NIMP == 0 && NEN > 0
+/*
+ * Logical host interface driver.
+ * Allows host to appear as an ARPAnet
+ * logical host. Must also have routing
+ * table entry set up to forward packets
+ * to appropriate gateway on localnet.
+ */
+
+struct ifnet enlhif;
+int looutput();
+
+/*
+ * Called by localnet interface to allow logical
+ * host interface to "attach", it's purpose
+ * is simply to establish the host's arpanet address.
+ */
+enlhinit(esifp, addr)
+ struct ifnet *esifp;
+ int addr;
+{
+ register struct ifnet *ifp = &enlhif;
+ struct sockaddr_in *sin;
+
+COUNT(ENLHINIT);
+ ifp->if_name = "lh";
+ ifp->if_mtu = ENMTU;
+ sin = (struct sockaddr_in *)&ifp->if_addr;
+ sin->sin_family = AF_INET;
+ sin->sin_addr.s_addr = addr;
+ sin->sin_addr.s_lh = esifp->if_host[0];
+ ifp->if_net = sin->sin_addr.s_net;
+ ifp->if_flags = IFF_UP|IFF_POINTOPOINT;
+ ifp->if_dstaddr = ifp->if_addr;
+ ifp->if_output = looutput;
+ if_attach(ifp);
+ rtinit(&ifp->if_addr, &ifp->if_addr, RTF_UP|RTF_DIRECT|RTF_HOST);
+}
+#endif