EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the sqlite header utilities. More...
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <string.h>
#include "../../../utils/allocs.h"
#include "../../../utils/log.h"
#include "../../../utils/os.h"
#include "../../../utils/sqliteu.h"
#include "packet_decoder.h"
#include "sqlite_header.h"
Macros | |
#define | EXTRACT_META_PACKET(term, tp) |
Functions | |
int | extract_eth_statement (sqlite3 *db, struct eth_schema *eths) |
int | extract_arp_statement (sqlite3 *db, struct arp_schema *arps) |
int | extract_ip4_statement (sqlite3 *db, struct ip4_schema *ip4s) |
int | extract_ip6_statement (sqlite3 *db, struct ip6_schema *ip6s) |
int | extract_tcp_statement (sqlite3 *db, struct tcp_schema *tcps) |
int | extract_udp_statement (sqlite3 *db, struct udp_schema *udps) |
int | extract_icmp4_statement (sqlite3 *db, struct icmp4_schema *icmp4s) |
int | extract_icmp6_statement (sqlite3 *db, struct icmp6_schema *icmp6s) |
int | extract_dns_statement (sqlite3 *db, struct dns_schema *dnss) |
int | extract_mdsn_statement (sqlite3 *db, struct mdns_schema *mdnss) |
int | extract_dhcp_statement (sqlite3 *db, struct dhcp_schema *dhcps) |
int | save_packet_statement (sqlite3 *db, struct tuple_packet *tp) |
Save packets to sqlite db. More... | |
int | init_sqlite_header_db (sqlite3 *db) |
Initialises the sqlite3 header db tables. More... | |
File containing the implementation of the sqlite header utilities.
#define EXTRACT_META_PACKET | ( | term, | |
tp | |||
) |
int extract_arp_statement | ( | sqlite3 * | db, |
struct arp_schema * | arps | ||
) |
int extract_dhcp_statement | ( | sqlite3 * | db, |
struct dhcp_schema * | dhcps | ||
) |
int extract_dns_statement | ( | sqlite3 * | db, |
struct dns_schema * | dnss | ||
) |
int extract_eth_statement | ( | sqlite3 * | db, |
struct eth_schema * | eths | ||
) |
int extract_icmp4_statement | ( | sqlite3 * | db, |
struct icmp4_schema * | icmp4s | ||
) |
int extract_icmp6_statement | ( | sqlite3 * | db, |
struct icmp6_schema * | icmp6s | ||
) |
int extract_ip4_statement | ( | sqlite3 * | db, |
struct ip4_schema * | ip4s | ||
) |
int extract_ip6_statement | ( | sqlite3 * | db, |
struct ip6_schema * | ip6s | ||
) |
int extract_mdsn_statement | ( | sqlite3 * | db, |
struct mdns_schema * | mdnss | ||
) |
int extract_tcp_statement | ( | sqlite3 * | db, |
struct tcp_schema * | tcps | ||
) |
int extract_udp_statement | ( | sqlite3 * | db, |
struct udp_schema * | udps | ||
) |
int init_sqlite_header_db | ( | sqlite3 * | db | ) |
Initialises the sqlite3 header db tables.
db | The sqlite3 db |
int save_packet_statement | ( | sqlite3 * | db, |
struct tuple_packet * | tp | ||
) |
Save packets to sqlite db.
db | The sqlite3 db |
tp | The packet tuple structure |