+
+#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 enlhoutput();
+
+/*
+ * Called by localnet interface to allow logical
+ * host interface to "attach". Nothing should ever
+ * be sent locally to this interface, it's purpose
+ * is simply to establish the host's arpanet address.
+ */
+enlhinit(addr)
+ int addr;
+{
+ register struct ifnet *ifp = &enlhif;
+ register 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;
+ ifp->if_net = sin->sin_addr.s_net;
+ ifp->if_flags = IFF_UP;
+ ifp->if_output = enlhoutput; /* should never be used */
+ if_attach(ifp);
+}
+
+enlhoutput(ifp, m0, dst)
+ struct ifnet *ifp;
+ struct mbuf *m0;
+ struct sockaddr *dst;
+{
+COUNT(ENLHOUTPUT);
+ ifp->if_oerrors++;
+ m_freem(m0);
+ return (0);
+}
+#endif