| 1 | /* pup_proto.c 6.3 84/08/29 */ |
| 2 | |
| 3 | #include "param.h" |
| 4 | #include "socket.h" |
| 5 | #include "protosw.h" |
| 6 | #include "domain.h" |
| 7 | |
| 8 | /* |
| 9 | * PUP-I protocol family: raw interface |
| 10 | */ |
| 11 | int rpup_output(); |
| 12 | extern int raw_usrreq(); |
| 13 | extern struct domain pupdomain; /* or at least forward */ |
| 14 | |
| 15 | struct protosw pupsw[] = { |
| 16 | { SOCK_RAW, &pupdomain, 0, PR_ATOMIC|PR_ADDR, |
| 17 | 0, rpup_output, 0, 0, |
| 18 | raw_usrreq, |
| 19 | 0, 0, 0, 0, |
| 20 | }, |
| 21 | }; |
| 22 | |
| 23 | struct domain pupdomain = |
| 24 | { AF_PUP, "pup", 0, 0, 0, |
| 25 | pupsw, &pupsw[sizeof(pupsw)/sizeof(pupsw[0])] }; |
| 26 | |
| 27 | #ifdef notdef |
| 28 | /* |
| 29 | * 3 Mb/s Ethernet link protocol family: raw interface |
| 30 | */ |
| 31 | int raw_enoutput(); |
| 32 | extern int raw_usrreq(); |
| 33 | |
| 34 | struct protosw ensw[] = { |
| 35 | { SOCK_RAW, &endomain, 0, PR_ATOMIC|PR_ADDR, |
| 36 | 0, raw_enoutput, 0, 0, |
| 37 | raw_usrreq, |
| 38 | 0, 0, 0, 0, |
| 39 | }, |
| 40 | }; |
| 41 | |
| 42 | struct domain endomain = |
| 43 | { AF_ETHERLINK "ether", 0, 0, 0, |
| 44 | ensw, &ensw[sizeof(ensw)/sizeof(ensw[0])] }; |
| 45 | #endif |