xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/inet_addr_sizes.h (revision c48c605c14fd8622b523d1d6a3f0c0bad133ea89)
1 /*	$NetBSD: inet_addr_sizes.h,v 1.2 2023/12/23 20:30:46 christos Exp $	*/
2 
3 #ifndef _INET_ADDR_SIZES_H_INCLUDED_
4 #define _INET_ADDR_SIZES_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*      inet_addr_sizes 3h
9 /* SUMMARY
10 /*      get network address size metrics
11 /* SYNOPSIS
12 /*      #include <inet_addr_sizes.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * External interface.
18   */
19 typedef struct {
20     int     af;				/* network address family (binary) */
21     char   *ipproto_str;		/* IP protocol version (string) */
22     int     addr_bitcount;		/* bits per address */
23     int     addr_bytecount;		/* bytes per address */
24     int     addr_strlen;		/* address string length */
25     int     addr_bitcount_strlen;	/* addr_bitcount string length */
26 } INET_ADDR_SIZES;
27 
28 extern const INET_ADDR_SIZES *inet_addr_sizes(int);
29 
30 /* LICENSE
31 /* .ad
32 /* .fi
33 /*      The Secure Mailer license must be distributed with this software.
34 /* AUTHOR(S)
35 /*      Wietse Venema
36 /*--*/
37 
38 #endif
39