| 1 | /* pup.c 4.4 82/10/17 */ |
| 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_addr.pp_net; |
| 18 | hp->afh_hosthash = spup->spup_addr.pp_host; |
| 19 | } |
| 20 | |
| 21 | pup_netmatch(spup1, spup2) |
| 22 | struct sockaddr_pup *spup1, *spup2; |
| 23 | { |
| 24 | |
| 25 | return (spup1->spup_addr.pp_net == spup2->spup_addr.pp_net); |
| 26 | } |
| 27 | #endif |