EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
reflection_list.h
Go to the documentation of this file.
1 
11 #ifndef REFLECTION_LIST_H
12 #define REFLECTION_LIST_H
13 
14 #include <stdbool.h>
15 #include <sys/socket.h>
16 #include <net/if.h>
17 #include <sys/types.h>
18 
19 #include <list.h>
20 
22  int recv_fd;
23  int send_fd;
24  unsigned int ifindex;
25  char ifname[IF_NAMESIZE];
26  struct dl_list list;
27 };
28 
35 
46  unsigned int ifindex,
47  const char *ifname);
48 
54 void free_reflection_list(struct reflection_list *rif);
55 
56 #endif // REFLECTION_ZONE_H
struct reflection_list * init_reflection_list(void)
Initialises the reflection list.
Definition: reflection_list.c:33
struct reflection_list * push_reflection_list(struct reflection_list *rif, unsigned int ifindex, const char *ifname)
Pushes an interface element to the reflection list.
Definition: reflection_list.c:46
void free_reflection_list(struct reflection_list *rif)
Frees the reflection list.
Definition: reflection_list.c:82
Definition: reflection_list.h:21
int send_fd
Definition: reflection_list.h:23
unsigned int ifindex
Definition: reflection_list.h:24
int recv_fd
Definition: reflection_list.h:22
struct dl_list list
Definition: reflection_list.h:26
char ifname[IF_NAMESIZE]
Definition: reflection_list.h:25