Home | History | Annotate | Line # | Download | only in identd
identd.h revision 1.8.42.1
      1 /* $NetBSD: identd.h,v 1.8.42.1 2012/04/17 00:05:36 yamt 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 (at) 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 *, ...) __printflike(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