summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio_ext.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-01-15 21:02:56 -0800
committerElliott Hughes <enh@google.com>2016-01-18 12:07:38 -0800
commited57b98758176f0cccdec16cbed524e444039fe7 (patch)
tree75089e67cfcbff961a859ac13409b1f19137cfc6 /libc/stdio/stdio_ext.cpp
parent68d0150221eb505a576f6ad5ca1f367b4ce547a0 (diff)
Implement if_nameindex(3)/if_freenameindex(3).
This is just a subset of the recently-implemented getifaddrs(3), though if we want to handle interfaces (such as "rmnet_*") that don't have an address, we need to either expose ifaddrs_storage and keep track of which interfaces we've already seen (which is pretty messy), or refactor the netlink code so we can reuse it and just extract the information we need for if_nameindex(3). This patch goes the latter route. Also clean up if_nametoindex(3) and if_indextoname(3). Change-Id: I5ffc5df0bab62286cdda2e7af06f032c767119a8
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions