* Copyright (c) 1983, 1986 Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
* @(#)af.c 7.4 (Berkeley) 6/27/88
* Address family support routines
int null_hash(), null_netmatch();
{ null_hash, null_netmatch }
extern int inet_hash(), inet_netmatch();
{ inet_hash, inet_netmatch }
extern int ns_hash(), ns_netmatch();
struct afswitch afswitch
[AF_MAX
] = {
AFNULL
, AFNULL
, AFINET
, AFINET
, AFNULL
,
AFNULL
, AFNS
, AFNULL
, AFNULL
, AFNULL
,
AFNULL
, AFNULL
, AFNULL
, AFNULL
, AFNULL
,
AFNULL
, AFNULL
, /* through 16 */
register struct afswitch
*af
;
for (af
= afswitch
; af
< &afswitch
[AF_MAX
]; af
++)
if (af
->af_hash
== (int (*)())NULL
) {
af
->af_netmatch
= null_netmatch
;
hp
->afh_nethash
= hp
->afh_hosthash
= 0;
struct sockaddr
*a1
, *a2
;