fix header files
[unix-history] / usr / src / sys / deprecated / netpup / pup.c
CommitLineData
fcfe450e 1/* pup.c 4.3 82/10/09 */
bb33353b
SL
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"
bb33353b 8#include "../net/af.h"
fcfe450e 9#include "../netpup/pup.h"
bb33353b
SL
10
11#ifdef PUP
12pup_hash(spup, hp)
13 struct sockaddr_pup *spup;
14 struct afhash *hp;
15{
fcfe450e 16
bb33353b
SL
17 hp->afh_nethash = spup->spup_addr.pp_net;
18 hp->afh_hosthash = spup->spup_addr.pp_host;
19 if (hp->afh_hosthash < 0)
20 hp->afh_hosthash = -hp->afh_hosthash;
21}
22
23pup_netmatch(spup1, spup2)
24 struct sockaddr_pup *spup1, *spup2;
25{
fcfe450e 26
bb33353b
SL
27 return (spup1->spup_addr.pp_net == spup2->spup_addr.pp_net);
28}
29#endif