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

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

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
Include dependency graph for ifaceu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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 definition 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