|
icmpmonitor
1.2
About: Multiple host monitoring tool (using the InterNet Control Message Protocol "ECHO" facility)
Fossies Dox: icmpmonitor-1.2.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
#include <sys/param.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <signal.h>#include <string.h>#include <sys/socket.h>#include <sys/types.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#include <netinet/in_systm.h>#include <netinet/ip.h>#include <netinet/ip_icmp.h>#include <stddef.h>#include <errno.h>#include "cfg.h"
Go to the source code of this file.
Data Structures | |
| struct | monitor_host |
Macros | |
| #define | nil NULL |
| #define | RET_OK 0 |
| #define | RET_NO_HOSTS 1 |
| #define | RET_INIT_ERROR 2 |
| #define | RET_BAD_CFG 3 |
| #define | RET_BAD_OPT 4 |
| #define | MAXPACKET (65536 - 60 - 8) /* max packet size */ |
| #define | DEFDATALEN (64 - 8) /* default data length */ |
| #define | VERSION "ICMPmonitor v1.2 by lord@crocodile.org" |
| #define | MAX_LOG_MSG_SIZE 4096 |
| #define | icmphdr icmp |
Typedefs | |
| typedef struct monitor_host | monitor_host_t |
Functions | |
| int | main (int ac, char **av) |
Variables | |
| char | copyright [] |
| char | rcsid [] = "$Id: icmpmonitor.c,v 1.8 2004/05/28 01:33:07 lord Exp $" |
| #define DEFDATALEN (64 - 8) /* default data length */ |
Definition at line 138 of file icmpmonitor.c.
| #define icmphdr icmp |
Definition at line 143 of file icmpmonitor.c.
| #define MAX_LOG_MSG_SIZE 4096 |
Definition at line 141 of file icmpmonitor.c.
| #define MAXPACKET (65536 - 60 - 8) /* max packet size */ |
Definition at line 137 of file icmpmonitor.c.
| #define nil NULL |
Definition at line 127 of file icmpmonitor.c.
Referenced by main().
| #define RET_BAD_CFG 3 |
Definition at line 134 of file icmpmonitor.c.
| #define RET_BAD_OPT 4 |
Definition at line 135 of file icmpmonitor.c.
Referenced by main().
| #define RET_INIT_ERROR 2 |
Definition at line 133 of file icmpmonitor.c.
| #define RET_NO_HOSTS 1 |
Definition at line 132 of file icmpmonitor.c.
| #define RET_OK 0 |
Definition at line 131 of file icmpmonitor.c.
Referenced by main().
| #define VERSION "ICMPmonitor v1.2 by lord@crocodile.org" |
Definition at line 140 of file icmpmonitor.c.
Referenced by main().
| typedef struct monitor_host monitor_host_t |
| int main | ( | int | ac, |
| char ** | av | ||
| ) |
Definition at line 195 of file icmpmonitor.c.
References nil, RET_BAD_OPT, RET_OK, and VERSION.
| char copyright[] |
Definition at line 50 of file icmpmonitor.c.
| char rcsid[] = "$Id: icmpmonitor.c,v 1.8 2004/05/28 01:33:07 lord Exp $" |
Definition at line 54 of file icmpmonitor.c.