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
|
/*----------------------------------------------------------------------------*/
/* Xymon monitor library. */
/* */
/* Copyright (C) 2004-2011 Henrik Storner <henrik@hswn.dk> */
/* */
/* This program is released under the GNU General Public License (GPL), */
/* version 2. See the file "COPYING" for details. */
/* */
/*----------------------------------------------------------------------------*/
#ifndef __IPACCESS_H__
#define __IPACCESS_H__
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> /* Someday I'll move to GNU Autoconf for this ... */
#endif
typedef struct sender_t {
unsigned long int ipval;
int ipmask;
} sender_t;
extern sender_t *getsenderlist(char *iplist);
extern int oksender(sender_t *oklist, char *targetip, struct in_addr sender, char *msgbuf);
#endif
|