2012-03-15 06:02:20 +04:00
|
|
|
/* $NetBSD: identd.h,v 1.9 2012/03/15 02:02:21 joerg Exp $ */
|
2005-04-04 02:15:32 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* identd.h - TCP/IP Ident protocol server.
|
|
|
|
*
|
|
|
|
* This software is in the public domain.
|
|
|
|
* Written by Peter Postma <peter@NetBSD.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IDENTD_H_
|
|
|
|
#define _IDENTD_H_
|
|
|
|
|
|
|
|
#define satosin(sa) ((struct sockaddr_in *)(sa))
|
|
|
|
#define satosin6(sa) ((struct sockaddr_in6 *)(sa))
|
|
|
|
#define in_hosteq(s,t) ((s).s_addr == (t).s_addr)
|
|
|
|
|
2012-03-15 06:02:20 +04:00
|
|
|
void maybe_syslog(int, const char *, ...) __printflike(2, 3);
|
2005-04-04 02:15:32 +04:00
|
|
|
|
|
|
|
#ifdef WITH_PF
|
|
|
|
int pf_natlookup(struct sockaddr_storage *, struct sockaddr *, int *);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef WITH_IPF
|
|
|
|
int ipf_natlookup(struct sockaddr_storage *, struct sockaddr *, int *);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* !_IDENTD_H_ */
|