qwf_net_GetDefaultInterface()

Get the name of the default network interface

Synopsis:

#include <qwf/qwf_net.h>
qwf_net_Results_e qwf_net_GetDefaultInterface(qwf_Context_t *pCtx,
                                              qwf_net_IfName_t *pIfName);

Arguments:

pCtx
A pointer to the QWF service context created by qwf_Init()
pIfName
A pointer to a qwf_net_IfName_t object for storing the name of the default network interface being used by the device

Library:

qwf_interface

Returns:

NET_OK Successful result

NET_ERR_PARAM A pointer argument is NULL or the QWF Network Manager context can't be retrieved