]> git.eshelyaron.com Git - emacs.git/commit
Teach 'network-lookup-address-info' to validate numeric addresses
authorRobert Pluim <rpluim@gmail.com>
Mon, 25 Jul 2022 10:17:07 +0000 (12:17 +0200)
committerRobert Pluim <rpluim@gmail.com>
Tue, 26 Jul 2022 12:16:07 +0000 (14:16 +0200)
commitfc1b7b720b5771a330f36e9a52688d73b790e478
treee76b4285a5ad8dc7ed744cd4280ef90fb8b1c622
parentdfa16cadc18930fad76fa6113750eaa27d367e72
Teach 'network-lookup-address-info' to validate numeric addresses

* src/process.c (Fnetwork_lookup_address_info): Add optional 'hints'
argument, pass AI_NUMERICHOST to 'getaddrinfo' if it's 'numeric'.
(syms_of_process): Add 'numeric' symbol.
* doc/lispref/processes.texi (Misc Network): Expunge passive voice.
Update 'network-lookup-address-info' description.
* test/src/process-tests.el (lookup-hints-specification):
(lookup-hints-values): Test new functionality.
* etc/NEWS: Announce change.
doc/lispref/processes.texi
etc/NEWS
src/process.c
test/src/process-tests.el