1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/************************************************************************/
/* */
/* PortSentry */
/* */
/* Created: 10-12-1997 */
/* Modified: 05-23-2003 */
/* */
/* Send all changes/modifications/bugfixes to: */
/* craigrowland at users dot sourceforge dot net */
/* */
/* */
/* This software is Copyright(c) 1997-2003 Craig Rowland */
/* */
/* This software is covered under the Common Public License v1.0 */
/* See the enclosed LICENSE file for more information. */
/* $Id: portsentry_io.h,v 1.17 2003/05/23 17:41:46 crowland Exp crowland $ */
/************************************************************************/
/* prototypes */
int WriteBlocked (char *, char *, int, char *, char *, char *);
void Log (char *,...);
void Exit (int);
void Start (void);
int DaemonSeed (void);
int NeverBlock (char *, char *);
int CheckConfig (void);
int OpenTCPSocket (void);
int OpenUDPSocket (void);
#ifdef SUPPORT_STEALTH
int OpenRAWTCPSocket (void);
int OpenRAWUDPSocket (void);
#endif
int BindSocket (int, struct sockaddr_in, struct sockaddr_in, int);
int KillRoute (char *, int, char *, char *);
int KillHostsDeny (char *, int, char *, char *);
int KillRunCmd (char *, int, char *, char *);
int ConfigTokenRetrieve (char *, char *);
int IsBlocked (char *, char *);
int SubstString (const char *, const char *, const char *, char *);
int CheckFlag (char *);
int CompareIPs(char *, char *, int);
|