xref: /csrg-svn/sys/deprecated/netpup/pup.c (revision 17056)
1*17056Sbloom /*	pup.c	6.2	84/08/29	*/
27160Ssam 
3*17056Sbloom #include "param.h"
4*17056Sbloom #include "mbuf.h"
5*17056Sbloom #include "protosw.h"
6*17056Sbloom #include "socket.h"
7*17056Sbloom #include "socketvar.h"
87160Ssam #include "../net/af.h"
98397Swnj #include "../netpup/pup.h"
107160Ssam 
117160Ssam #ifdef PUP
127160Ssam pup_hash(spup, hp)
137160Ssam 	struct sockaddr_pup *spup;
147160Ssam 	struct afhash *hp;
157160Ssam {
168397Swnj 
1712826Ssam 	hp->afh_nethash = spup->spup_net;
1812826Ssam 	hp->afh_hosthash = spup->spup_host;
197160Ssam }
207160Ssam 
217160Ssam pup_netmatch(spup1, spup2)
227160Ssam 	struct sockaddr_pup *spup1, *spup2;
237160Ssam {
248397Swnj 
2512826Ssam 	return (spup1->spup_net == spup2->spup_net);
267160Ssam }
277160Ssam #endif
28