Hi,

On Mon, Nov 16, 2020 at 03:08:57AM +0500, Vladislav Grishenko wrote:
> DNS SRV remote host discovery allows to have multiple OpenVPN servers for
> a single domain w/o explicit profile enumeration, to move services from
> host to host with little fuss, and to designate hosts as primary servers
> for a service and others as backups.
> Feature has been asked several times already, should be useful in case of
> substantial number of clients & servers deployed.

So, Arne has ACKed it, and I went work on it today.  One problem showed
up on FreeBSD - the code uses EAI_NODATA, which is found in <netdb.h>
on FreeBSD, but with this comment:

#if 0
/* obsoleted */
#define EAI_NODATA       7      /* no address associated with hostname */ 
#endif

I'm not sure what to make out of this, but as it stands, the patchset
does not work.

If I just add

  #define EAI_NODATA 7

to socket.c, it compiles and passes my regular client tests (no SRV tests
yet), but I do not think this is the correct solution.

(I have no idea *why* FreeBSD considers this "obsoleted", or what this
define is used for - have not yet investigated in any way)


If you need to test on FreeBSD, openvpn-vagrant has boxes that get
installed with all prerequisites (or I can give you access to one of
my buildslaves).

gert

-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             g...@greenie.muc.de

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to