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)  

decode.c File Reference
#include "config.h"
#include <sys/types.h>
#include <arpa/telnet.h>
#include <rpc/rpc.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "decode.h"
Include dependency graph for decode.c:

Go to the source code of this file.

Functions

int decode_hex (u_char *, int, u_char *, int)
 
int decode_ftp (u_char *, int, u_char *, int)
 
int decode_telnet (u_char *, int, u_char *, int)
 
int decode_smtp (u_char *, int, u_char *, int)
 
int decode_pptp (u_char *, int, u_char *, int)
 
int decode_http (u_char *, int, u_char *, int)
 
int decode_ospf (u_char *, int, u_char *, int)
 
int decode_poppass (u_char *, int, u_char *, int)
 
int decode_pop (u_char *, int, u_char *, int)
 
int decode_nntp (u_char *, int, u_char *, int)
 
int decode_smb (u_char *, int, u_char *, int)
 
int decode_imap (u_char *, int, u_char *, int)
 
int decode_snmp (u_char *, int, u_char *, int)
 
int decode_ldap (u_char *, int, u_char *, int)
 
int decode_mmxp (u_char *, int, u_char *, int)
 
int decode_rlogin (u_char *, int, u_char *, int)
 
int decode_rip (u_char *, int, u_char *, int)
 
int decode_socks (u_char *, int, u_char *, int)
 
int decode_citrix (u_char *, int, u_char *, int)
 
int decode_oracle (u_char *, int, u_char *, int)
 
int decode_tds (u_char *, int, u_char *, int)
 
int decode_sniffer (u_char *, int, u_char *, int)
 
int decode_cvs (u_char *, int, u_char *, int)
 
int decode_icq (u_char *, int, u_char *, int)
 
int decode_napster (u_char *, int, u_char *, int)
 
int decode_aim (u_char *, int, u_char *, int)
 
int decode_postgresql (u_char *, int, u_char *, int)
 
int decode_pcanywhere (u_char *, int, u_char *, int)
 
int decode_x11 (u_char *, int, u_char *, int)
 
int decode_irc (u_char *, int, u_char *, int)
 
int decode_portmap (u_char *, int, u_char *, int)
 
int decode_mountd (u_char *, int, u_char *, int)
 
int decode_vrrp (u_char *, int, u_char *, int)
 
int decode_ypserv (u_char *, int, u_char *, int)
 
int decode_yppasswd (u_char *, int, u_char *, int)
 
struct decodegetdecodebyname (const char *name)
 
int strip_telopts (u_char *buf, int len)
 
int strip_lines (char *buf, int max_lines)
 
int is_ascii_string (char *buf, int len)
 
u_char * bufbuf (u_char *big, int blen, u_char *little, int llen)
 

Variables

static struct decode decodes []
 

Function Documentation

◆ bufbuf()

u_char* bufbuf ( u_char *  big,
int  blen,
u_char *  little,
int  llen 
)

Definition at line 193 of file decode.c.

References memcmp().

Referenced by decode_oracle(), and strip_telopts().

◆ decode_aim()

int decode_aim ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 37 of file decode_aim.c.

◆ decode_citrix()

int decode_citrix ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 30 of file decode_citrix.c.

◆ decode_cvs()

int decode_cvs ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 41 of file decode_cvs.c.

◆ decode_ftp()

int decode_ftp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 23 of file decode_ftp.c.

◆ decode_hex()

int decode_hex ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 26 of file decode_hex.c.

◆ decode_http()

int decode_http ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 96 of file decode_http.c.

◆ decode_icq()

int decode_icq ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 58 of file decode_icq.c.

◆ decode_imap()

int decode_imap ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 22 of file decode_imap.c.

◆ decode_irc()

int decode_irc ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 22 of file decode_irc.c.

◆ decode_ldap()

int decode_ldap ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 23 of file decode_ldap.c.

◆ decode_mmxp()

int decode_mmxp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 33 of file decode_mmxp.c.

◆ decode_mountd()

int decode_mountd ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 29 of file decode_mountd.c.

◆ decode_napster()

int decode_napster ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 22 of file decode_napster.c.

◆ decode_nntp()

int decode_nntp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 23 of file decode_nntp.c.

◆ decode_oracle()

int decode_oracle ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 22 of file decode_oracle.c.

◆ decode_ospf()

int decode_ospf ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 21 of file decode_ospf.c.

◆ decode_pcanywhere()

int decode_pcanywhere ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 25 of file decode_pcanywhere.c.

◆ decode_pop()

int decode_pop ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 44 of file decode_pop.c.

◆ decode_poppass()

int decode_poppass ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 23 of file decode_pop.c.

◆ decode_portmap()

int decode_portmap ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 27 of file decode_portmap.c.

◆ decode_postgresql()

int decode_postgresql ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 25 of file decode_postgresql.c.

◆ decode_pptp()

int decode_pptp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 86 of file decode_pptp.c.

◆ decode_rip()

int decode_rip ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 21 of file decode_rip.c.

◆ decode_rlogin()

int decode_rlogin ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 22 of file decode_rlogin.c.

◆ decode_smb()

int decode_smb ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 32 of file decode_smb.c.

◆ decode_smtp()

int decode_smtp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 23 of file decode_smtp.c.

◆ decode_sniffer()

int decode_sniffer ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 23 of file decode_sniffer.c.

◆ decode_snmp()

int decode_snmp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 24 of file decode_snmp.c.

◆ decode_socks()

int decode_socks ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 21 of file decode_socks.c.

◆ decode_tds()

int decode_tds ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 131 of file decode_tds.c.

◆ decode_telnet()

int decode_telnet ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 22 of file decode_telnet.c.

◆ decode_vrrp()

int decode_vrrp ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 39 of file decode_vrrp.c.

◆ decode_x11()

int decode_x11 ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 21 of file decode_x11.c.

◆ decode_yppasswd()

int decode_yppasswd ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 71 of file decode_yp.c.

◆ decode_ypserv()

int decode_ypserv ( u_char *  ,
int  ,
u_char *  ,
int   
)

Definition at line 102 of file decode_yp.c.

◆ getdecodebyname()

struct decode* getdecodebyname ( const char *  name)

Definition at line 97 of file decode.c.

References decode::dc_name, and decodes.

Referenced by trigger_set_ip(), trigger_set_rpc(), trigger_set_tcp(), and trigger_set_udp().

◆ is_ascii_string()

int is_ascii_string ( char *  buf,
int  len 
)

Definition at line 182 of file decode.c.

Referenced by decode_smb(), and decode_telnet().

◆ strip_lines()

int strip_lines ( char *  buf,
int  max_lines 
)

Definition at line 159 of file decode.c.

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

◆ strip_telopts()

int strip_telopts ( u_char *  buf,
int  len 
)

Definition at line 110 of file decode.c.

References bufbuf().

Referenced by decode_ftp(), and decode_telnet().

Variable Documentation

◆ decodes

struct decode decodes[]
static

Definition at line 57 of file decode.c.

Referenced by getdecodebyname().