about summary refs log tree commit diff
path: root/src/network/if_nametoindex.c
Commit message (Collapse)AuthorAgeFilesLines
* fix if_nametoindex return value when socket open failsRon Yorston2016-01-171-1/+1
| | | | | The return value of if_nametoindex is unsigned; it should return 0 on error.
* fix if_nametoindex return value when interface does not existRich Felker2014-06-031-1/+1
| | | | | | 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.
* fix missing SOCK_CLOEXEC in various functions that use sockets internallyRich Felker2013-07-091-1/+1
|
* implement if_indextoname and if_nametoindex functionsRich Felker2011-04-051-0/+18