Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | reimplement if_nameindex and getifaddrs using netlink | Timo Teräs | 2014-07-29 | 1 | -146/+168 |
| | | | | | | | | | | | | | | the previous implementations had several deficiencies, the most severe of which was the inability to report unconfigured interfaces or interfaces without ipv4 addresses. among the options discussed for fixing this, using netlink turned out to be the one with the least cost and most additional advantages. other improvements include: if_nameindex now avoids duplicates in the list it produces, but still includes legacy-style interface aliases if any are in use. getifaddrs now reports hardware addresses and includes the scope_id for link-local ipv6 addresses in the resulting address. | ||||
* | include cleanups: remove unused headers and add feature test macros | Szabolcs Nagy | 2013-12-12 | 1 | -0/+1 |
| | |||||
* | fix fd leak (missing close-on-exec) in getifaddrs | Rich Felker | 2013-11-20 | 1 | -1/+1 |
| | |||||
* | fix missing SOCK_CLOEXEC in various functions that use sockets internally | Rich Felker | 2013-07-09 | 1 | -1/+1 |
| | |||||
* | getifaddrs: implement proper ipv6 netmasks | rofl0r | 2013-04-09 | 1 | -2/+11 |
| | |||||
* | getifaddrs: remove unused label | rofl0r | 2013-04-06 | 1 | -1/+0 |
| | |||||
* | getifaddrs: use if_nameindex to enumerate interfaces | rofl0r | 2013-04-05 | 1 | -23/+9 |
| | |||||
* | getifaddrs: one less indent level | rofl0r | 2013-04-05 | 1 | -30/+28 |
| | |||||
* | getifaddrs: less malloc | rofl0r | 2013-04-05 | 1 | -55/+52 |
| | |||||
* | add getifaddrs | rofl0r | 2013-04-05 | 1 | -0/+191 |
supports ipv4 and ipv6, but not the "extended" usage where usage statistics and other info are assigned to ifa_data members of duplicate entries with AF_PACKET family. |