|
EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of the mdns packet decoder utilities. More...
#include <utarray.h>#include "../../../utils/net.h"#include "../../../utils/os.h"#include "packet_decoder.h"Go to the source code of this file.
Data Structures | |
| struct | mdns_query_entry |
| struct | mdns_answer_entry |
Functions | |
| int | decode_mdns_queries (uint8_t *payload, size_t len, size_t *first, uint16_t nqueries, UT_array *queries) |
| Decodes the mdns queries. More... | |
| int | decode_mdns_answers (uint8_t *payload, size_t len, size_t *first, uint16_t nanswers, UT_array *answers) |
| Decodes the mdns answers. More... | |
| int | decode_mdns_header (uint8_t *packet, struct mdns_header *out) |
| Decodes the mdns header. More... | |
| bool | decode_mdns_packet (struct capture_packet *cpac) |
| Decode mdns packet. More... | |
File containing the definition of the mdns packet decoder utilities.
| int decode_mdns_answers | ( | uint8_t * | payload, |
| size_t | len, | ||
| size_t * | first, | ||
| uint16_t | nanswers, | ||
| UT_array * | answers | ||
| ) |
Decodes the mdns answers.
| payload | The mdns payload | |
| len | The mdns payload length | |
| [in,out] | first | The starting index to the answers field in the mdns payload. When done, this will be modified to be the starting index of the next field. |
| nanswers | The number of answers | |
| [in,out] | answers | The mdns_answer_entry answers array |
| int decode_mdns_header | ( | uint8_t * | packet, |
| struct mdns_header * | out | ||
| ) |
Decodes the mdns header.
| packet | The mdns packet |
| out | The output mdns decoded header |
| bool decode_mdns_packet | ( | struct capture_packet * | cpac | ) |
Decode mdns packet.
| cpac | The capture packet structure |
| int decode_mdns_queries | ( | uint8_t * | payload, |
| size_t | len, | ||
| size_t * | first, | ||
| uint16_t | nqueries, | ||
| UT_array * | queries | ||
| ) |
Decodes the mdns queries.
| payload | The mdns payload | |
| len | The mdns payload length | |
| [in,out] | first | The starting index to the queries field in the mdns payload. When done, this will be modified to be the starting index of the next field. |
| nqueries | The number of queries | |
| [in,out] | queries | The mdns_query_entry queries array |