History log of /seL4-test-master/projects/musllibc/src/network/if_nametoindex.c
Revision Date Author Comments
# 3cdbfb99 15-Jan-2016 Ron Yorston <rmy@frippery.org>

fix if_nametoindex return value when socket open fails

The return value of if_nametoindex is unsigned; it should return 0
on error.


# 8041af59 03-Jun-2014 Rich Felker <dalias@aerifal.cx>

fix if_nametoindex return value when interface does not exist

the return value is unsigned, so negative results for "errors" do not
make sense; 0 is the value reserved for when the interface name does
not exist.


# 0716b10a 08-Jul-2013 Rich Felker <dalias@aerifal.cx>

fix missing SOCK_CLOEXEC in various functions that use sockets internally


# 92b2eb8d 05-Apr-2011 Rich Felker <dalias@aerifal.cx>

implement if_indextoname and if_nametoindex functions