Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

packet_types.h File Reference

Go to the source code of this file.

Defines

#define IP_RF   0x8000
#define IP_DF   0x4000
#define IP_MF   0x2000
#define IP_OFFMASK   0x1fff
#define MAX_IPOPTLEN   40
#define ETH_ALEN   6
#define ETH_HLEN   14
#define ETH_ZLEN   60
#define ETH_DATA_LEN   1500
#define ETH_FRAME_LEN   1514
#define ETH_P_LOOP   0x0060
#define ETH_P_ECHO   0x0200
#define ETH_P_PUP   0x0400
#define ETH_P_IP   0x0800
#define ETH_P_X25   0x0805
#define ETH_P_ARP   0x0806
#define ETH_P_BPQ   0x08FF
#define ETH_P_DEC   0x6000
#define ETH_P_DNA_DL   0x6001
#define ETH_P_DNA_RC   0x6002
#define ETH_P_DNA_RT   0x6003
#define ETH_P_LAT   0x6004
#define ETH_P_DIAG   0x6005
#define ETH_P_CUST   0x6006
#define ETH_P_SCA   0x6007
#define ETH_P_RARP   0x8035
#define ETH_P_ATALK   0x809B
#define ETH_P_AARP   0x80F3
#define ETH_P_IPX   0x8137
#define ETH_P_IPV6   0x86DD
#define ETH_P_802_3   0x0001
#define ETH_P_AX25   0x0002
#define ETH_P_ALL   0x0003
#define ETH_P_802_2   0x0004
#define ETH_P_SNAP   0x0005
#define ETH_P_DDCMP   0x0006
#define ETH_P_WAN_PPP   0x0007
#define ETH_P_PPP_MP   0x0008
#define ETH_P_LOCALTALK   0x0009
#define ETH_P_PPPTALK   0x0010
#define ETH_P_TR_802_2   0x0011
#define ARPD_UPDATE   0x01
#define ARPD_LOOKUP   0x02
#define ARPD_FLUSH   0x03
#define arp_hrd   ea_hdr.ar_hrd
#define arp_pro   ea_hdr.ar_pro
#define arp_hln   ea_hdr.ar_hln
#define arp_pln   ea_hdr.ar_pln
#define arp_op   ea_hdr.ar_op
#define IP_DF   0x4000
#define IP_MF   0x2000
#define IP_MAXPACKET   65535
#define IPOPT_COPIED(o)   ((o)&0x80)
#define IPOPT_CLASS(o)   ((o)&0x60)
#define IPOPT_NUMBER(o)   ((o)&0x1f)
#define IPOPT_CONTROL   0x00
#define IPOPT_RESERVED1   0x20
#define IPOPT_DEBMEAS   0x40
#define IPOPT_RESERVED2   0x60
#define IPOPT_EOL   0x00
#define IPOPT_NOP   0x01
#define IPOPT_RR   0x07
#define IPOPT_TS   0x44
#define IPOPT_SECURITY   0x82
#define IPOPT_LSRR   0x83
#define IPOPT_SATID   0x88
#define IPOPT_SSRR   0x89
#define IPOPT_TS_TSONLY   0
#define IPOPT_TS_TSANDADDR   1
#define IPOPT_TS_PRESPEC   2
#define IPOPT_SECUR_UNCLASS   0x0000
#define IPOPT_SECUR_CONFID   0xf135
#define IPOPT_SECUR_EFTO   0x789a
#define IPOPT_SECUR_MMMM   0xbc4d
#define IPOPT_SECUR_RESTR   0xaf13
#define IPOPT_SECUR_SECRET   0xd788
#define IPOPT_SECUR_TOPSECRET   0x6bc5
#define icmp_pptr   icmp_hun.ih_pptr
#define icmp_gwaddr   icmp_hun.ih_gwaddr
#define icmp_id   icmp_hun.ih_idseq.icd_id
#define icmp_seq   icmp_hun.ih_idseq.icd_seq
#define icmp_void   icmp_hun.ih_void
#define icmp_otime   icmp_dun.id_ts.its_otime
#define icmp_rtime   icmp_dun.id_ts.its_rtime
#define icmp_ttime   icmp_dun.id_ts.its_ttime
#define icmp_ip   icmp_dun.id_ip.idi_ip
#define icmp_mask   icmp_dun.id_mask
#define icmp_data   icmp_dun.id_data
#define ICMP_MINLEN   8
#define ICMP_TSLEN   (8 + 3 * sizeof (n_time))
#define ICMP_MASKLEN   12
#define ICMP_ADVLENMIN   (8 + sizeof (struct ip) + 8)
#define ICMP_ADVLEN(p)   (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
#define ICMP_ECHOREPLY   0
#define ICMP_UNREACH   3
#define ICMP_UNREACH_NET   0
#define ICMP_UNREACH_HOST   1
#define ICMP_UNREACH_PROTOCOL   2
#define ICMP_UNREACH_PORT   3
#define ICMP_UNREACH_NEEDFRAG   4
#define ICMP_UNREACH_SRCFAIL   5
#define ICMP_UNREACH_NET_UNKNOWN   6
#define ICMP_UNREACH_HOST_UNKNOWN   7
#define ICMP_UNREACH_ISOLATED   8
#define ICMP_UNREACH_NET_PROHIB   9
#define ICMP_UNREACH_HOST_PROHIB   10
#define ICMP_UNREACH_TOSNET   11
#define ICMP_UNREACH_TOSHOST   12
#define ICMP_UNREACH_FILTER_PROHIB   13
#define ICMP_UNREACH_HOST_PRECEDENCE   14
#define ICMP_UNREACH_PRECEDENCE_CUTOFF   15
#define ICMP_SOURCEQUENCH   4
#define ICMP_ROUTERADVERT   9
#define ICMP_ROUTERSOLICIT   10
#define ICMP_REDIRECT   5
#define ICMP_REDIRECT_NET   0
#define ICMP_REDIRECT_HOST   1
#define ICMP_REDIRECT_TOSNET   2
#define ICMP_REDIRECT_TOSHOST   3
#define ICMP_ECHO   8
#define ICMP_TIMXCEED   11
#define ICMP_TIMXCEED_INTRANS   0
#define ICMP_TIMXCEED_REASS   1
#define ICMP_PARAMPROB   12
#define ICMP_TSTAMP   13
#define ICMP_TSTAMPREPLY   14
#define ICMP_IREQ   15
#define ICMP_IREQREPLY   16
#define ICMP_MASKREQ   17
#define ICMP_MASKREPLY   18
#define ICMP_MAXTYPE   18
#define ICMP_INFOTYPE(type)
#define ICMP_TYPE_0   "Echo reply"
#define ICMP_TYPE_3   "Destination unreachable"
#define ICMP_TYPE_4   "Source quench"
#define ICMP_TYPE_5   "Redirect"
#define ICMP_TYPE_8   "Echo"
#define ICMP_TYPE_11   "Time exceeded"
#define ICMP_TYPE_12   "Parameter problem"
#define ICMP_TYPE_13   "Timestamp"
#define ICMP_TYPE_14   "Timestamp reply"
#define ICMP_TYPE_15   "Information request"
#define ICMP_TYPE_16   "Information reply"
#define ICMP_TYPE_17   "Address mask request"
#define ICMP_TYPE_18   "Adress mask reply"
#define TH_FIN   0x01
#define TH_SYN   0x02
#define TH_RST   0x04
#define TH_PSH   0x08
#define TH_ACK   0x10
#define TH_URG   0x20
#define TCPOPT_EOL   0
#define TCPOPT_NOP   1
#define TCPOPT_MAXSEG   2
#define smb_size   39
#define smb_com   8
#define smb_rcls   9
#define smb_reh   10
#define smb_err   11
#define smb_flg   13
#define smb_flg2   14
#define smb_reb   13
#define smb_tid   28
#define smb_pid   30
#define smb_uid   32
#define smb_mid   34
#define smb_wct   36
#define smb_vwv   37
#define smb_vwv0   37
#define smb_vwv1   39
#define smb_vwv2   41
#define smb_vwv3   43
#define smb_vwv4   45
#define smb_vwv5   47
#define smb_vwv6   49
#define smb_vwv7   51
#define smb_vwv8   53
#define smb_vwv9   55
#define smb_vwv10   57
#define smb_vwv11   59
#define smb_vwv12   61
#define smb_vwv13   63
#define smb_vwv14   65
#define smb_vwv15   67
#define smb_vwv16   69
#define smb_vwv17   71
#define SMBmkdir   0x00
#define SMBrmdir   0x01
#define SMBopen   0x02
#define SMBcreate   0x03
#define SMBclose   0x04
#define SMBflush   0x05
#define SMBunlink   0x06
#define SMBmv   0x07
#define SMBgetatr   0x08
#define SMBsetatr   0x09
#define SMBread   0x0A
#define SMBwrite   0x0B
#define SMBlock   0x0C
#define SMBunlock   0x0D
#define SMBctemp   0x0E
#define SMBmknew   0x0F
#define SMBchkpth   0x10
#define SMBexit   0x11
#define SMBlseek   0x12
#define SMBtcon   0x70
#define SMBtconX   0x75
#define SMBtdis   0x71
#define SMBnegprot   0x72
#define SMBdskattr   0x80
#define SMBsearch   0x81
#define SMBsplopen   0xC0
#define SMBsplwr   0xC1
#define SMBsplclose   0xC2
#define SMBsplretq   0xC3
#define SMBsends   0xD0
#define SMBsendb   0xD1
#define SMBfwdname   0xD2
#define SMBcancelf   0xD3
#define SMBgetmac   0xD4
#define SMBsendstrt   0xD5
#define SMBsendend   0xD6
#define SMBsendtxt   0xD7
#define SMBlockread   0x13
#define SMBwriteunlock   0x14
#define SMBreadbraw   0x1a
#define SMBwritebraw   0x1d
#define SMBwritec   0x20
#define SMBwriteclose   0x2c
#define SMBreadBraw   0x1A
#define SMBreadBmpx   0x1B
#define SMBreadBs   0x1C
#define SMBwriteBraw   0x1D
#define SMBwriteBmpx   0x1E
#define SMBwriteBs   0x1F
#define SMBwriteC   0x20
#define SMBsetattrE   0x22
#define SMBgetattrE   0x23
#define SMBlockingX   0x24
#define SMBtrans   0x25
#define SMBtranss   0x26
#define SMBioctl   0x27
#define SMBioctls   0x28
#define SMBcopy   0x29
#define SMBmove   0x2A
#define SMBecho   0x2B
#define SMBopenX   0x2D
#define SMBreadX   0x2E
#define SMBwriteX   0x2F
#define SMBsesssetupX   0x73
#define SMBffirst   0x82
#define SMBfunique   0x83
#define SMBfclose   0x84
#define SMBinvalid   0xFE
#define SMBtrans2   0x32
#define SMBtranss2   0x33
#define SMBfindclose   0x34
#define SMBfindnclose   0x35
#define SMBulogoffX   0x74
#define TRANSACT2_OPEN   0
#define TRANSACT2_FINDFIRST   1
#define TRANSACT2_FINDNEXT   2
#define TRANSACT2_QFSINFO   3
#define TRANSACT2_SETFSINFO   4
#define TRANSACT2_QPATHINFO   5
#define TRANSACT2_SETPATHINFO   6
#define TRANSACT2_QFILEINFO   7
#define TRANSACT2_SETFILEINFO   8
#define TRANSACT2_FSCTL   9
#define TRANSACT2_IOCTL   10
#define TRANSACT2_FINDNOTIFYFIRST   11
#define TRANSACT2_FINDNOTIFYNEXT   12
#define TRANSACT2_MKDIR   13
#define smb_tpscnt   smb_vwv0
#define smb_tdscnt   smb_vwv1
#define smb_mprcnt   smb_vwv2
#define smb_mdrcnt   smb_vwv3
#define smb_msrcnt   smb_vwv4
#define smb_flags   smb_vwv5
#define smb_timeout   smb_vwv6
#define smb_pscnt   smb_vwv9
#define smb_psoff   smb_vwv10
#define smb_dscnt   smb_vwv11
#define smb_dsoff   smb_vwv12
#define smb_suwcnt   smb_vwv13
#define smb_setup   smb_vwv14
#define smb_setup0   smb_setup
#define smb_setup1   (smb_setup+2)
#define smb_setup2   (smb_setup+4)
#define smb_spscnt   smb_vwv2
#define smb_spsoff   smb_vwv3
#define smb_spsdisp   smb_vwv4
#define smb_sdscnt   smb_vwv5
#define smb_sdsoff   smb_vwv6
#define smb_sdsdisp   smb_vwv7
#define smb_sfid   smb_vwv8
#define smb_tprcnt   smb_vwv0
#define smb_tdrcnt   smb_vwv1
#define smb_prcnt   smb_vwv3
#define smb_proff   smb_vwv4
#define smb_prdisp   smb_vwv5
#define smb_drcnt   smb_vwv6
#define smb_droff   smb_vwv7
#define smb_drdisp   smb_vwv8
#define smb_base(buf)   (((char *)(buf))+4)
#define ERRDOS   0x01
#define ERRSRV   0x02
#define ERRHRD   0x03
#define ERRCMD   0xFF
#define MAX_DGRAM_SIZE   576
#define MIN_DGRAM_SIZE   12
#define NMB_PORT   137
#define DGRAM_PORT   138
#define SMB_PORT   139
#define EXTRACT_SHORT(p)   ((u_short)ntohs(*(u_short *)p))
#define EXTRACT_LONG(p)   (ntohl(*(u_int32 *)p))
#define TFTP_PORT   69
#define NAMESERVER_PORT   53
#define KERBEROS_PORT   88
#define SUNRPC_PORT   111
#define SNMP_PORT   161
#define NTP_PORT   123
#define SNMPTRAP_PORT   162
#define RIP_PORT   520
#define KERBEROS_SEC_PORT   750
#define TICK_TIME   10
#define OUR_IP   (gOurIP ? gOurIP : rkGetOurIP())
#define OUR_MAC   (gOurMAC ? gOurMAC : rkGetOurMAC())
#define MAXHOSTNAMELEN   64

