xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/known_tcp_ports.h (revision 67b9b338a7386232ac596b5fd0cd5a9cc8a03c71)
1 /*	$NetBSD: known_tcp_ports.h,v 1.2 2022/10/08 16:12:50 christos Exp $	*/
2 
3 #ifndef _KNOWN_TCP_PORTS_H_INCLUDED_
4 #define _KNOWN_TCP_PORTS_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	known_tcp_port 3h
9 /* SUMMARY
10 /*	reduce dependency on the services(5) database
11 /* SYNOPSIS
12 /*	#include <known_tcp_ports.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <vstring.h>
20 
21  /*
22   * External interface.
23   */
24 extern const char *add_known_tcp_port(const char *name, const char *port);
25 extern const char *filter_known_tcp_port(const char *name_or_port);
26 extern void clear_known_tcp_ports(void);
27 extern char *export_known_tcp_ports(VSTRING *out);
28 
29 /* LICENSE
30 /* .ad
31 /* .fi
32 /*	The Secure Mailer license must be distributed with this software.
33 /* AUTHOR(S)
34 /*	Wietse Venema
35 /*	Google, Inc.
36 /*	111 8th Avenue
37 /*	New York, NY 10011, USA
38 /*--*/
39 
40 #endif
41