emacs/nt/inc
Robert Pluim 650a514e99 Extend network-interface-list to return IPv6 and network info
Bug#38218

* src/process.c (Fnetwork_interface_list): Extend argument list to
allow requesting full network info and/or IPv4/IPv6 info.
(network_interface_list) [HAVE_GETIFADDRS]: Use getifaddrs to retrieve
interface IP addresses.

* src/process.h: Update prototype of network_interface_list.

* src/w32.c (g_b_init_get_adapters_addresses): New init flag.
(globals_of_w32): Initialize it.
(GetAdaptersAddresses_Proc): New function typedef.
(get_adapters_addresses): New wrapper function.
(init_winsock): Load htonl and ntohl.
(sys_htonl, sys_ntohl): New wrapper functions.
(network_interface_list): Implement in terms of
get_adapters_addresses.

* nt/inc/sys/socket.h: Add sys_htonl and sys_ntohl prototypes.

* etc/NEWS: Announce IPv4/IPv6 changes in network-interface-list.

* doc/lispref/processes.texi (Misc Network): Document updated arglist
and return values for network-interface-list.
2019-11-26 08:46:13 +01:00
..
arpa Nuke arch-tags. 2011-01-15 15:16:57 -08:00
netinet Nuke arch-tags. 2011-01-15 15:16:57 -08:00
sys Extend network-interface-list to return IPv6 and network info 2019-11-26 08:46:13 +01:00
dirent.h Dirent functions and directory-files are converted and work. 2013-11-09 14:49:02 +02:00
grp.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00
inttypes.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00
langinfo.h Support (locale-info 'paper) on MS-Windows 2019-02-04 18:05:59 +02:00
mingw_time.h Attempt to fix time_t related problems with MinGW 4.0 runtime. 2013-10-14 19:23:10 +03:00
ms-w32.h Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
netdb.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
nl_types.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00
pwd.h Fix warnings when compiling on MS-Windows with -std=gnu99. 2012-10-17 21:02:44 +02:00
stdalign.h MS-Windows followup for 2012-07-28T23:05:32Z!eggert@cs.ucla.edu. 2012-07-29 18:43:09 +03:00
stdbool.h Fix the MS-Windows build broken by 2011-01-30T23:34:18Z!eggert@cs.ucla.edu and 2011-01-31T08:15:13Z!eggert@cs.ucla.edu. 2011-01-31 21:36:08 +02:00
stdint.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00
unistd.h Merge from trunk and resolve conflicts. 2013-03-28 20:13:59 +02:00