-
-#if NIMP == 0 && NEC > 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 eclhif;
-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.
- */
-eclhinit(ecifp, addr)
- struct ifnet *ecifp;
- int addr;
-{
- register struct ifnet *ifp = &eclhif;
- register struct sockaddr_in *sin;
-
-COUNT(ECLHINIT);
- ifp->if_name = "lh";
- ifp->if_mtu = ECMTU;
- sin = (struct sockaddr_in *)&ifp->if_addr;
- sin->sin_family = AF_INET;
- sin->sin_addr.s_addr = addr;
- sin->sin_addr.s_lh = ecifp->if_host[0];
- ifp->if_net = sin->sin_addr.s_net;
- ifp->if_dstaddr = ifp->if_addr;
- ifp->if_flags = IFF_UP|IFF_POINTOPOINT;
- ifp->if_output = looutput;
- if_attach(ifp);
- rtinit(&ifp->if_addr, &ifp->if_addr, RTF_UP|RTF_DIRECT|RTF_HOST);
-}
-#endif