1*16986Skarels /* pup_proto.c 6.2 84/08/21 */ 27617Sroot 37617Sroot #include "../h/param.h" 47617Sroot #include "../h/socket.h" 57617Sroot #include "../h/protosw.h" 67621Sroot #include "../h/domain.h" 77617Sroot 87617Sroot /* 97617Sroot * PUP-I protocol family: raw interface 107617Sroot */ 117617Sroot int rpup_output(); 127621Sroot extern int raw_usrreq(); 13*16986Skarels extern struct domain pupdomain; /* or at least forward */ 147617Sroot 157617Sroot struct protosw pupsw[] = { 16*16986Skarels { SOCK_RAW, &pupdomain, 0, PR_ATOMIC|PR_ADDR, 177617Sroot 0, rpup_output, 0, 0, 187617Sroot raw_usrreq, 197617Sroot 0, 0, 0, 0, 207617Sroot }, 217617Sroot }; 227617Sroot 237617Sroot struct domain pupdomain = 24*16986Skarels { AF_PUP, "pup", 0, 0, 0, 25*16986Skarels pupsw, &pupsw[sizeof(pupsw)/sizeof(pupsw[0])] }; 2613457Ssam 2713457Ssam #ifdef notdef 2813457Ssam /* 2913457Ssam * 3 Mb/s Ethernet link protocol family: raw interface 3013457Ssam */ 3113457Ssam int raw_enoutput(); 3213457Ssam extern int raw_usrreq(); 3313457Ssam 3413457Ssam struct protosw ensw[] = { 35*16986Skarels { SOCK_RAW, &endomain, 0, PR_ATOMIC|PR_ADDR, 3613457Ssam 0, raw_enoutput, 0, 0, 3713457Ssam raw_usrreq, 3813457Ssam 0, 0, 0, 0, 3913457Ssam }, 4013457Ssam }; 4113457Ssam 4213457Ssam struct domain endomain = 43*16986Skarels { AF_ETHERLINK "ether", 0, 0, 0, 44*16986Skarels ensw, &ensw[sizeof(ensw)/sizeof(ensw[0])] }; 4513457Ssam #endif 46