util-warnings-cleanup-20010606
[openafs.git] / src / util / netutils.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * RCSID("$Header")
12  */
13
14 #ifndef TRANSARC_NETUTILS_H
15 #define TRANSARC_NETUTILS_H
16
17 /* Network and IP address utility and file parsing functions */
18
19 extern int parseNetRestrictFile(
20                                 afs_uint32 outAddrs[], 
21                                 afs_uint32 mask[], 
22                                 afs_uint32 mtu[],
23                                 afs_uint32 maxAddrs,
24                                 afs_uint32 *nAddrs, 
25                                 char reason[], 
26                                 const char *fileName
27                                 );
28
29 extern int filterAddrs(
30                        afs_uint32 addr1[],afs_uint32 addr2[],
31                        afs_uint32  mask1[], afs_uint32 mask2[],
32                        afs_uint32  mtu1[], afs_uint32 mtu2[]
33                        );
34
35 extern int parseNetFiles(
36                          afs_uint32  addrbuf[],
37                          afs_uint32  maskbuf[],
38                          afs_uint32  mtubuf[],
39                          afs_uint32 max,
40                          char reason[],
41                          const char *niFilename,
42                          const char *nrFilename
43                          );
44
45 #endif /* TRANSARC_NETUTILS_H */