EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Functions
reflection_list.c File Reference

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include "../utils/allocs.h"
#include "../utils/log.h"
#include "reflection_list.h"
Include dependency graph for reflection_list.c:

Functions

void setup_reflection_if_el (struct reflection_list *el, unsigned int ifindex, const char *ifname)
 
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...
 
struct reflection_listpop_reflection_list (struct reflection_list *rif)
 
void free_reflection_list_el (struct reflection_list *el)
 
void free_reflection_list (struct reflection_list *rif)
 Frees the reflection list. More...
 

Detailed Description

File containing the implementation 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

◆ free_reflection_list_el()

void free_reflection_list_el ( struct reflection_list el)

◆ 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

◆ pop_reflection_list()

struct reflection_list* pop_reflection_list ( struct reflection_list rif)

◆ 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

◆ setup_reflection_if_el()

void setup_reflection_if_el ( struct reflection_list el,
unsigned int  ifindex,
const char *  ifname 
)