|
|
1.1 ! root 1: /* pup_proto.c 6.1 83/07/29 */ ! 2: ! 3: #include "../h/param.h" ! 4: #include "../h/socket.h" ! 5: #include "../h/protosw.h" ! 6: #include "../h/domain.h" ! 7: ! 8: /* ! 9: * PUP-I protocol family: raw interface ! 10: */ ! 11: int rpup_output(); ! 12: extern int raw_usrreq(); ! 13: ! 14: struct protosw pupsw[] = { ! 15: { SOCK_RAW, PF_PUP, 0, PR_ATOMIC|PR_ADDR, ! 16: 0, rpup_output, 0, 0, ! 17: raw_usrreq, ! 18: 0, 0, 0, 0, ! 19: }, ! 20: }; ! 21: ! 22: struct domain pupdomain = ! 23: { AF_PUP, "pup", pupsw, &pupsw[sizeof(pupsw)/sizeof(pupsw[0])] }; ! 24: ! 25: #ifdef notdef ! 26: /* ! 27: * 3 Mb/s Ethernet link protocol family: raw interface ! 28: */ ! 29: int raw_enoutput(); ! 30: extern int raw_usrreq(); ! 31: ! 32: struct protosw ensw[] = { ! 33: { SOCK_RAW, PF_ETHERLINK, 0, PR_ATOMIC|PR_ADDR, ! 34: 0, raw_enoutput, 0, 0, ! 35: raw_usrreq, ! 36: 0, 0, 0, 0, ! 37: }, ! 38: }; ! 39: ! 40: struct domain endomain = ! 41: { AF_ETHERLINK "ether", ensw, &ensw[sizeof(ensw)/sizeof(ensw[0])] }; ! 42: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.