|
EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of mdns mapper utils. More...
#include <utarray.h>#include <uthash.h>#include "mdns_list.h"#include "../capture/middlewares/header_middleware/mdns_decoder.h"#include "../utils/os.h"Go to the source code of this file.
Data Structures | |
| struct | hashmap_mdns_conn |
| MDNS connection structure. More... | |
Typedefs | |
| typedef struct hashmap_mdns_conn | hmap_mdns_conn |
| MDNS connection structure. More... | |
Functions | |
| int | put_mdns_query_mapper (hmap_mdns_conn **imap, uint8_t *ip, struct mdns_query_entry *query) |
| Inserts an mDNS query structure into the mdns mapper connection object. More... | |
| int | put_mdns_answer_mapper (hmap_mdns_conn **imap, uint8_t *ip, struct mdns_answer_entry *query) |
| Inserts an mDNS answer structure into the mdns mapper connection object. More... | |
| void | free_mdns_mapper (hmap_mdns_conn **imap) |
| Frees the mDNS mapper connection object. More... | |
| int | check_mdns_mapper_req (hmap_mdns_conn **imap, uint8_t *ip, enum MDNS_REQUEST_TYPE request) |
| Checks if mDNS mapper has an element with a given request type. More... | |
File containing the definition of mdns mapper utils.
| typedef struct hashmap_mdns_conn hmap_mdns_conn |
MDNS connection structure.
| int check_mdns_mapper_req | ( | hmap_mdns_conn ** | imap, |
| uint8_t * | ip, | ||
| enum MDNS_REQUEST_TYPE | request | ||
| ) |
Checks if mDNS mapper has an element with a given request type.
| imap | mDNS mapper object |
| ip | The IP |
| request | The request type |
| void free_mdns_mapper | ( | hmap_mdns_conn ** | imap | ) |
Frees the mDNS mapper connection object.
| imap | mDNS mapper connection object |
| int put_mdns_answer_mapper | ( | hmap_mdns_conn ** | imap, |
| uint8_t * | ip, | ||
| struct mdns_answer_entry * | query | ||
| ) |
Inserts an mDNS answer structure into the mdns mapper connection object.
| imap | mDNS mapper object |
| ip | The IP |
| query | mDNS answer structure |
| int put_mdns_query_mapper | ( | hmap_mdns_conn ** | imap, |
| uint8_t * | ip, | ||
| struct mdns_query_entry * | query | ||
| ) |
Inserts an mDNS query structure into the mdns mapper connection object.
| imap | mDNS mapper object |
| ip | The IP |
| query | mDNS query structure |