Kristof Provost
36dcd97de3
libc: Shortcut if_indextoname() if index == 0
...
If the index we're trying to convert is 0 we can avoid a potentially
expensive call to getifaddrs(). No interface has an ifindex of zero, so
we can handle this as an error: set the errno to ENXIO and return NULL.
Submitted by: Nick Rogers
Reviewed by: lutz at donnerhacke.de
MFC after: 2 weeks
Sponsored by: RG Nets
Differential Revision: https://reviews.freebsd.org/D24524
2020-04-23 21:16:51 +00:00
..
2017-02-28 23:42:47 +00:00
2017-11-18 14:26:50 +00:00
2018-12-23 18:15:48 +00:00
2018-12-23 18:15:48 +00:00
2019-02-10 19:07:47 +00:00
2017-12-20 17:44:31 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-10-04 12:58:30 +00:00
2019-08-12 20:27:33 +00:00
2020-04-15 18:15:58 +00:00
2017-12-13 16:13:17 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-03-15 13:46:28 +00:00
2019-04-04 19:01:13 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2019-08-12 20:27:33 +00:00
2017-02-28 23:42:47 +00:00
2020-04-15 18:15:58 +00:00
2017-11-20 19:49:47 +00:00
2017-02-28 23:42:47 +00:00
2020-04-15 18:15:58 +00:00
2017-11-20 19:49:47 +00:00
2017-02-28 23:42:47 +00:00
2020-04-15 18:15:58 +00:00
2018-09-17 18:56:47 +00:00
2018-09-17 18:56:47 +00:00
2020-04-23 21:16:51 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-11-20 19:49:47 +00:00
2017-02-28 23:42:47 +00:00
2017-11-20 19:49:47 +00:00
2018-09-17 18:56:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2018-09-17 18:56:47 +00:00
2017-11-25 17:12:48 +00:00
2018-11-27 09:41:47 +00:00
2018-10-15 17:50:02 +00:00
2018-11-10 23:07:46 +00:00
2018-10-15 19:48:36 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2018-09-17 18:56:47 +00:00
2017-11-25 17:12:48 +00:00
2018-09-17 18:56:47 +00:00
2017-02-28 23:42:47 +00:00
2020-02-05 16:09:44 +00:00
2017-02-28 23:42:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-02-28 23:42:47 +00:00
2019-05-29 02:08:23 +00:00
2017-05-24 21:02:53 +00:00
2017-05-24 21:02:53 +00:00
2017-05-23 07:10:20 +00:00
2019-03-02 13:16:01 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-11-20 19:49:47 +00:00