Typedefs

typedef long n_long
typedef short n_short
typedef long n_time
typedef u_long tcp_seq
typedef _RIPDERM RIPDERM
typedef _RIPDERMPRIPDERM

Enumerations

enum  {
  TCP_ESTABLISHED = 1, TCP_SYN_SENT, TCP_SYN_RECV, TCP_FIN_WAIT1,
  TCP_FIN_WAIT2, TCP_TIME_WAIT, TCP_CLOSE, TCP_CLOSE_WAIT,
  TCP_LAST_ACK, TCP_LISTEN, TCP_CLOSING
}
enum  name_source {
  LMHOSTS, REGISTER, SELF, DNS,
  DNSFAIL
}
enum  node_type { B_NODE = 0, P_NODE = 1, M_NODE = 2, NBDD_NODE = 3 }
enum  packet_type { NMB_PACKET, DGRAM_PACKET }

Variables

etherproto etherproto_db []
static u_char bcastaddr [] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }


Define Documentation

#define arp_hln   ea_hdr.ar_hln
 

Definition at line 142 of file packet_types.h.

#define arp_hrd   ea_hdr.ar_hrd
 

Definition at line 140 of file packet_types.h.

#define arp_op   ea_hdr.ar_op
 

Definition at line 144 of file packet_types.h.

