/* if_loop.c 6.4 85/04/27 */
* Loopback interface driver for protocol testing and timing.
#include "../net/netisr.h"
#include "../net/route.h"
#include "../netns/ns_if.h"
#define LOHOST 1 /* can't be 0, that's broadcast */
int looutput(), loioctl();
register struct ifnet
*ifp
= &loif
;
register struct sockaddr_in
*sin
;
ifp
->if_output
= looutput
;
register struct ifqueue
*ifq
;
switch (dst
->sa_family
) {
printf("lo%d: can't handle af%d\n", ifp
->if_unit
,
* Process an ioctl request.
register struct ifnet
*ifp
;
* Everything else is done at a higher level.