summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/if_nametoindex.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: Use SOCK_CLOEXEC for various internal file descriptors.jilles2013-09-061-1/+1
| | | | | | | This change avoids undesirably passing some internal file descriptors to a process created (fork+exec) by another thread. Kernel support for SOCK_CLOEXEC was added in r248534, March 19, 2013.
* Use the LLINDEX macro to access the link-level I/F index. This makesmarcel2012-05-191-1/+1
| | | | | | | it possible to work with a different type for the sdl_index field -- it only requires a recompile. Obtained from: Juniper Networks, Inc.
* When searching for uninitialized memory usage add ensure that the entireeadler2012-04-151-0/+3
| | | | | | | | | | struct is set to zero. PR: bin/166483 Submitted by: Roy Marples <roy@marples.name> Reviewed by: delphij Approved by: cperciva MFC after: 3 days
* Back out the `hiding' of strlcpy and strlcat. Several peoplenectar2003-05-011-1/+1
| | | | vocally objected to this safety belt.
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referencenectar2003-04-291-1/+1
| | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-02-161-0/+3
| | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
* try SIOCGIFINDEX 1st to be able to use network aliasing.ume2002-11-281-0/+13
| | | | | Submitted by: jlemon Approved by: re
* Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()ume2002-07-151-0/+83
and if_freenameindex(). Obtained from: KAME MFC after: 2 weeks
OpenPOWER on IntegriCloud