#define arp_pln   ea_hdr.ar_pln
 

Definition at line 143 of file packet_types.h.

#define arp_pro   ea_hdr.ar_pro
 

Definition at line 141 of file packet_types.h.

#define ARPD_FLUSH   0x03
 

Definition at line 117 of file packet_types.h.

#define ARPD_LOOKUP   0x02
 

Definition at line 116 of file packet_types.h.

#define ARPD_UPDATE   0x01
 

Definition at line 115 of file packet_types.h.

#define DGRAM_PORT   138
 

Definition at line 592 of file packet_types.h.

#define ERRCMD   0xFF
 

Definition at line 579 of file packet_types.h.

#define ERRDOS   0x01
 

Definition at line 576 of file packet_types.h.

#define ERRHRD   0x03
 

Definition at line 578 of file packet_types.h.

#define ERRSRV   0x02
 

Definition at line 577 of file packet_types.h.

#define ETH_ALEN   6
 

Definition at line 37 of file packet_types.h.

#define ETH_DATA_LEN   1500
 

Definition at line 40 of file packet_types.h.

#define ETH_FRAME_LEN   1514
 

Definition at line 41 of file packet_types.h.

#define ETH_HLEN   14
 

Definition at line 38 of file packet_types.h.

#define ETH_P_802_2   0x0004
 

Definition at line 75 of file packet_types.h.

#define ETH_P_802_3   0x0001
 

Definition at line 72 of file packet_types.h.

#define ETH_P_AARP   0x80F3
 

Definition at line 64 of file packet_types.h.

#define ETH_P_ALL   0x0003
 

Definition at line 74 of file packet_types.h.

Referenced by eth_open().

#define ETH_P_ARP   0x0806
 

Definition at line 52 of file packet_types.h.

#define ETH_P_ATALK   0x809B
 

Definition at line 63 of file packet_types.h.

#define ETH_P_AX25   0x0002
 

Definition at line 73 of file packet_types.h.

#define ETH_P_BPQ   0x08FF
 

Definition at line 53 of file packet_types.h.

#define ETH_P_CUST   0x6006
 

Definition at line 60 of file packet_types.h.

#define ETH_P_DDCMP   0x0006
 

Definition at line 77 of file packet_types.h.

