| 
    EDGESEC
    0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
    
   Secure router - reference implementation 
   | 
 
File containing the definition of the packet decoder utilities. More...
#include <net/if.h>#include <pcap.h>#include <utarray.h>#include "../../../utils/allocs.h"#include "../../../utils/attributes.h"#include "../../../utils/net.h"#include "../../../utils/os.h"Go to the source code of this file.
Data Structures | |
| struct | tuple_packet | 
| struct | eth_schema | 
| Ethernet protocol schema definition.  More... | |
| struct | arp_schema | 
| ARP protocol schema definition.  More... | |
| struct | ip4_schema | 
| IP4 protocol schema definition.  More... | |
| struct | ip6_schema | 
| IP6 protocol schema definition.  More... | |
| struct | tcp_schema | 
| TCP protocol schema definition.  More... | |
| struct | udp_schema | 
| UDP protocol schema definition.  More... | |
| struct | icmp4_schema | 
| ICMP4 protocol schema definition.  More... | |
| struct | icmp6_schema | 
| ICMP6 protocol schema definition.  More... | |
| struct | dns_schema | 
| DNS protocol schema definition.  More... | |
| struct | mdns_schema | 
| mDNS protocol schema definition  More... | |
| struct | dhcp_schema | 
| DHCP protocol schema definition.  More... | |
| struct | dns_header | 
| DNS header definition.  More... | |
| struct | mdns_header | 
| mDNS header definition  More... | |
| struct | mdns_query_meta | 
| mDNS query meta definition  More... | |
| struct | mdns_answer_meta | 
| mDNS response meta definition  More... | |
| struct | dhcp_header | 
| DHCP header definition (truncated)  More... | |
| struct | capture_packet | 
| Capture structure definition.  More... | |
Macros | |
| #define | MAX_QUESTION_LEN 255 | 
Typedefs | |
| typedef enum packet_types | PACKET_TYPES | 
Enumerations | |
| enum | packet_types {  PACKET_NONE = 0 , PACKET_ETHERNET , PACKET_ARP , PACKET_IP4 , PACKET_IP6 , PACKET_TCP , PACKET_UDP , PACKET_ICMP4 , PACKET_ICMP6 , PACKET_DNS , PACKET_MDNS , PACKET_DHCP }  | 
Functions | |
| int | extract_packets (const char *ltype, const struct pcap_pkthdr *header, const uint8_t *packet, char *interface, UT_array *tp_array) | 
| Extract packets from pcap packet data.  More... | |
Variables | |
| struct mdns_query_meta | STRUCT_PACKED | 
File containing the definition of the packet decoder utilities.
| #define MAX_QUESTION_LEN 255 | 
| typedef enum packet_types PACKET_TYPES | 
| enum packet_types | 
| int extract_packets | ( | const char * | ltype, | 
| const struct pcap_pkthdr * | header, | ||
| const uint8_t * | packet, | ||
| char * | interface, | ||
| UT_array * | tp_array | ||
| ) | 
Extract packets from pcap packet data.
| ltype | The link type | 
| header | The packet header as per pcap | 
| packet | The packet data | 
| interface | The packet interface | 
| tp_array | The array of returned packet tuples | 
| struct dhcp_header STRUCT_PACKED |