tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

be13::packet_info Class Reference

#include <bulk_extractor_i.h>

Collaboration diagram for be13::packet_info:
[legend]

Classes

class  frame_too_short
 

Public Types

enum  vlan_t { NO_VLAN =-1 }
 

Public Member Functions

 packet_info (const int dlt, const struct pcap_pkthdr *h, const u_char *d, const struct timeval &ts_, const uint8_t *d2, size_t dl2)
 
 packet_info (const int dlt, const struct pcap_pkthdr *h, const u_char *d)
 
int ip_version () const
 
u_short ether_type () const
 
int vlan () const
 
const uint8_tget_ether_dhost () const
 
const uint8_tget_ether_shost () const
 
bool is_ip4 () const
 
bool is_ip6 () const
 
bool is_ip4_tcp () const
 
bool is_ip6_tcp () const
 
const struct in_addr * get_ip4_src () const
 
const struct in_addr * get_ip4_dst () const
 
uint8_t get_ip4_proto () const
 
uint8_t get_ip6_nxt_hdr () const
 
uint16_t get_ip6_plen () const
 
const struct ip6_addrget_ip6_src () const
 
const struct ip6_addrget_ip6_dst () const
 
uint16_t get_ip4_tcp_sport () const
 
uint16_t get_ip4_tcp_dport () const
 
uint16_t get_ip6_tcp_sport () const
 
uint16_t get_ip6_tcp_dport () const
 

Static Public Member Functions

static u_short nshort (const u_char *buf, size_t pos)
 

Public Attributes

const int pcap_dlt
 
const struct pcap_pkthdrpcap_hdr
 
const u_char * pcap_data
 
const struct timeval & ts
 
const uint8_t *const ip_data
 
const size_t ip_datalen
 

Static Public Attributes

static const size_t ip4_proto_off = 9
 
static const size_t ip4_src_off = 12
 
static const size_t ip4_dst_off = 16
 
static const size_t ip6_nxt_hdr_off = 6
 
static const size_t ip6_plen_off = 4
 
static const size_t ip6_src_off = 8
 
static const size_t ip6_dst_off = 24
 
static const size_t tcp_sport_off = 0
 
static const size_t tcp_dport_off = 2
 

Detailed Description

Definition at line 298 of file bulk_extractor_i.h.


The documentation for this class was generated from the following file: