]> git.ipfire.org Git - thirdparty/openvpn.git/commit
ifconfig-ipv6(-push): allow using hostnames 113/head
authorAntonio Quartulli <a@unstable.cc>
Sun, 3 Dec 2017 04:14:26 +0000 (12:14 +0800)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 16 Oct 2018 20:18:47 +0000 (22:18 +0200)
commit1e3672c95e648286e9242c0faf70a79f11e192cb
treef5d25c432ccb91de3733ada47709e432b2532ecc
parentbe47e4292459aabdf89e53d9f5747b113fc2cd5d
ifconfig-ipv6(-push): allow using hostnames

Similarly to ifconfig(-push), its IPv6 counterpart is now able to
accept hostnames as well instead of IP addresses in numeric form.

Basically this means that the user is now allowed to specify
something like this:

ifconfig-ipv6-push my.hostname.cx/64

This is exactly the same behaviour that we already have with
ifconfig(-push).

The generic code introduced in this patch will be later used to
implement the /bits parsing support for IPv4 addresses.

Trac: #808
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <20171203041426.25316-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15969.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit 2b15c11716e0d04a090585450e8f8f65405d0192)
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/socket.c
src/openvpn/socket.h