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)  

msgsnarf.c File Reference
#include "config.h"
#include <sys/types.h>
#include <sys/queue.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <err.h>
#include <libnet.h>
#include <nids.h>
#include <pcap.h>
#include <pcaputil.h>
#include "buf.h"
#include "decode.h"
#include "version.h"
Include dependency graph for msgsnarf.c:

Go to the source code of this file.

Data Structures

struct  client_info
 
struct  flap
 
struct  snac
 
struct  yhoo
 
struct  ymsg
 

Functions

 SLIST_HEAD (client_info)
 
static char * timestamp (void)
 
static int regex_match (char *string)
 
static int process_aim (struct client_info *info, u_char *data, int len)
 
static int process_irc (struct client_info *info, u_char *data, int len)
 
static int process_msn (struct client_info *info, u_char *data, int len)
 
static int process_yahoo (struct client_info *info, u_char *data, int len)
 
static void sniff_msgs (struct tcp_stream *ts, void **conn_save)
 
static void null_syslog (int type, int errnum, struct ip *iph, void *data)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ null_syslog()

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

Definition at line 624 of file msgsnarf.c.

Referenced by main().

◆ process_aim()

static int process_aim ( struct client_info info,
u_char *  data,
int  len 
)
static

◆ process_irc()

static int process_irc ( struct client_info info,
u_char *  data,
int  len 
)
static

◆ process_msn()

static int process_msn ( struct client_info info,
u_char *  data,
int  len 
)
static

◆ process_yahoo()

static int process_yahoo ( struct client_info info,
u_char *  data,
int  len 
)
static

◆ regex_match()

static int regex_match ( char *  string)
static

Definition at line 66 of file msgsnarf.c.

References Opt_invert, and pregex.

Referenced by process_aim(), process_irc(), process_msn(), and process_yahoo().

◆ SLIST_HEAD()

SLIST_HEAD ( client_info  )

Definition at line 39 of file msgsnarf.c.

References VERSION.

◆ sniff_msgs()

static void sniff_msgs ( struct tcp_stream *  ts,
void **  conn_save 
)
static

◆ timestamp()

static char* timestamp ( void  )
static

Definition at line 52 of file msgsnarf.c.

References now.

Referenced by process_aim(), process_irc(), process_msn(), process_yahoo(), and server_to_client().