#define ETH_P_DEC   0x6000
 

Definition at line 54 of file packet_types.h.

#define ETH_P_DIAG   0x6005
 

Definition at line 59 of file packet_types.h.

#define ETH_P_DNA_DL   0x6001
 

Definition at line 55 of file packet_types.h.

#define ETH_P_DNA_RC   0x6002
 

Definition at line 56 of file packet_types.h.

#define ETH_P_DNA_RT   0x6003
 

Definition at line 57 of file packet_types.h.

#define ETH_P_ECHO   0x0200
 

Definition at line 48 of file packet_types.h.

#define ETH_P_IP   0x0800
 

Definition at line 50 of file packet_types.h.

#define ETH_P_IPV6   0x86DD
 

Definition at line 66 of file packet_types.h.

#define ETH_P_IPX   0x8137
 

Definition at line 65 of file packet_types.h.

#define ETH_P_LAT   0x6004
 

Definition at line 58 of file packet_types.h.

#define ETH_P_LOCALTALK   0x0009
 

Definition at line 80 of file packet_types.h.

#define ETH_P_LOOP   0x0060
 

Definition at line 47 of file packet_types.h.

#define ETH_P_PPP_MP   0x0008
 

Definition at line 79 of file packet_types.h.

#define ETH_P_PPPTALK   0x0010
 

Definition at line 81 of file packet_types.h.

#define ETH_P_PUP   0x0400
 

Definition at line 49 of file packet_types.h.

#define ETH_P_RARP   0x8035
 

Definition at line 62 of file packet_types.h.

#define ETH_P_SCA   0x6007
 

Definition at line 61 of file packet_types.h.

#define ETH_P_SNAP   0x0005
 

Definition at line 76 of file packet_types.h.

#define ETH_P_TR_802_2   0x0011
 

Definition at line 82 of file packet_types.h.

#define ETH_P_WAN_PPP   0x0007
 

Definition at line 78 of file packet_types.h.

#define ETH_P_X25   0x0805
 

Definition at line 51 of file packet_types.h.

#define ETH_ZLEN   60
 

Definition at line 39 of file packet_types.h.

#define EXTRACT_LONG  )     (ntohl(*(u_int32 *)p))
 

Definition at line 655 of file packet_types.h.

#define EXTRACT_SHORT  )     ((u_short)ntohs(*(u_short *)p))
 

Definition at line 654 of file packet_types.h.

#define ICMP_ADVLEN  )     (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
 

Definition at line 269 of file packet_types.h.

#define ICMP_ADVLENMIN   (8 + sizeof (struct ip) + 8)
 

Definition at line 268 of file packet_types.h.

#define icmp_data   icmp_dun.id_data
 

Definition at line 254 of file packet_types.h.

#define ICMP_ECHO   8
 

Definition at line 305 of file packet_types.h.

#define ICMP_ECHOREPLY   0
 

Definition at line 275 of file packet_types.h.

#define icmp_gwaddr   icmp_hun.ih_gwaddr
 

Definition at line 232 of file packet_types.h.

#define icmp_id   icmp_hun.ih_idseq.icd_id
 

Definition at line 233 of file packet_types.h.

#define ICMP_INFOTYPE type   ) 
 

Value:

