Skip to contentSkip to conversation

Show compile-time variant for --multihome in --version output.

PATCH In review Gert Doering 2 participants 3 messages Sep 16, 2016 – Sep 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Show compile-time variant for --multihome in --version output.

Instead of just [MH], show [MH/PKTINFO] or [MH/RECVDA], to see more easily which compile-time variant was chosen by configure and syshead.h

---
 src/openvpn/options.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
src/openvpn/options.c +5 -1
index e052042..c9688c3 100644
@@ -97,7 +97,11 @@ const char title_string[] =
   " [PKCS11]"
 #endif
 #if ENABLE_IP_PKTINFO
-  " [MH]"
+# if defined(HAVE_IN_PKTINFO) && defined(HAVE_IPI_SPEC_DST)
+  " [MH/PKTINFO]"
+# elif defined(IP_RECVDSTADDR)
+  " [MH/RECVDA]"
+# endif
 #endif
   " [IPv6]"
   " built on " __DATE__
Signature · 1 line
2.9.2
#1 lore raw

Am 16.09.16 um 22:45 schrieb Gert Doering:

Quoted 3 lines

Instead of just [MH], show [MH/PKTINFO] or [MH/RECVDA], to see more easily which compile-time variant was chosen by configure and syshead.h

ACK from me.

Arne

#2 lore raw
In reply to Gert Doering

Your patch has been applied to the master branch.

commit d7c15ff12a8790c2ad2e0adc0e191c32f081463f

Author: Gert Doering
Date:   Fri Sep 16 21:45:11 2016 +0200
     Show compile-time variant for --multihome in --version output.

     Signed-off-by: Gert Doering <[email protected]...>
     Acked-by: Arne Schwabe <[email protected]...>
     Message-Id: <[email protected]...>
     URL: http://www.mail-archive.com/search?l=mid&[email protected]...
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering