File: tcplog.h

package info (click to toggle)
jail 1:1.5-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 156 kB
  • ctags: 67
  • sloc: ansic: 482; makefile: 74; sh: 25
file content (34 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
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
/*
 * $Id: tcplog.h,v 1.5 1998/08/03 14:09:36 ams Exp $
 * Copyright 1998 ams@wiw.org (Abhijit Menon-Sen)
 */

#include "common.h"

#if defined(__GLIBC__) && (__GLIBC__ >= 2)
#include <netinet/tcp.h>
#else
#include <linux/tcp.h>
#endif

char *version = "tcplog " VERSION ", ams@wiw.org";
char *cfgfile = TCPLOG_CONF;

/* convert IP addresses to hostnames? */
short int resolve_names = 1;

/* default log level */
short int lvl = LOG_WARNING;

/* default logging facility */
short int fac = LOG_DAEMON;

/* TCP packet */
typedef struct {
    struct iphdr ip;
    struct tcphdr tcp;
    char data[0];
} tcppkt;

/* service list */
char *ports[1024];