|
|
1.1 ! root 1: /* pup.c 6.1 83/07/29 */ ! 2: ! 3: #include "../h/param.h" ! 4: #include "../h/mbuf.h" ! 5: #include "../h/protosw.h" ! 6: #include "../h/socket.h" ! 7: #include "../h/socketvar.h" ! 8: #include "../net/af.h" ! 9: #include "../netpup/pup.h" ! 10: ! 11: #ifdef PUP ! 12: pup_hash(spup, hp) ! 13: struct sockaddr_pup *spup; ! 14: struct afhash *hp; ! 15: { ! 16: ! 17: hp->afh_nethash = spup->spup_net; ! 18: hp->afh_hosthash = spup->spup_host; ! 19: } ! 20: ! 21: pup_netmatch(spup1, spup2) ! 22: struct sockaddr_pup *spup1, *spup2; ! 23: { ! 24: ! 25: return (spup1->spup_net == spup2->spup_net); ! 26: } ! 27: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.