if_freenameindex - free memory allocated byifnameindex()
#include <net/if.h> void if_freenameindex(struct if_nameindex *ptr);
Argument if_nameindex must be a pointer that was returned byif_nameindex() . Functionif_freenameindex() frees the memory allocated byif_nameindex() . Afterif_freenameindex() has been called, the application should not use the array of which ptr is the address.
- [EFAULT]
- Argument if_nameindex is not a pointer that was returned by
if_nameindex() . Note that implementations need not always detect this fault. If an implementation does not do so, the results are unspecified.
getsockopt() , f_indextonamef_indextoname() ,if_nameindex() ,if_nametoindex() ,setsockopt() ,<net/if.h> .
First released in Issue 5.2.
Contents | Next section | Index |