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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
----------------------------------------------------
httpry - HTTP logging and information retrieval tool
----------------------------------------------------
Copyright (c) 2005-2014 Jason Bittel <jason.bittel@gmail.com>
*/
#ifndef _HAVE_CONFIG_H
#define _HAVE_CONFIG_H
#define PROG_NAME "httpry"
#define PROG_VER "0.1.8"
/* Default packet capture filter; must be a standard libpcap style filter
*** Can be overridden */
#define DEFAULT_CAPFILTER "tcp port 80 or 8080"
/* Default output format string; see doc/format-string for more information
*** Can be overridden with -f */
#define DEFAULT_FORMAT "timestamp,source-ip,dest-ip,direction,method,host,request-uri,http-version,status-code,reason-phrase"
/* Default format string for rate statistics mode; should never change! */
#define RATE_FORMAT "host"
/* Default request methods to process; see doc/method-string for more information
*** Can be overridden with -m */
#define DEFAULT_METHODS "get,post,put,head,options,delete,trace,connect,patch"
/* Default threshold for displaying rps in rate statistics mode
*** Can be overridden with -l */
#define DEFAULT_RATE_THRESHOLD 2
/* Default display interval for rate statistics
*** Can be overridden with -t */
#define DEFAULT_RATE_INTERVAL 5
/* Default location to store the PID file when running in daemon mode
*** Can be overridden with -P */
#define PID_FILENAME "/var/run/httpry.pid"
/* Where to send unnecessary output */
#define NULL_FILE "/dev/null"
/* String to print when an output field has no associated data */
#define EMPTY_FIELD "-"
/* Delimiter that separates output fields */
#define FIELD_DELIM "\t"
/* HTTP specific constant; should never change! */
#define HTTP_STRING "HTTP/"
#define MAX_TIME_LEN 20
#define PORTSTRLEN 6
#endif /* ! _HAVE_CONFIG_H */
|