Commit | Line | Data |
---|---|---|
3f84b4ee | 1 | /* pup_proto.c 6.3 84/08/29 */ |
79d6c953 | 2 | |
3f84b4ee JB |
3 | #include "param.h" |
4 | #include "socket.h" | |
5 | #include "protosw.h" | |
6 | #include "domain.h" | |
79d6c953 BJ |
7 | |
8 | /* | |
9 | * PUP-I protocol family: raw interface | |
10 | */ | |
11 | int rpup_output(); | |
c16b3ac2 | 12 | extern int raw_usrreq(); |
61d42116 | 13 | extern struct domain pupdomain; /* or at least forward */ |
79d6c953 BJ |
14 | |
15 | struct protosw pupsw[] = { | |
61d42116 | 16 | { SOCK_RAW, &pupdomain, 0, PR_ATOMIC|PR_ADDR, |
79d6c953 BJ |
17 | 0, rpup_output, 0, 0, |
18 | raw_usrreq, | |
19 | 0, 0, 0, 0, | |
20 | }, | |
21 | }; | |
22 | ||
23 | struct domain pupdomain = | |
61d42116 MK |
24 | { AF_PUP, "pup", 0, 0, 0, |
25 | pupsw, &pupsw[sizeof(pupsw)/sizeof(pupsw[0])] }; | |
2ac98bf8 SL |
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[] = { | |
61d42116 | 35 | { SOCK_RAW, &endomain, 0, PR_ATOMIC|PR_ADDR, |
2ac98bf8 SL |
36 | 0, raw_enoutput, 0, 0, |
37 | raw_usrreq, | |
38 | 0, 0, 0, 0, | |
39 | }, | |
40 | }; | |
41 | ||
42 | struct domain endomain = | |
61d42116 MK |
43 | { AF_ETHERLINK "ether", 0, 0, 0, |
44 | ensw, &ensw[sizeof(ensw)/sizeof(ensw[0])] }; | |
2ac98bf8 | 45 | #endif |