Interfaces management

File: csp/csp_iflist.h

Description: Interfaces management

Interface Functions

int csp_iflist_add(csp_iface_t *iface)

Add interface to the list.

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


#CSP_ERR_NONE on success, otherwise an error code.

void csp_iflist_remove(csp_iface_t *ifc)

Remove interface from the list.

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

unsigned long csp_bytesize(unsigned long bytes, char *postfix)

Convert bytes to readable string

void csp_iflist_check_dfl(void)

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