Interfaces management

File: csp/csp_iflist.h

Description: Interfaces management

Interface Functions

void csp_iflist_add(csp_iface_t *iface)
[source]

Add interface to the list.

Parameters:
  • iface – The interface must remain valid as long as the application is running.

void csp_iflist_remove(csp_iface_t *ifc)
[source]

Remove interface from the list.

Parameters:
  • ifc – Interface to remove. NULL will be gracefully handled.

unsigned long csp_bytesize(unsigned long bytes, char *postfix)
[source]

Convert bytes to readable string

void csp_iflist_check_dfl(void)
[source]

Runs over the list of interfaces, and if no default interface is found set default on ALL interfaces