Files
Arquivotheca.AIX-4.1.3/bos/kernel/net/af.h
seta75D d6fe8fe829 Init
2021-10-11 22:19:34 -03:00

49 lines
1.2 KiB
C

/* @(#)60 1.6 src/bos/kernel/net/af.h, sockinc, bos411, 9428A410j 9/15/93 18:12:21 */
/*
* COMPONENT_NAME: (SOCKET) Socket services
*
* FUNCTIONS:
*
* ORIGINS: 26 27
*
* (C) COPYRIGHT International Business Machines Corp. 1988, 1989
* All Rights Reserved
* Licensed Materials - Property of IBM
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* Copyright (c) 1980, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
*/
/*
* Address family routines,
* used in handling generic sockaddr structures.
*
* Hash routine is called
* af_hash(addr, h);
* struct sockaddr *addr; struct afhash *h;
* producing an afhash structure for addr.
*
* Netmatch routine is called
* af_netmatch(addr1, addr2);
* where addr1 and addr2 are sockaddr *. Returns 1 if network
* values match, 0 otherwise.
*/
struct afswitch {
int (*af_hash)();
int (*af_netmatch)();
};
struct afhash {
u_int afh_hosthash;
u_int afh_nethash;
};
#ifdef _KERNEL
extern struct afswitch afswitch[];
#endif