EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
mdns_service.h
Go to the documentation of this file.
1 
11 #ifndef MDNS_SERVICE_H
12 #define MDNS_SERVICE_H
13 
14 #include "../utils/iface_mapper.h"
15 #include "command_mapper.h"
16 #include "dns_config.h"
17 #include "mdns_mapper.h"
18 #include "reflection_list.h"
19 
24 struct mdns_context {
30  UT_array *pctx_list;
31  struct mdns_conf config;
35  int sfd;
36 };
37 
44 int run_mdns(struct mdns_context *context);
45 
55 int run_mdns_thread(struct mdns_conf *mdns_config,
56  char *supervisor_control_path, hmap_vlan_conn *vlan_mapper,
57  pthread_t *id);
64 int close_mdns(struct mdns_context *context);
65 
66 #endif
File containing the definition of the command mapper.
File containing the definition of dns service configuration utilities.
File containing the definition of mdns mapper utils.
int run_mdns(struct mdns_context *context)
Runs the mDNS forwarder service.
Definition: mdns_service.c:672
int close_mdns(struct mdns_context *context)
Closes mDNS service.
Definition: mdns_service.c:451
int run_mdns_thread(struct mdns_conf *mdns_config, char *supervisor_control_path, hmap_vlan_conn *vlan_mapper, pthread_t *id)
Runs the mDNS forwarder service thread.
Definition: mdns_service.c:762
#define MAX_OS_PATH_LEN
Definition: os.h:29
File containing the definition of reflection list structures.
Command mapper connection structure.
Definition: command_mapper.h:27
MDNS connection structure.
Definition: mdns_mapper.h:26
VLAN to interface connection mapper.
Definition: iface_mapper.h:96
The mDNS configuration structures.
Definition: dns_config.h:51
The mDNS context.
Definition: mdns_service.h:24
struct reflection_list * rif4
Definition: mdns_service.h:25
UT_array * pctx_list
Definition: mdns_service.h:30
struct reflection_list * rif6
Definition: mdns_service.h:26
hmap_command_conn * command_mapper
Definition: mdns_service.h:29
int sfd
Definition: mdns_service.h:35
struct mdns_conf config
Definition: mdns_service.h:31
char supervisor_control_path[MAX_OS_PATH_LEN]
Definition: mdns_service.h:32
hmap_vlan_conn * vlan_mapper
Definition: mdns_service.h:28
hmap_mdns_conn * imap
Definition: mdns_service.h:27
Definition: reflection_list.h:21