dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dsniff.c File Reference
#include "config.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <err.h>
#include <libnet.h>
#include <nids.h>
#include <pcap.h>
#include "options.h"
#include "pathnames.h"
#include "pcaputil.h"
#include "trigger.h"
#include "record.h"
#include "version.h"
Include dependency graph for dsniff.c:

Go to the source code of this file.

Macros

#define MAX_LINES   6
 
#define MIN_SNAPLEN   1024
 

Functions

static void usage (void)
 
static void sig_hup (int sig)
 
static void sig_die (int sig)
 
static void null_syslog (int type, int errnum, struct ip *iph, void *data)
 
int main (int argc, char *argv[])
 

Variables

int Opt_client = 0
 
int Opt_debug = 0
 
u_short Opt_dns = 1
 
int Opt_magic = 0
 
int Opt_read = 0
 
int Opt_write = 0
 
int Opt_snaplen = 1024
 
int Opt_lines = 6
 

Macro Definition Documentation

◆ MAX_LINES

#define MAX_LINES   6

Definition at line 33 of file dsniff.c.

◆ MIN_SNAPLEN

#define MIN_SNAPLEN   1024

Definition at line 34 of file dsniff.c.

Function Documentation

◆ main()

◆ null_syslog()

static void null_syslog ( int  type,
int  errnum,
struct ip *  iph,
void *  data 
)
static

Definition at line 68 of file dsniff.c.

Referenced by main().

◆ sig_die()

static void sig_die ( int  sig)
static

Definition at line 61 of file dsniff.c.

References record_close().

Referenced by main().

◆ sig_hup()

static void sig_hup ( int  sig)
static

Definition at line 55 of file dsniff.c.

References trigger_dump().

Referenced by main().

◆ usage()

static void usage ( void  )
static

Definition at line 46 of file dsniff.c.

References VERSION.

Referenced by main().

Variable Documentation

◆ Opt_client

int Opt_client = 0

Definition at line 36 of file dsniff.c.

Referenced by main().

◆ Opt_debug

◆ Opt_dns

u_short Opt_dns = 1

Definition at line 38 of file dsniff.c.

Referenced by main(), and record_print().

◆ Opt_lines

int Opt_lines = 6

Definition at line 43 of file dsniff.c.

Referenced by decode_poppass(), decode_rlogin(), and decode_telnet().

◆ Opt_magic

int Opt_magic = 0

◆ Opt_read

int Opt_read = 0

Definition at line 40 of file dsniff.c.

Referenced by main(), record(), and record_init().

◆ Opt_snaplen

int Opt_snaplen = 1024

Definition at line 42 of file dsniff.c.

Referenced by main(), tcp_raw_input(), and trigger_tcp().

◆ Opt_write

int Opt_write = 0

Definition at line 41 of file dsniff.c.

Referenced by main(), and record().