|
|
BSD 4.2
/* af.c 6.1 83/07/29 */
#include "../h/param.h"
#include "../h/mbuf.h"
#include "../h/protosw.h"
#include "../h/socket.h"
#include "../h/socketvar.h"
#include "../net/af.h"
/*
* Address family support routines
*/
int null_hash(), null_netmatch();
#define AFNULL \
{ null_hash, null_netmatch }
#ifdef INET
extern int inet_hash(), inet_netmatch();
#define AFINET \
{ inet_hash, inet_netmatch }
#else
#define AFINET AFNULL
#endif
#ifdef PUP
extern int pup_hash(), pup_netmatch();
#define AFPUP \
{ pup_hash, pup_netmatch }
#else
#define AFPUP AFNULL
#endif
struct afswitch afswitch[AF_MAX] = {
AFNULL, AFNULL, AFINET, AFINET, AFPUP,
AFNULL, AFNULL, AFNULL, AFNULL, AFNULL,
AFNULL
};
/*ARGSUSED*/
null_hash(addr, hp)
struct sockaddr *addr;
struct afhash *hp;
{
hp->afh_nethash = hp->afh_hosthash = 0;
}
/*ARGSUSED*/
null_netmatch(a1, a2)
struct sockaddr *a1, *a2;
{
return (0);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.