1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-05 23:21:22 -08:00
emacs/nt/inc/sys
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
..
acl.h
file.h
ioctl.h
mman.h Use mmap(2) emulation for buffer text on MS-Windows. 2014-05-27 20:31:17 +03:00
param.h
resource.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00
socket.h Extend network-interface-list to return IPv6 and network info 2019-11-26 08:46:13 +01:00
stat.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00
time.h Remove unneeded stuff from nt/inc/sys/time.h 2017-05-15 22:45:57 +03:00
wait.h Update copyright year to 2019 2019-01-01 01:01:13 +00:00