Macros | Functions |
yaidspcap.h File Reference
#include <pcap.h>
Include dependency graph for yaidspcap.h:
#define
#define
void
yaidspcap_init (yaidsPcapHandle_ptr pcapHandle)
yaidspcap_new_packet (int size)
int
yaidspcap_create_handle (yaidsConfig_ptr config, yaidsPcapHandle_ptr pcapHandle)
void
yaidspcap_read_packets (yaidsPcapHandle_ptr pcapHandle, yaidsPcapCallbackArgs_ptr callbackArgs)
void
yaidspcap_read_callback (u_char *args, const struct pcap_pkthdr *packetHeader, const u_char *packetBody)
u_char *
yaidspcap_get_yara_packet_header (yaidsPcapPacketHeader_ptr parsedPacketHeaders, u_char *yaraPacketHeader)
yaidsPcapPacketHeaderFrame_ptr
yaidspcap_parse_pcap_headers_frame (etherHeader_ptr etherHeader)
yaidspcap_parse_pcap_headers_net (etherHeader_ptr etherHeader, ipHeader_ptr ipHeader)
yaidsPcapPacketHeaderTransport_ptr
yaidspcap_parse_pcap_headers_transport (yaidsPcapPacket_ptr packet, ipHeader_ptr ipHeader)
char *
yaidspcap_parse_pcap_headers_get_nettype (etherHeader_ptr etherHeader)
char *
yaidspcap_parse_pcap_headers_get_transporttype (ipHeader_ptr ipHeader)
void
yaidspcap_parse_pcap_headers_results (yaidsPcapPacketHeader_ptr parsedPacketHeaders, yaidsPcapPacketHeaderFrame_ptr frameHeader, yaidsPcapPacketHeaderNet_ptr netHeader, yaidsPcapPacketHeaderTransport_ptr transportHeader)
void
yaidspcap_parse_pcap_headers (yaidsPcapPacket_ptr packet, yaidsPcapPacketHeader_ptr parsedPacketHeaders)
FILE *
yaidspcap_open_output_pcap_file (yaidsPcapHandle_ptr pcapHandle, yaidsConfig_ptr config)
void
yaidspcap_write_packet (FILE *pcapFileHandle, yaidsPcapPacket_ptr packet)
void
yaidspcap_flush_output (FILE *pcapFileHandle)
void
yaidspcap_finish (void)
char *
yaids_ether_ntoa (etherAddress_ptr address)
char *
yaids_ether_ntoa_r (etherAddress_ptr address, char *buffer)
#define ETH_HEADER_SIZE 14 |
#define PKT_PREPROC_HDR_SIZE 255 |
char* yaids_ether_ntoa | ( | etherAddress_ptr | address | ) |
char* yaids_ether_ntoa_r | ( | etherAddress_ptr | address, |
char * | buffer | ||
) |
int yaidspcap_create_handle | ( | yaidsConfig_ptr | config, |
yaidsPcapHandle_ptr | pcapHandle | ||
) |
void yaidspcap_finish | ( | void | ) |
void yaidspcap_flush_output | ( | FILE * | pcapFileHandle | ) |
u_char* yaidspcap_get_yara_packet_header | ( | yaidsPcapPacketHeader_ptr | parsedPacketHeaders, |
u_char * | yaraPacketHeader | ||
) |
void yaidspcap_init | ( | yaidsPcapHandle_ptr | pcapHandle | ) |
yaidsPcapPacket_ptr yaidspcap_new_packet | ( | int | size | ) |
FILE* yaidspcap_open_output_pcap_file | ( | yaidsPcapHandle_ptr | pcapHandle, |
yaidsConfig_ptr | config | ||
) |
void yaidspcap_parse_pcap_headers | ( | yaidsPcapPacket_ptr | packet, |
yaidsPcapPacketHeader_ptr | parsedPacketHeaders | ||
) |
yaidsPcapPacketHeaderFrame_ptr yaidspcap_parse_pcap_headers_frame | ( | etherHeader_ptr | etherHeader | ) |
char* yaidspcap_parse_pcap_headers_get_nettype | ( | etherHeader_ptr | etherHeader | ) |
char* yaidspcap_parse_pcap_headers_get_transporttype | ( | ipHeader_ptr | ipHeader | ) |
yaidsPcapPacketHeaderNet_ptr yaidspcap_parse_pcap_headers_net | ( | etherHeader_ptr | etherHeader, |
ipHeader_ptr | ipHeader | ||
) |
void yaidspcap_parse_pcap_headers_results | ( | yaidsPcapPacketHeader_ptr | parsedPacketHeaders, |
yaidsPcapPacketHeaderFrame_ptr | frameHeader, | ||
yaidsPcapPacketHeaderNet_ptr | netHeader, | ||
yaidsPcapPacketHeaderTransport_ptr | transportHeader | ||
) |
yaidsPcapPacketHeaderTransport_ptr yaidspcap_parse_pcap_headers_transport | ( | yaidsPcapPacket_ptr | packet, |
ipHeader_ptr | ipHeader | ||
) |
void yaidspcap_read_callback | ( | u_char * | args, |
const struct pcap_pkthdr * | packetHeader, | ||
const u_char * | packetBody | ||
) |
void yaidspcap_read_packets | ( | yaidsPcapHandle_ptr | pcapHandle, |
yaidsPcapCallbackArgs_ptr | callbackArgs | ||
) |
void yaidspcap_write_packet | ( | FILE * | pcapFileHandle, |
yaidsPcapPacket_ptr | packet | ||
) |
Source Code Documentation Generated By doxygen