1 /* pup.c 6.2 84/08/29 */ 2 3 #include "param.h" 4 #include "mbuf.h" 5 #include "protosw.h" 6 #include "socket.h" 7 #include "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 28