((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \
        (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \
        (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
        (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)

Definition at line 319 of file packet_types.h.

#define icmp_ip   icmp_dun.id_ip.idi_ip
 

Definition at line 252 of file packet_types.h.

#define ICMP_IREQ   15
 

Definition at line 312 of file packet_types.h.

#define ICMP_IREQREPLY   16
 

Definition at line 313 of file packet_types.h.

#define icmp_mask   icmp_dun.id_mask
 

Definition at line 253 of file packet_types.h.

#define ICMP_MASKLEN   12
 

Definition at line 267 of file packet_types.h.

#define ICMP_MASKREPLY   18
 

Definition at line 315 of file packet_types.h.

#define ICMP_MASKREQ   17
 

Definition at line 314 of file packet_types.h.

#define ICMP_MAXTYPE   18
 

Definition at line 317 of file packet_types.h.

#define ICMP_MINLEN   8
 

Definition at line 265 of file packet_types.h.

#define icmp_otime   icmp_dun.id_ts.its_otime
 

Definition at line 249 of file packet_types.h.

#define ICMP_PARAMPROB   12
 

Definition at line 309 of file packet_types.h.

#define icmp_pptr   icmp_hun.ih_pptr
 

Definition at line 231 of file packet_types.h.

#define ICMP_REDIRECT   5
 

Definition at line 300 of file packet_types.h.

#define ICMP_REDIRECT_HOST   1
 

Definition at line 302 of file packet_types.h.

#define ICMP_REDIRECT_NET   0
 

Definition at line 301 of file packet_types.h.

#define ICMP_REDIRECT_TOSHOST   3
 

Definition at line 304 of file packet_types.h.

#define ICMP_REDIRECT_TOSNET   2
 

Definition at line 303 of file packet_types.h.

#define ICMP_ROUTERADVERT   9
 

Definition at line 298 of file packet_types.h.

#define ICMP_ROUTERSOLICIT   10
 

Definition at line 299 of file packet_types.h.

#define icmp_rtime   icmp_dun.id_ts.its_rtime
 

Definition at line 250 of file packet_types.h.

#define icmp_seq   icmp_hun.ih_idseq.icd_seq
 

Definition at line 234 of file packet_types.h.

#define ICMP_SOURCEQUENCH   4
 

Definition at line 297 of file packet_types.h.

#define ICMP_TIMXCEED   11
 

Definition at line 306 of file packet_types.h.

#define ICMP_TIMXCEED_INTRANS   0
 

Definition at line 307 of file packet_types.h.

#define ICMP_TIMXCEED_REASS   1
 

Definition at line 308 of file packet_types.h.

#define ICMP_TSLEN   (8 + 3 * sizeof (n_time))
 

Definition at line 266 of file packet_types.h.

#define ICMP_TSTAMP   13
 

Definition at line 310 of file packet_types.h.

#define ICMP_TSTAMPREPLY   14
 

Definition at line 311 of file packet_types.h.

#define icmp_ttime   icmp_dun.id_ts.its_ttime
 

Definition at line 251 of file packet_types.h.

#define ICMP_TYPE_0   "Echo reply"
 

Definition at line 326 of file packet_types.h.

#define ICMP_TYPE_11   "Time exceeded"
 

Definition at line 331 of file packet_types.h.

#define ICMP_TYPE_12   "Parameter problem"
 

Definition at line 332 of file packet_types.h.

#define ICMP_TYPE_13   "Timestamp"
 

Definition at line 333 of file packet_types.h.

#define ICMP_TYPE_14   "Timestamp reply"
 

Definition at line 334 of file packet_types.h.

#define ICMP_TYPE_15   "Information request"
 

Definition at line 335 of file packet_types.h.

#define ICMP_TYPE_16   "Information reply"
 

Definition at line 336 of file packet_types.h.

#define ICMP_TYPE_17   "Address mask request"
 

Definition at line 337 of file packet_types.h.

#define ICMP_TYPE_18   "Adress mask reply"
 

Definition at line 338 of file packet_types.h.

#define ICMP_TYPE_3   "Destination unreachable"
 

Definition at line 327 of file packet_types.h.

#define ICMP_TYPE_4   "Source quench"
 

Definition at line 328 of file packet_types.h.

#define ICMP_TYPE_5   "Redirect"
 

Definition at line 329 of file packet_types.h.

#define ICMP_TYPE_8   "Echo"
 

Definition at line 330 of file packet_types.h.

#define ICMP_UNREACH   3
 

Definition at line 278 of file packet_types.h.

#define ICMP_UNREACH_FILTER_PROHIB   13
 

Definition at line 292 of file packet_types.h.

#define ICMP_UNREACH_HOST   1
 

Definition at line 280 of file packet_types.h.

#define ICMP_UNREACH_HOST_PRECEDENCE   14
 

Definition at line 293 of file packet_types.h.

#define ICMP_UNREACH_HOST_PROHIB   10
 

Definition at line 289 of file packet_types.h.

#define ICMP_UNREACH_HOST_UNKNOWN   7
 

Definition at line 286 of file packet_types.h.

#define ICMP_UNREACH_ISOLATED   8
 

Definition at line 287 of file packet_types.h.

#define ICMP_UNREACH_NEEDFRAG   4
 

Definition at line 283 of file packet_types.h.

#define ICMP_UNREACH_NET   0
 

Definition at line 279 of file packet_types.h.

#define ICMP_UNREACH_NET_PROHIB   9
 

Definition at line 288 of file packet_types.h.

#define ICMP_UNREACH_NET_UNKNOWN   6
 

Definition at line 285 of file packet_types.h.

#define ICMP_UNREACH_PORT   3
 

Definition at line 282 of file packet_types.h.

#define ICMP_UNREACH_PRECEDENCE_CUTOFF   15
 

Definition at line 294 of file packet_types.h.

#define ICMP_UNREACH_PROTOCOL   2
 

Definition at line 281 of file packet_types.h.

#define ICMP_UNREACH_SRCFAIL   5
 

Definition at line 284 of file packet_types.h.

#define ICMP_UNREACH_TOSHOST   12
 

Definition at line 291 of file packet_types.h.

#define ICMP_UNREACH_TOSNET   11
 

Definition at line 290 of file packet_types.h.

#define icmp_void   icmp_hun.ih_void
 

Definition at line 235 of file packet_types.h.

#define IP_DF   0x4000
 

Definition at line 155 of file packet_types.h.

#define IP_DF   0x4000
 

Definition at line 155 of file packet_types.h.

#define IP_MAXPACKET   65535
 

Definition at line 163 of file packet_types.h.

#define IP_MF   0x2000
 

Definition at line 156 of file packet_types.h.

#define IP_MF   0x2000
 

Definition at line 156 of file packet_types.h.

#define IP_OFFMASK   0x1fff
 

Definition at line 23 of file packet_types.h.

#define IP_RF   0x8000
 

Definition at line 20 of file packet_types.h.

#define IPOPT_CLASS  )     ((o)&0x60)
 

Definition at line 167 of file packet_types.h.

#define IPOPT_CONTROL   0x00
 

Definition at line 170 of file packet_types.h.

#define IPOPT_COPIED  )     ((o)&0x80)
 

Definition at line 166 of file packet_types.h.

#define IPOPT_DEBMEAS   0x40
 

Definition at line 172 of file packet_types.h.

#define IPOPT_EOL   0x00
 

Definition at line 175 of file packet_types.h.

#define IPOPT_LSRR   0x83
 

Definition at line 181 of file packet_types.h.

#define IPOPT_NOP   0x01
 

Definition at line 176 of file packet_types.h.

#define IPOPT_NUMBER  )     ((o)&0x1f)
 

Definition at line 168 of file packet_types.h.

#define IPOPT_RESERVED1   0x20
 

Definition at line 171 of file packet_types.h.

#define IPOPT_RESERVED2   0x60
 

Definition at line 173 of file packet_types.h.

#define IPOPT_RR   0x07
 

Definition at line 178 of file packet_types.h.

#define IPOPT_SATID   0x88
 

Definition at line 182 of file packet_types.h.

#define IPOPT_SECUR_CONFID   0xf135
 

Definition at line 209 of file packet_types.h.

#define IPOPT_SECUR_EFTO   0x789a
 

Definition at line 210 of file packet_types.h.

#define IPOPT_SECUR_MMMM   0xbc4d
 

Definition at line 211 of file packet_types.h.

#define IPOPT_SECUR_RESTR   0xaf13
 

Definition at line 212 of file packet_types.h.

#define IPOPT_SECUR_SECRET   0xd788
 

Definition at line 213 of file packet_types.h.

#define IPOPT_SECUR_TOPSECRET   0x6bc5
 

Definition at line 214 of file packet_types.h.

#define IPOPT_SECUR_UNCLASS   0x0000
 

Definition at line 208 of file packet_types.h.

#define IPOPT_SECURITY   0x82
 

Definition at line 180 of file packet_types.h.

#define IPOPT_SSRR   0x89
 

Definition at line 183 of file packet_types.h.

#define IPOPT_TS   0x44
 

Definition at line 179 of file packet_types.h.

#define IPOPT_TS_PRESPEC   2
 

Definition at line 205 of file packet_types.h.

#define IPOPT_TS_TSANDADDR   1
 

Definition at line 204 of file packet_types.h.

#define IPOPT_TS_TSONLY   0
 

Definition at line 203 of file packet_types.h.

#define KERBEROS_PORT   88
 

Definition at line 662 of file packet_types.h.

#define KERBEROS_SEC_PORT   750
 

Definition at line 668 of file packet_types.h.

#define MAX_DGRAM_SIZE   576
 

Definition at line 588 of file packet_types.h.

#define MAX_IPOPTLEN   40
 

Definition at line 30 of file packet_types.h.

#define MAXHOSTNAMELEN   64
 

Definition at line 678 of file packet_types.h.

#define MIN_DGRAM_SIZE   12
 

Definition at line 589 of file packet_types.h.

#define NAMESERVER_PORT   53
 

Definition at line 661 of file packet_types.h.

#define NMB_PORT   137
 

Definition at line 591 of file packet_types.h.

#define NTP_PORT   123
 

Definition at line 665 of file packet_types.h.

#define OUR_IP   (gOurIP ? gOurIP : rkGetOurIP())
 

Definition at line 676 of file packet_types.h.

#define OUR_MAC   (gOurMAC ? gOurMAC : rkGetOurMAC())
 

Definition at line 677 of file packet_types.h.

#define RIP_PORT   520
 

Definition at line 667 of file packet_types.h.

#define smb_base buf   )     (((char *)(buf))+4)
 

Definition at line 573 of file packet_types.h.

#define smb_com   8
 

Definition at line 404 of file packet_types.h.

#define smb_drcnt   smb_vwv6
 

Definition at line 568 of file packet_types.h.

#define smb_drdisp   smb_vwv8
 

Definition at line 570 of file packet_types.h.

#define smb_droff   smb_vwv7
 

Definition at line 569 of file packet_types.h.

#define smb_dscnt   smb_vwv11
 

Definition at line 545 of file packet_types.h.

#define smb_dsoff   smb_vwv12
 

Definition at line 546 of file packet_types.h.

#define smb_err   11
 

Definition at line 407 of file packet_types.h.

#define smb_flags   smb_vwv5
 

Definition at line 541 of file packet_types.h.

#define smb_flg   13
 

Definition at line 408 of file packet_types.h.

#define smb_flg2   14
 

Definition at line 409 of file packet_types.h.

#define smb_mdrcnt   smb_vwv3
 

Definition at line 539 of file packet_types.h.

#define smb_mid   34
 

Definition at line 414 of file packet_types.h.

#define smb_mprcnt   smb_vwv2
 

Definition at line 538 of file packet_types.h.

#define smb_msrcnt   smb_vwv4
 

Definition at line 540 of file packet_types.h.

#define smb_pid   30
 

Definition at line 412 of file packet_types.h.

#define SMB_PORT   139
 

Definition at line 593 of file packet_types.h.

#define smb_prcnt   smb_vwv3
 

Definition at line 565 of file packet_types.h.

#define smb_prdisp   smb_vwv5
 

Definition at line 567 of file packet_types.h.

#define smb_proff   smb_vwv4
 

Definition at line 566 of file packet_types.h.

#define smb_pscnt   smb_vwv9
 

Definition at line 543 of file packet_types.h.

#define smb_psoff   smb_vwv10
 

Definition at line 544 of file packet_types.h.

#define smb_rcls   9
 

Definition at line 405 of file packet_types.h.

#define smb_reb   13
 

Definition at line 410 of file packet_types.h.

#define smb_reh   10
 

Definition at line 406 of file packet_types.h.

#define smb_sdscnt   smb_vwv5
 

Definition at line 557 of file packet_types.h.

#define smb_sdsdisp   smb_vwv7
 

Definition at line 559 of file packet_types.h.

#define smb_sdsoff   smb_vwv6
 

Definition at line 558 of file packet_types.h.

#define smb_setup   smb_vwv14
 

Definition at line 548 of file packet_types.h.

#define smb_setup0   smb_setup
 

Definition at line 549 of file packet_types.h.

#define smb_setup1   (smb_setup+2)
 

Definition at line 550 of file packet_types.h.

#define smb_setup2   (smb_setup+4)
 

Definition at line 551 of file packet_types.h.

#define smb_sfid   smb_vwv8
 

Definition at line 560 of file packet_types.h.

#define smb_size   39
 

Definition at line 401 of file packet_types.h.

#define smb_spscnt   smb_vwv2
 

Definition at line 554 of file packet_types.h.

#define smb_spsdisp   smb_vwv4
 

Definition at line 556 of file packet_types.h.

#define smb_spsoff   smb_vwv3
 

Definition at line 555 of file packet_types.h.

#define smb_suwcnt   smb_vwv13
 

Definition at line 547 of file packet_types.h.

#define smb_tdrcnt   smb_vwv1
 

Definition at line 564 of file packet_types.h.

#define smb_tdscnt   smb_vwv1
 

Definition at line 537 of file packet_types.h.

#define smb_tid   28
 

Definition at line 411 of file packet_types.h.

#define smb_timeout   smb_vwv6
 

Definition at line 542 of file packet_types.h.

#define smb_tprcnt   smb_vwv0
 

Definition at line 563 of file packet_types.h.

#define smb_tpscnt   smb_vwv0
 

Definition at line 536 of file packet_types.h.

#define smb_uid   32
 

Definition at line 413 of file packet_types.h.

#define smb_vwv   37
 

Definition at line 416 of file packet_types.h.

#define smb_vwv0   37
 

Definition at line 417 of file packet_types.h.

#define smb_vwv1   39
 

Definition at line 418 of file packet_types.h.

#define smb_vwv10   57
 

Definition at line 427 of file packet_types.h.

#define smb_vwv11   59
 

Definition at line 428 of file packet_types.h.

#define smb_vwv12   61
 

Definition at line 429 of file packet_types.h.

#define smb_vwv13   63
 

Definition at line 430 of file packet_types.h.

#define smb_vwv14   65
 

Definition at line 431 of file packet_types.h.

#define smb_vwv15   67
 

Definition at line 432 of file packet_types.h.

#define smb_vwv16   69
 

Definition at line 433 of file packet_types.h.

#define smb_vwv17   71
 

Definition at line 434 of file packet_types.h.

#define smb_vwv2   41
 

Definition at line 419 of file packet_types.h.

#define smb_vwv3   43
 

Definition at line 420 of file packet_types.h.

#define smb_vwv4   45
 

Definition at line 421 of file packet_types.h.

#define smb_vwv5   47
 

Definition at line 422 of file packet_types.h.

#define smb_vwv6   49
 

Definition at line 423 of file packet_types.h.

#define smb_vwv7   51
 

Definition at line 424 of file packet_types.h.

#define smb_vwv8   53
 

Definition at line 425 of file packet_types.h.

#define smb_vwv9   55
 

Definition at line 426 of file packet_types.h.

#define smb_wct   36
 

Definition at line 415 of file packet_types.h.

#define SMBcancelf   0xD3
 

Definition at line 469 of file packet_types.h.

#define SMBchkpth   0x10
 

Definition at line 453 of file packet_types.h.

#define SMBclose   0x04
 

Definition at line 441 of file packet_types.h.

#define SMBcopy   0x29
 

Definition at line 498 of file packet_types.h.

#define SMBcreate   0x03
 

Definition at line 440 of file packet_types.h.

#define SMBctemp   0x0E
 

Definition at line 451 of file packet_types.h.

#define SMBdskattr   0x80
 

Definition at line 460 of file packet_types.h.

#define SMBecho   0x2B
 

Definition at line 500 of file packet_types.h.

#define SMBexit   0x11
 

Definition at line 454 of file packet_types.h.

#define SMBfclose   0x84
 

Definition at line 507 of file packet_types.h.

#define SMBffirst   0x82
 

Definition at line 505 of file packet_types.h.

#define SMBfindclose   0x34
 

Definition at line 513 of file packet_types.h.

#define SMBfindnclose   0x35
 

Definition at line 514 of file packet_types.h.

#define SMBflush   0x05
 

Definition at line 442 of file packet_types.h.

#define SMBfunique   0x83
 

Definition at line 506 of file packet_types.h.

#define SMBfwdname   0xD2
 

Definition at line 468 of file packet_types.h.

#define SMBgetatr   0x08
 

Definition at line 445 of file packet_types.h.

#define SMBgetattrE   0x23
 

Definition at line 492 of file packet_types.h.

#define SMBgetmac   0xD4
 

Definition at line 470 of file packet_types.h.

#define SMBinvalid   0xFE
 

Definition at line 508 of file packet_types.h.

#define SMBioctl   0x27
 

Definition at line 496 of file packet_types.h.

#define SMBioctls   0x28
 

Definition at line 497 of file packet_types.h.

#define SMBlock   0x0C
 

Definition at line 449 of file packet_types.h.

#define SMBlockingX   0x24
 

Definition at line 493 of file packet_types.h.

#define SMBlockread   0x13
 

Definition at line 476 of file packet_types.h.

#define SMBlseek   0x12
 

Definition at line 455 of file packet_types.h.

#define SMBmkdir   0x00
 

Definition at line 437 of file packet_types.h.

#define SMBmknew   0x0F
 

Definition at line 452 of file packet_types.h.

#define SMBmove   0x2A
 

Definition at line 499 of file packet_types.h.

#define SMBmv   0x07
 

Definition at line 444 of file packet_types.h.

#define SMBnegprot   0x72
 

Definition at line 459 of file packet_types.h.

#define SMBopen   0x02
 

Definition at line 439 of file packet_types.h.

#define SMBopenX   0x2D
 

Definition at line 501 of file packet_types.h.

#define SMBread   0x0A
 

Definition at line 447 of file packet_types.h.

#define SMBreadBmpx   0x1B
 

Definition at line 485 of file packet_types.h.

#define SMBreadBraw   0x1A
 

Definition at line 484 of file packet_types.h.

#define SMBreadbraw   0x1a
 

Definition at line 478 of file packet_types.h.

#define SMBreadBs   0x1C
 

Definition at line 486 of file packet_types.h.

#define SMBreadX   0x2E
 

Definition at line 502 of file packet_types.h.

#define SMBrmdir   0x01
 

Definition at line 438 of file packet_types.h.

#define SMBsearch   0x81
 

Definition at line 461 of file packet_types.h.

#define SMBsendb   0xD1
 

Definition at line 467 of file packet_types.h.

#define SMBsendend   0xD6
 

Definition at line 472 of file packet_types.h.

#define SMBsends   0xD0
 

Definition at line 466 of file packet_types.h.

#define SMBsendstrt   0xD5
 

Definition at line 471 of file packet_types.h.

#define SMBsendtxt   0xD7
 

Definition at line 473 of file packet_types.h.

#define SMBsesssetupX   0x73
 

Definition at line 504 of file packet_types.h.

#define SMBsetatr   0x09
 

Definition at line 446 of file packet_types.h.

#define SMBsetattrE   0x22
 

Definition at line 491 of file packet_types.h.

#define SMBsplclose   0xC2
 

Definition at line 464 of file packet_types.h.

#define SMBsplopen   0xC0
 

Definition at line 462 of file packet_types.h.

#define SMBsplretq   0xC3
 

Definition at line 465 of file packet_types.h.

#define SMBsplwr   0xC1
 

Definition at line 463 of file packet_types.h.

#define SMBtcon   0x70
 

Definition at line 456 of file packet_types.h.

#define SMBtconX   0x75
 

Definition at line 457 of file packet_types.h.

#define SMBtdis   0x71
 

Definition at line 458 of file packet_types.h.

#define SMBtrans   0x25
 

Definition at line 494 of file packet_types.h.

#define SMBtrans2   0x32
 

Definition at line 511 of file packet_types.h.

#define SMBtranss   0x26
 

Definition at line 495 of file packet_types.h.

#define SMBtranss2   0x33
 

Definition at line 512 of file packet_types.h.

#define SMBulogoffX   0x74
 

Definition at line 515 of file packet_types.h.

#define SMBunlink   0x06
 

Definition at line 443 of file packet_types.h.

#define SMBunlock   0x0D
 

Definition at line 450 of file packet_types.h.

#define SMBwrite   0x0B
 

Definition at line 448 of file packet_types.h.

#define SMBwriteBmpx   0x1E
 

Definition at line 488 of file packet_types.h.

#define SMBwriteBraw   0x1D
 

Definition at line 487 of file packet_types.h.

#define SMBwritebraw   0x1d
 

Definition at line 479 of file packet_types.h.

#define SMBwriteBs   0x1F
 

Definition at line 489 of file packet_types.h.

#define SMBwriteC   0x20
 

Definition at line 490 of file packet_types.h.

#define SMBwritec   0x20
 

Definition at line 480 of file packet_types.h.

#define SMBwriteclose   0x2c
 

Definition at line 481 of file packet_types.h.

#define SMBwriteunlock   0x14
 

Definition at line 477 of file packet_types.h.

#define SMBwriteX   0x2F
 

Definition at line 503 of file packet_types.h.

#define SNMP_PORT   161
 

Definition at line 664 of file packet_types.h.

#define SNMPTRAP_PORT   162
 

Definition at line 666 of file packet_types.h.

#define SUNRPC_PORT   111
 

Definition at line 663 of file packet_types.h.

#define TCPOPT_EOL   0
 

Definition at line 370 of file packet_types.h.

#define TCPOPT_MAXSEG   2
 

Definition at line 372 of file packet_types.h.

#define TCPOPT_NOP   1
 

Definition at line 371 of file packet_types.h.

#define TFTP_PORT   69
 

Definition at line 660 of file packet_types.h.

#define TH_ACK   0x10
 

Definition at line 363 of file packet_types.h.

#define TH_FIN   0x01
 

Definition at line 359 of file packet_types.h.

#define TH_PSH   0x08
 

Definition at line 362 of file packet_types.h.

#define TH_RST   0x04
 

Definition at line 361 of file packet_types.h.

#define TH_SYN   0x02
 

Definition at line 360 of file packet_types.h.

#define TH_URG   0x20
 

Definition at line 364 of file packet_types.h.

#define TICK_TIME   10
 

Definition at line 675 of file packet_types.h.

#define TRANSACT2_FINDFIRST   1
 

Definition at line 520 of file packet_types.h.

#define TRANSACT2_FINDNEXT   2
 

Definition at line 521 of file packet_types.h.

#define TRANSACT2_FINDNOTIFYFIRST   11
 

Definition at line 530 of file packet_types.h.

#define TRANSACT2_FINDNOTIFYNEXT   12
 

Definition at line 531 of file packet_types.h.

#define TRANSACT2_FSCTL   9
 

Definition at line 528 of file packet_types.h.

#define TRANSACT2_IOCTL   10
 

Definition at line 529 of file packet_types.h.

#define TRANSACT2_MKDIR   13
 

Definition at line 532 of file packet_types.h.

#define TRANSACT2_OPEN   0
 

Definition at line 519 of file packet_types.h.

#define TRANSACT2_QFILEINFO   7
 

Definition at line 526 of file packet_types.h.

#define TRANSACT2_QFSINFO   3
 

Definition at line 522 of file packet_types.h.

#define TRANSACT2_QPATHINFO   5
 

Definition at line 524 of file packet_types.h.

#define TRANSACT2_SETFILEINFO   8
 

Definition at line 527 of file packet_types.h.

#define TRANSACT2_SETFSINFO   4
 

Definition at line 523 of file packet_types.h.

#define TRANSACT2_SETPATHINFO   6
 

Definition at line 525 of file packet_types.h.


Typedef Documentation

typedef long n_long
 

Definition at line 7 of file packet_types.h.

typedef short n_short
 

Definition at line 8 of file packet_types.h.

typedef long n_time
 

Definition at line 9 of file packet_types.h.

typedef struct _RIPDERM * PRIPDERM
 

typedef struct _RIPDERM RIPDERM
 

typedef u_long tcp_seq
 

Definition at line 348 of file packet_types.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
TCP_ESTABLISHED 
TCP_SYN_SENT 
TCP_SYN_RECV 
TCP_FIN_WAIT1 
TCP_FIN_WAIT2 
TCP_TIME_WAIT 
TCP_CLOSE 
TCP_CLOSE_WAIT 
TCP_LAST_ACK 
TCP_LISTEN 
TCP_CLOSING 

Definition at line 374 of file packet_types.h.

enum name_source
 

Enumeration values:
LMHOSTS 
REGISTER 
SELF 
DNS 
DNSFAIL 

Definition at line 595 of file packet_types.h.

enum node_type
 

Enumeration values:
B_NODE 
P_NODE 
M_NODE 
NBDD_NODE 

Definition at line 596 of file packet_types.h.

enum packet_type
 

Enumeration values:
NMB_PACKET 
DGRAM_PACKET 

Definition at line 597 of file packet_types.h.


Variable Documentation

u_char bcastaddr[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } [static]
 

Definition at line 100 of file packet_types.h.

struct etherproto etherproto_db[]
 


Generated on Sun May 14 14:51:28 2006 by  doxygen 1.4.2