EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Functions
dns_decoder.c File Reference

File containing the implementation of the dns packet decoder utilities. More...

#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <utarray.h>
#include "../../../utils/allocs.h"
#include "../../../utils/hash.h"
#include "../../../utils/os.h"
#include "packet_decoder.h"
Include dependency graph for dns_decoder.c:

Functions

void decode_dns_questions (uint8_t *payload, struct capture_packet *cpac)
 
bool decode_dns_packet (struct capture_packet *cpac)
 Decode dns packet. More...
 

Detailed Description

File containing the implementation of the dns packet decoder utilities.

Author
Alexandru Mereacre
Date
2021

Function Documentation

◆ decode_dns_packet()

bool decode_dns_packet ( struct capture_packet cpac)

Decode dns packet.

Parameters
cpacThe captyure packet structure
Returns
true Success, false otherwise

◆ decode_dns_questions()

void decode_dns_questions ( uint8_t *  payload,
struct capture_packet cpac 
)