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

File containing the implementation of the network interface utilities. More...

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <net/if.h>
#include <string.h>
#include "log.h"
Include dependency graph for ifaceu.c:

Functions

unsigned int iface_nametoindex (const char *ifname)
 if_nametoindex from net/if.h More...
 
bool iface_exists (const char *ifname)
 Check if interface exists. More...
 

Detailed Description

File containing the implementation of the network interface utilities.

Author
Alexandru Mereacre
Date
2020

Function Documentation

◆ iface_exists()

bool iface_exists ( const char *  ifname)

Check if interface exists.

Parameters
ifnameThe interface name string
Returns
true if it exists, false otherwise

◆ iface_nametoindex()

unsigned int iface_nametoindex ( const char *  ifname)

if_nametoindex from net/if.h