EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Data Structures | Functions
reflection_list.h File Reference

File containing the definition of reflection list structures. More...

#include <stdbool.h>
#include <sys/socket.h>
#include <net/if.h>
#include <sys/types.h>
#include <list.h>
Include dependency graph for reflection_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  reflection_list
 

Functions

struct reflection_listinit_reflection_list (void)
 Initialises the reflection list. More...
 
struct reflection_listpush_reflection_list (struct reflection_list *rif, unsigned int ifindex, const char *ifname)
 Pushes an interface element to the reflection list. More...
 
void free_reflection_list (struct reflection_list *rif)
 Frees the reflection list. More...
 

Detailed Description

File containing the definition of reflection list structures.

Author
Alexandru Mereacre
Date
2021

Function Documentation

◆ free_reflection_list()

void free_reflection_list ( struct reflection_list rif)

Frees the reflection list.

Parameters
rifThe reflection list

◆ init_reflection_list()

struct reflection_list* init_reflection_list ( void  )

Initialises the reflection list.

Returns
struct reflection_list * The reflection list or NULL on failure

◆ push_reflection_list()

struct reflection_list* push_reflection_list ( struct reflection_list rif,
unsigned int  ifindex,
const char *  ifname 
)

Pushes an interface element to the reflection list.

Parameters
rifThe reflection list
ifindexThe interface index
ifnameThe interface name
Returns
struct reflection_list* Returned the interface list element, NULL on failure