Main Page | Data Structures | Directories | File List | Data Fields | Globals

libtrace_int.h File Reference

Go to the source code of this file.

Defines

#define RP_BUFSIZE   65536U
#define TRACE_SLL_HOST   0
#define TRACE_SLL_BROADCAST   1
#define TRACE_SLL_MULTICAST   2
#define TRACE_SLL_OTHERHOST   3
#define TRACE_SLL_OUTGOING   4
#define PF_RULESET_NAME_SIZE   16
#define IFNAMSIZ   16
#define bswap_host_to_be64(num)   ((uint64_t)(num))
#define bswap_host_to_le64(num)   byteswap64(num)
#define bswap_host_to_be32(num)   ((uint32_t)(num))
#define bswap_host_to_le32(num)   byteswap32(num)
#define bswap_host_to_be16(num)   ((uint16_t)(num))
#define bswap_host_to_le16(num)   byteswap16(num)
#define bswap_be_to_host64(num)   ((uint64_t)(num))
#define bswap_le_to_host64(num)   byteswap64(num)
#define bswap_be_to_host32(num)   ((uint32_t)(num))
#define bswap_le_to_host32(num)   byteswap32(num)
#define bswap_be_to_host16(num)   ((uint16_t)(num))
#define bswap_le_to_host16(num)   byteswap16(num)
#define TRACE_RADIOTAP_F_FCS   0x10

Typedefs

typedef void void struct libtrace_sll_header_t libtrace_sll_header_t
typedef libtrace_pflog_header_t libtrace_pflog_header_t
typedef libtrace_pcapfile_pkt_hdr_t libtrace_pcapfile_pkt_hdr_t
 libtrace packet

Functions

int strncasecmp (const char *str1, const char *str2, size_t n)
int snprintf (char *str, size_t size, const char *format,...)
void trace_set_err (libtrace_t *trace, int errcode, const char *msg,...) PRINTF(3
void void trace_set_err_out (libtrace_out_t *trace, int errcode, const char *msg,...) PRINTF(3
void register_format (struct libtrace_format_t *format)
libtrace_linktype_t pcap_linktype_to_libtrace (libtrace_dlt_t linktype)
libtrace_rt_types_t pcap_linktype_to_rt (libtrace_dlt_t linktype)
libtrace_dlt_t libtrace_to_pcap_linktype (libtrace_linktype_t type)
libtrace_dlt_t libtrace_to_pcap_dlt (libtrace_linktype_t type)
libtrace_dlt_t rt_to_pcap_linktype (libtrace_rt_types_t rt_type)
libtrace_linktype_t erf_type_to_libtrace (uint8_t erf)
uint8_t libtrace_to_erf_type (libtrace_linktype_t linktype)
libtrace_linktype_t arphrd_type_to_libtrace (unsigned int)
unsigned int libtrace_to_arphrd_type (libtrace_linktype_t)
void promote_packet (libtrace_packet_t *packet)
 Tinker with a packet packets that don't support direction tagging are annoying, especially when we have direction tagging information! So this converts the packet to TRACE_TYPE_LINUX_SLL which does support direction tagging.
bool demote_packet (libtrace_packet_t *packet)
void * trace_get_payload_from_linux_sll (void *, uint16_t *, uint32_t *)
void * trace_get_payload_from_pos (void *, uint16_t *, uint32_t *)
DLLEXPORT void * trace_get_payload_from_atm (void *, uint8_t *, uint32_t *)
uint64_t byteswap64 (uint64_t num)
uint32_t byteswap32 (uint32_t num)
uint16_t byteswap16 (uint16_t num)
void erf_constructor (void)
void tsh_constructor (void)
void legacy_constructor (void)
void linuxnative_constructor (void)
void pcap_constructor (void)
void pcapfile_constructor (void)
void rt_constructor (void)
void duck_constructor (void)
void atmhdr_constructor (void)
bool trace_get_wireless_flags (void *link, libtrace_linktype_t linktype, uint8_t *flags)

Variables

libtrace_format_tform


Detailed Description


Typedef Documentation

typedef struct libtrace_pcapfile_pkt_hdr_t libtrace_pcapfile_pkt_hdr_t
 

libtrace packet


Function Documentation

void promote_packet libtrace_packet_t packet  ) 
 

Tinker with a packet packets that don't support direction tagging are annoying, especially when we have direction tagging information! So this converts the packet to TRACE_TYPE_LINUX_SLL which does support direction tagging.

This is a pcap style packet for the reason that it means it works with bpf filters.

Note:
this will copy the packet, so use sparingly if possible.


Generated on Wed Sep 5 17:48:05 2007 for WAND Trace processing by  doxygen 1.4.2