xref: /netbsd-src/libexec/identd/identd.h (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1 /* $NetBSD: identd.h,v 1.10 2015/10/14 15:53:50 christos Exp $ */
2 
3 /*
4  * identd.h - TCP/IP Ident protocol server.
5  *
6  * This software is in the public domain.
7  * Written by Peter Postma <peter@NetBSD.org>
8  */
9 
10 #ifndef _IDENTD_H_
11 #define _IDENTD_H_
12 
13 #define satosin(sa)	((struct sockaddr_in *)(sa))
14 #define satosin6(sa)	((struct sockaddr_in6 *)(sa))
15 #define in_hosteq(s,t)	((s).s_addr == (t).s_addr)
16 
17 void maybe_syslog(int, const char *, ...) __sysloglike(2, 3);
18 
19 #ifdef WITH_PF
20 int pf_natlookup(struct sockaddr_storage *, struct sockaddr *, int *);
21 #endif
22 
23 #ifdef WITH_IPF
24 int ipf_natlookup(struct sockaddr_storage *, struct sockaddr *, int *);
25 #endif
26 
27 #endif /* !_IDENTD_H_ */
28