Przeglądaj źródła

vlmcsd-svn818-2016-03-07-Hotbird64

Wind4 9 lat temu
rodzic
commit
1c86f7a6bf
26 zmienionych plików z 145 dodań i 87 usunięć
  1. 1 1
      dns_srv.c
  2. BIN
      floppy144.vfd
  3. 1 1
      helpers.c
  4. 1 0
      make_dragonfly
  5. 50 0
      make_mainframe_linux
  6. 16 16
      make_minix
  7. 5 1
      make_solaris
  8. 1 1
      vlmcs.1.html
  9. BIN
      vlmcs.1.pdf
  10. 2 2
      vlmcs_all.c
  11. 1 1
      vlmcsd.7.html
  12. BIN
      vlmcsd.7.pdf
  13. 5 5
      vlmcsd.8
  14. 20 19
      vlmcsd.8.dos.txt
  15. 9 8
      vlmcsd.8.html
  16. BIN
      vlmcsd.8.pdf
  17. 20 19
      vlmcsd.8.unix.txt
  18. 2 2
      vlmcsd.ini.5
  19. 2 2
      vlmcsd.ini.5.dos.txt
  20. 3 3
      vlmcsd.ini.5.html
  21. BIN
      vlmcsd.ini.5.pdf
  22. 2 2
      vlmcsd.ini.5.unix.txt
  23. 1 1
      vlmcsd_all.c
  24. 1 1
      vlmcsdmulti.1.html
  25. BIN
      vlmcsdmulti.1.pdf
  26. 2 2
      vlmcsdmulti_all.c

+ 1 - 1
dns_srv.c

@@ -159,7 +159,7 @@ static int getDnsRawAnswer(const char *restrict query, unsigned char** receive_b
 			char* querystring = (char*)alloca(strlen(query) + 12);
 			char* querystring = (char*)alloca(strlen(query) + 12);
 			strcpy(querystring, "_vlmcs._tcp");
 			strcpy(querystring, "_vlmcs._tcp");
 			strcat(querystring, query);
 			strcat(querystring, query);
-			bytes_received = res_query(querystring, C_IN, ns_t_srv, *receive_buffer, RECEIVE_BUFFER_SIZE);
+			bytes_received = res_query(querystring, ns_c_in, ns_t_srv, *receive_buffer, RECEIVE_BUFFER_SIZE);
 #		endif
 #		endif
 	}
 	}
 	else
 	else

BIN
floppy144.vfd


+ 1 - 1
helpers.c

@@ -345,7 +345,7 @@ __pure BOOL getArgumentBool(int_fast8_t *result, const char *const argument)
 {
 {
 	if (
 	if (
 		!strncasecmp(argument, "true", 4) ||
 		!strncasecmp(argument, "true", 4) ||
-		!strncasecmp(argument, "on", 4) ||
+		!strncasecmp(argument, "on", 2) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "1", 1)
 		!strncasecmp(argument, "1", 1)
 	)
 	)

+ 1 - 0
make_dragonfly

@@ -21,6 +21,7 @@ mkdir -p binaries/Linux/intel/static
 mkdir -p binaries/Linux/intel/musl
 mkdir -p binaries/Linux/intel/musl
 
 
 mkdir -p binaries/Linux/sparc32/glibc
 mkdir -p binaries/Linux/sparc32/glibc
+mkdir -p binaries/Linux/s390/glibc
 
 
 mkdir -p binaries/Android/arm/bionic
 mkdir -p binaries/Android/arm/bionic
 mkdir -p binaries/Android/arm/static
 mkdir -p binaries/Android/arm/static

+ 50 - 0
make_mainframe_linux

@@ -0,0 +1,50 @@
+#!/bin/bash
+
+SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
+SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
+SMALL="$SMALLCC $SMALLLD"
+
+export CFLAGS="$SMALLCC"
+export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m31 -mesa -mpacked-stack -msmall-exec"
+export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
+export THREADS=0
+export FEATURES=full
+
+export MULTI_NAME=vlmcsdmulti-s390-glibc
+export CLIENT_NAME=vlmcs-s390-glibc
+export PROGRAM_NAME=vlmcsd-s390-glibc
+
+make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
+
+rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
+make -j`nproc` $MULTI_NAME
+
+sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
+
+export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
+export MULTI_NAME=vlmcsdmulti-s390x-glibc
+export CLIENT_NAME=vlmcs-s390x-glibc
+export PROGRAM_NAME=vlmcsd-s390x-glibc
+
+make -B -j`nproc` $CLIENT_NAME $PROGRAM_NAME
+
+rm -f vlmcsd.o vlmcs.o vlmcsdmulti.o
+export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
+make -j`nproc` $MULTI_NAME
+
+sstrip -z $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
+
+cp -af vlmcsd-s390-glibc /usr/local/sbin/vlmcsd
+cp -af vlmcs-s390-glibc /usr/local/bin/vlmcs
+
+mkdir -p /usr/local/man/man1 2>/dev/null
+mkdir -p /usr/local/man/man5 2>/dev/null
+mkdir -p /usr/local/man/man8 2>/dev/null
+mkdir -p /usr/local/man/man7 2>/dev/null
+cp -a vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
+cp -a vlmcsd.7 /usr/local/man/man7/
+cp -a vlmcsd.8 /usr/local/man/man8/
+cp -a vlmcsd.ini.5 /usr/local/man/man5/
+pbzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
+
+scp -p vlmcsdmulti-s390-glibc vlmcs-s390-glibc vlmcsd-s390-glibc vlmcsdmulti-s390x-glibc vlmcs-s390x-glibc vlmcsd-s390x-glibc ubuntu64.internal:x/binaries/Linux/s390/glibc

+ 16 - 16
make_minix

@@ -20,19 +20,19 @@ make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x64 PROGRAM_NAME=vlmcsd-MacOSX-x64 CC=c
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 make $REUSEOBJFLAGS vlmcsdmulti-MacOSX-x64 MULTI_NAME=vlmcsdmulti-MacOSX-x64 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
 make $REUSEOBJFLAGS vlmcsdmulti-MacOSX-x64 MULTI_NAME=vlmcsdmulti-MacOSX-x64 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
 make $MAKEFLAGS vlmcsd-MacOSX-x64-threads THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x64-threads CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
 make $MAKEFLAGS vlmcsd-MacOSX-x64-threads THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x64-threads CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
-make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x86-openssl-EXPERIMENTAL PROGRAM_NAME=vlmcsd-MacOSX-x86-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes_soft CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.4" && \
-make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x64-openssl-EXPERIMENTAL PROGRAM_NAME=vlmcsd-MacOSX-x64-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes_soft CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.4" && \
+#make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x86-openssl-EXPERIMENTAL PROGRAM_NAME=vlmcsd-MacOSX-x86-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes_soft CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.4" && \
+#make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x64-openssl-EXPERIMENTAL PROGRAM_NAME=vlmcsd-MacOSX-x64-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes_soft CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.4" && \
 
 
 #make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-7.1-armv7 PROGRAM_NAME=vlmcsd-iOS-7.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk" && \
 #make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-7.1-armv7 PROGRAM_NAME=vlmcsd-iOS-7.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 #make $REUSEOBJFLAGS vlmcsdmulti-iOS-7.1-armv7 MULTI_NAME=vlmcsdmulti-iOS-7.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk" && \
 #make $REUSEOBJFLAGS vlmcsdmulti-iOS-7.1-armv7 MULTI_NAME=vlmcsdmulti-iOS-7.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk" && \
 
 
-make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-8.4-armv7 PROGRAM_NAME=vlmcsd-iOS-8.4-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot ~/toolchains/iPhoneOS8.4.sdk" && \
+make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-9.1-armv7 PROGRAM_NAME=vlmcsd-iOS-9.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot ~/toolchains/iPhoneOS9.1.sdk" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
-make $REUSEOBJFLAGS vlmcsdmulti-iOS-8.4-armv7 MULTI_NAME=vlmcsdmulti-iOS-8.4-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot ~/toolchains/iPhoneOS8.4.sdk" && \
-make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-8.4-armv8-aarch64 PROGRAM_NAME=vlmcsd-iOS-8.4-armv8-aarch64 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -arch arm64 -miphoneos-version-min=7.0 -isysroot ~/toolchains/iPhoneOS8.4.sdk" && \
+make $REUSEOBJFLAGS vlmcsdmulti-iOS-9.1-armv7 MULTI_NAME=vlmcsdmulti-iOS-9.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 -isysroot ~/toolchains/iPhoneOS9.1.sdk" && \
+make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-9.1-armv8-aarch64 PROGRAM_NAME=vlmcsd-iOS-9.1-armv8-aarch64 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -arch arm64 -miphoneos-version-min=7.0 -isysroot ~/toolchains/iPhoneOS9.1.sdk" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
-make $REUSEOBJFLAGS vlmcsdmulti-iOS-8.4-armv8-aarch64 MULTI_NAME=vlmcsdmulti-iOS-8.4-armv8-aarch64 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -arch arm64 -miphoneos-version-min=7.0 -isysroot ~/toolchains/iPhoneOS8.4.sdk" && \
+make $REUSEOBJFLAGS vlmcsdmulti-iOS-9.1-armv8-aarch64 MULTI_NAME=vlmcsdmulti-iOS-9.1-armv8-aarch64 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-m64 -arch arm64 -miphoneos-version-min=7.0 -isysroot ~/toolchains/iPhoneOS9.1.sdk" && \
 
 
 make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-6.1-armv7 PROGRAM_NAME=vlmcsd-iOS-6.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS6.1.sdk -isysroot ~/toolchains/iPhoneOS6.1.sdk" && \
 make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-6.1-armv7 PROGRAM_NAME=vlmcsd-iOS-6.1-armv7 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-mthumb -m32 -arch armv7 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS6.1.sdk -isysroot ~/toolchains/iPhoneOS6.1.sdk" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
@@ -47,28 +47,28 @@ PATH=~/toolchains/iOS5.1-MacOS-Lion/usr/bin:$PATH make $MAKEFLAGS CLIENT_NAME=vl
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 PATH=~/toolchains/iOS5.1-MacOS-Lion/usr/bin:$PATH make $REUSEOBJFLAGS vlmcsdmulti-iOS-5.1-armv6-clang3.1 MULTI_NAME=vlmcsdmulti-iOS-5.1-armv6-clang3.1 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-arch armv6 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS5.1.sdk -isysroot ~/toolchains/iPhoneOS5.1.sdk" && \
 PATH=~/toolchains/iOS5.1-MacOS-Lion/usr/bin:$PATH make $REUSEOBJFLAGS vlmcsdmulti-iOS-5.1-armv6-clang3.1 MULTI_NAME=vlmcsdmulti-iOS-5.1-armv6-clang3.1 CC=clang CFLAGS="$CFCLANG" PLATFORMFLAGS="-arch armv6 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS5.1.sdk -isysroot ~/toolchains/iPhoneOS5.1.sdk" && \
 
 
-PATH=~/toolchains/gcc4.2/usr/bin/bin:$PATH make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-4.1-armv6-llvm-gcc4.2 PROGRAM_NAME=vlmcsd-iOS-4.1-armv6-llvm-gcc4.2 CC=llvm-g++-4.2 CFLAGS="$CFGCC42" PLATFORMFLAGS="-arch armv6 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS4.1.sdk -isysroot ~/toolchains/iPhoneOS4.1.sdk" && \
-rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
-PATH=~/toolchains/gcc4.2/usr/bin/bin:$PATH make $REUSEOBJFLAGS vlmcsdmulti-iOS-4.1-armv6-llvm-gcc4.2 MULTI_NAME=vlmcsdmulti-iOS-4.1-armv6-llvm-gcc4.2 CC=llvm-g++-4.2 CFLAGS="$CFGCC42" PLATFORMFLAGS="-arch armv6 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS4.1.sdk -isysroot ~/toolchains/iPhoneOS4.1.sdk" && \
+#PATH=~/toolchains/gcc4.2/usr/bin/bin:$PATH make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-4.1-armv6-llvm-gcc4.2 PROGRAM_NAME=vlmcsd-iOS-4.1-armv6-llvm-gcc4.2 CC=llvm-g++-4.2 CFLAGS="$CFGCC42" PLATFORMFLAGS="-arch armv6 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS4.1.sdk -isysroot ~/toolchains/iPhoneOS4.1.sdk" && \
+#rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
+#PATH=~/toolchains/gcc4.2/usr/bin/bin:$PATH make $REUSEOBJFLAGS vlmcsdmulti-iOS-4.1-armv6-llvm-gcc4.2 MULTI_NAME=vlmcsdmulti-iOS-4.1-armv6-llvm-gcc4.2 CC=llvm-g++-4.2 CFLAGS="$CFGCC42" PLATFORMFLAGS="-arch armv6 -miphoneos-version-min=1.0 --sysroot ~/toolchains/iPhoneOS4.1.sdk -isysroot ~/toolchains/iPhoneOS4.1.sdk" && \
 
 
 #PATH=~/toolchains/gcc4.2/usr/bin:$PATH make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-4.1-armv7-clang PROGRAM_NAME=vlmcsd-iOS-4.1-armv7-llvm-clang CC=~/toolchains/gcc4.2/usr/bin/bin/clang CFLAGS="$CFGCC42" PLATFORMFLAGS="-mthumb -arch armv7 -miphoneos-version-min=4.1 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk" && \
 #PATH=~/toolchains/gcc4.2/usr/bin:$PATH make $MAKEFLAGS CLIENT_NAME=vlmcs-iOS-4.1-armv7-clang PROGRAM_NAME=vlmcsd-iOS-4.1-armv7-llvm-clang CC=~/toolchains/gcc4.2/usr/bin/bin/clang CFLAGS="$CFGCC42" PLATFORMFLAGS="-mthumb -arch armv7 -miphoneos-version-min=4.1 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk" && \
 #rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o && \
 #rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o && \
 #PATH=~/toolchains/gcc4.2/usr/bin:$PATH make $REUSEOBJFLAGS vlmcsdmulti-iOS-4.1-armv7-llvm-clang MULTI_NAME=vlmcsdmulti-iOS-4.1-armv7-llvm-clang CC=~/toolchains/gcc4.2/usr/bin/bin/clang CFLAGS="$CFGCC42" PLATFORMFLAGS="-mthumb -arch armv7 -miphoneos-version-min=4.1 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk" && \
 #PATH=~/toolchains/gcc4.2/usr/bin:$PATH make $REUSEOBJFLAGS vlmcsdmulti-iOS-4.1-armv7-llvm-clang MULTI_NAME=vlmcsdmulti-iOS-4.1-armv7-llvm-clang CC=~/toolchains/gcc4.2/usr/bin/bin/clang CFLAGS="$CFGCC42" PLATFORMFLAGS="-mthumb -arch armv7 -miphoneos-version-min=4.1 --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk" && \
 
 
 
 
-PATH=~/toolchains/gcc4.2/usr/bin:$PATH make -Bj PROGRAM_NAME=vlmcsd-MacOSX-ppc CLIENT_NAME=vlmcs-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0"
+PATH=~/toolchains/gcc4.2/usr/bin:$PATH make -Bj PROGRAM_NAME=vlmcsd-MacOSX-ppc CLIENT_NAME=vlmcs-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 PATH=~/toolchains/gcc4.2/usr/bin:$PATH make -j vlmcsdmulti-MacOSX-ppc MULTI_NAME=vlmcsdmulti-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0"
 PATH=~/toolchains/gcc4.2/usr/bin:$PATH make -j vlmcsdmulti-MacOSX-ppc MULTI_NAME=vlmcsdmulti-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0"
 
 
 
 
-make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x86-gcc PROGRAM_NAME=vlmcsd-MacOSX-x86-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.0" && \
+make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x86-gcc PROGRAM_NAME=vlmcsd-MacOSX-x86-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
-make $REUSEOBJFLAGS vlmcsdmulti-MacOSX-x86-gcc MULTI_NAME=vlmcsdmulti-MacOSX-x86-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.0" && \
-make $MAKEFLAGS vlmcsd-MacOSX-x86-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x86-threads-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.0" && \
-make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x64-gcc PROGRAM_NAME=vlmcsd-MacOSX-x64-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
+make $REUSEOBJFLAGS vlmcsdmulti-MacOSX-x86-gcc MULTI_NAME=vlmcsdmulti-MacOSX-x86-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
+make $MAKEFLAGS vlmcsd-MacOSX-x86-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x86-threads-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
+make $MAKEFLAGS CLIENT_NAME=vlmcs-MacOSX-x64-gcc PROGRAM_NAME=vlmcsd-MacOSX-x64-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
 rm -f vlmcs.o vlmcsd.o vlmcsdmulti.o *_all.* && \
-make $REUSEOBJFLAGS vlmcsdmulti-MacOSX-x64-gcc MULTI_NAME=vlmcsdmulti-MacOSX-x64-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
-make $MAKEFLAGS vlmcsd-MacOSX-x64-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x64-threads-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.0" && \
+make $REUSEOBJFLAGS vlmcsdmulti-MacOSX-x64-gcc MULTI_NAME=vlmcsdmulti-MacOSX-x64-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
+make $MAKEFLAGS vlmcsd-MacOSX-x64-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x64-threads-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
 
 
 # Sign the iOS binaries
 # Sign the iOS binaries
 #ldid -S *iOS*
 #ldid -S *iOS*

+ 5 - 1
make_solaris

@@ -178,7 +178,11 @@ int ProcessActivationRequest(handle_t IDL_handle, int requestSize, unsigned char
 #	endif // NO_LOG
 #	endif // NO_LOG
 
 
 	// Discard any packet smaller than a v4 request
 	// Discard any packet smaller than a v4 request
-	if (requestSize < (int)sizeof(REQUEST_V4)) return RPC_S_CANNOT_SUPPORT;
+	if (requestSize < (int)sizeof(REQUEST_V4))
+	{
+		if (!result) RpcStringFreeA(&clientIpAddress);
+		return RPC_S_CANNOT_SUPPORT;
+	}
 
 
 	*response = (uint8_t *)midl_user_allocate(MAX_RESPONSE_SIZE);
 	*response = (uint8_t *)midl_user_allocate(MAX_RESPONSE_SIZE);
 
 

+ 1 - 1
vlmcs.1.html

@@ -1,5 +1,5 @@
 <!-- Creator     : groff version 1.22.3 -->
 <!-- Creator     : groff version 1.22.3 -->
-<!-- CreationDate: Tue Aug 25 00:13:50 2015 -->
+<!-- CreationDate: Tue Mar  8 00:06:21 2016 -->
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
 "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <html>

BIN
vlmcs.1.pdf


+ 2 - 2
vlmcs_all.c

@@ -3610,7 +3610,7 @@ __pure BOOL getArgumentBool(int_fast8_t *result, const char *const argument)
 {
 {
 	if (
 	if (
 		!strncasecmp(argument, "true", 4) ||
 		!strncasecmp(argument, "true", 4) ||
-		!strncasecmp(argument, "on", 4) ||
+		!strncasecmp(argument, "on", 2) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "1", 1)
 		!strncasecmp(argument, "1", 1)
 	)
 	)
@@ -5793,7 +5793,7 @@ static int getDnsRawAnswer(const char *restrict query, unsigned char** receive_b
 			char* querystring = (char*)alloca(strlen(query) + 12);
 			char* querystring = (char*)alloca(strlen(query) + 12);
 			strcpy(querystring, "_vlmcs._tcp");
 			strcpy(querystring, "_vlmcs._tcp");
 			strcat(querystring, query);
 			strcat(querystring, query);
-			bytes_received = res_query(querystring, C_IN, ns_t_srv, *receive_buffer, RECEIVE_BUFFER_SIZE);
+			bytes_received = res_query(querystring, ns_c_in, ns_t_srv, *receive_buffer, RECEIVE_BUFFER_SIZE);
 #		endif
 #		endif
 	}
 	}
 	else
 	else

+ 1 - 1
vlmcsd.7.html

@@ -1,5 +1,5 @@
 <!-- Creator     : groff version 1.22.3 -->
 <!-- Creator     : groff version 1.22.3 -->
-<!-- CreationDate: Tue Aug 25 00:13:50 2015 -->
+<!-- CreationDate: Tue Mar  8 00:06:21 2016 -->
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
 "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <html>

BIN
vlmcsd.7.pdf


+ 5 - 5
vlmcsd.8

@@ -1,5 +1,5 @@
 .mso www.tmac
 .mso www.tmac
-.TH VLMCSD 8 "July 2015" "Hotbird64" "KMS Activation Manual"
+.TH VLMCSD 8 "September 2015" "Hotbird64" "KMS Activation Manual"
 .LO 8
 .LO 8
 
 
 .SH NAME
 .SH NAME
@@ -108,7 +108,7 @@ Use \fIePID\fR as Windows ePID. If specified, \fB-r\fR is disregarded for Window
 Use \fIePID\fR as Office 2010 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2010.
 Use \fIePID\fR as Office 2010 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2010.
 
 
 .IP "\fB-3\fR \fIePID\fR"
 .IP "\fB-3\fR \fIePID\fR"
-Use \fIePID\fR as Office 2013 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2013.
+Use \fIePID\fR as Office 2013/2016 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2013/2016.
 
 
 .IP "\fB-H\fR \fIHwId\fR"
 .IP "\fB-H\fR \fIHwId\fR"
 Use \fIHwId\fR for all products. All HWIDs in the ini file (see \fB-i\fR) will not be used. In an ini file you can specify a seperate HWID for each \fIapplication-guid\fR. This is not possible when entering a HWID from the command line.
 Use \fIHwId\fR for all products. All HWIDs in the ini file (see \fB-i\fR) will not be used. In an ini file you can specify a seperate HWID for each \fIapplication-guid\fR. This is not possible when entering a HWID from the command line.
@@ -189,7 +189,7 @@ Make sure that the user you specify has at least execute permission for your exe
 
 
 For your convenience you can use the special username "/l" as a shortcut for "NT AUTHORITY\eLocalService" and "/n" for "NT AUTHORITY\eNetworkService". "vlmcsd\ \-s\ \-U\ /n" installs the service to run as "NT AUTHORITY\eNetworkService".
 For your convenience you can use the special username "/l" as a shortcut for "NT AUTHORITY\eLocalService" and "/n" for "NT AUTHORITY\eNetworkService". "vlmcsd\ \-s\ \-U\ /n" installs the service to run as "NT AUTHORITY\eNetworkService".
 
 
-.IP "\fB-W\fR \fIpassword\fI"
+.IP "\fB-W\fR \fIpassword\fR"
 Can only be used together with \fB-s\fR. Specifies a \fIpassword\fR for the corresponding username you use with -U. SYSTEM, "NT AUTHORITY\eNetworkService", "NT AUTHORITY\eLocalService" do not require a password.
 Can only be used together with \fB-s\fR. Specifies a \fIpassword\fR for the corresponding username you use with -U. SYSTEM, "NT AUTHORITY\eNetworkService", "NT AUTHORITY\eLocalService" do not require a password.
 
 
 If you specify a user with even lower privileges than "NT AUTHORITY\eNetworkService", you must specify its password. You also have to grant the "Log on as a service" right to that user.
 If you specify a user with even lower privileges than "NT AUTHORITY\eNetworkService", you must specify its password. You also have to grant the "Log on as a service" right to that user.
@@ -217,10 +217,10 @@ If you used the 'user' and/or 'group' directive in an ini file these are ignored
 Signaling is not available in the native Windows version and in the Cygwin version when it runs as Windows service.
 Signaling is not available in the native Windows version and in the Cygwin version when it runs as Windows service.
 
 
 .SH SUPPORTED OPERATING SYSTEMS
 .SH SUPPORTED OPERATING SYSTEMS
-\fBvlmcsd\fR compiles and runs on Linux, Windows (no Cygwin required but explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, Solaris, OpenIndiana, Android and iOS. Other POSIX or unixoid OSses may work with unmodified sources or may require minor porting efforts.
+\fBvlmcsd\fR compiles and runs on Linux, Windows (no Cygwin required but explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD, Dragonfly BSD, Minix, Solaris, OpenIndiana, Android and iOS. Other POSIX or unixoid OSses may work with unmodified sources or may require minor porting efforts.
 
 
 .SH SUPPORTED PRODUCTS
 .SH SUPPORTED PRODUCTS
-\fBvlmcsd\fR can answer activation requests for the following products: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Office 2010, Project 2010, Visio 2010, Office 2013, Project 2013, Visio 2013.
+\fBvlmcsd\fR can answer activation requests for the following products: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Office 2010, Project 2010, Visio 2010, Office 2013, Project 2013, Visio 2013, Office 2016, Project 2016, Visio 2016.
 .PP
 .PP
 Office, Project and Visio must be volume license versions.
 Office, Project and Visio must be volume license versions.
 
 

+ 20 - 19
vlmcsd.8.dos.txt

@@ -239,8 +239,8 @@ OPTIONS
 
 
 
 
        -3 ePID
        -3 ePID
-              Use  ePID  as Office 2013 ePID (including Project and Visio). If
-              specified, -r is disregarded for Office 2013.
+              Use ePID as Office 2013/2016 ePID (including Project and Visio).
+              If specified, -r is disregarded for Office 2013/2016.
 
 
 
 
        -H HwId
        -H HwId
@@ -454,17 +454,18 @@ SIGNALS
 
 
 SUPPORTED OPERATING SYSTEMS
 SUPPORTED OPERATING SYSTEMS
        vlmcsd compiles and runs on Linux,  Windows  (no  Cygwin  required  but
        vlmcsd compiles and runs on Linux,  Windows  (no  Cygwin  required  but
-       explicitly  supported),  Mac  OS  X,  FreeBSD,  NetBSD, OpenBSD, Minix,
-       Solaris, OpenIndiana, Android and iOS. Other POSIX or unixoid OSses may
-       work with unmodified sources or may require minor porting efforts.
+       explicitly  supported),  Mac  OS X, FreeBSD, NetBSD, OpenBSD, Dragonfly
+       BSD, Minix, Solaris, OpenIndiana,  Android  and  iOS.  Other  POSIX  or
+       unixoid  OSses  may  work  with unmodified sources or may require minor
+       porting efforts.
 
 
 
 
 SUPPORTED PRODUCTS
 SUPPORTED PRODUCTS
-       vlmcsd  can answer activation requests for the following products: Win‐
-       dows Vista, Windows 7, Windows 8,  Windows  8.1,  Windows  10,  Windows
-       Server  2008,  Windows  Server  2008  R2,  Windows Server 2012, Windows
-       Server 2012 R2, Office 2010, Project 2010,  Visio  2010,  Office  2013,
-       Project 2013, Visio 2013.
+       vlmcsd can answer activation requests for the following products:  Win‐
+       dows  Vista,  Windows  7,  Windows  8, Windows 8.1, Windows 10, Windows
+       Server 2008, Windows Server  2008  R2,  Windows  Server  2012,  Windows
+       Server  2012  R2,  Office  2010, Project 2010, Visio 2010, Office 2013,
+       Project 2013, Visio 2013, Office 2016, Project 2016, Visio 2016.
 
 
        Office, Project and Visio must be volume license versions.
        Office, Project and Visio must be volume license versions.
 
 
@@ -475,24 +476,24 @@ FILES
 
 
 EXAMPLES
 EXAMPLES
        vlmcsd -f
        vlmcsd -f
-              Starts  vlmcsd in foreground. Useful if you use it for the first
-              time and want to see what's happening  when  a  client  requests
+              Starts vlmcsd in foreground. Useful if you use it for the  first
+              time  and  want  to  see what's happening when a client requests
               activation.
               activation.
 
 
 
 
        vlmcsd -l /var/log/vlmcsd.log
        vlmcsd -l /var/log/vlmcsd.log
-              Starts  vlmcsd  as a daemon and logs everything to /var/log/vlm‐
+              Starts vlmcsd as a daemon and logs everything  to  /var/log/vlm‐
               csd.log.
               csd.log.
 
 
 
 
        vlmcsd -L 192.168.1.17
        vlmcsd -L 192.168.1.17
               Starts vlmcsd as a daemon and listens on IP address 192.168.1.17
               Starts vlmcsd as a daemon and listens on IP address 192.168.1.17
-              only.  This  is useful for routers that have a public and a pri‐
+              only. This is useful for routers that have a public and  a  pri‐
               vate IP address to prevent your KMS server from becoming public.
               vate IP address to prevent your KMS server from becoming public.
 
 
 
 
        vlmcsd -s -U /n -l C:\logs\vlmcsd.log
        vlmcsd -s -U /n -l C:\logs\vlmcsd.log
-              Installs vlmcsd as a Windows service  with  low  privileges  and
+              Installs  vlmcsd  as  a  Windows service with low privileges and
               logs  everything  to  C:\logs\vlmcsd.log  when  the  service  is
               logs  everything  to  C:\logs\vlmcsd.log  when  the  service  is
               started with "net start vlmcsd".
               started with "net start vlmcsd".
 
 
@@ -500,18 +501,18 @@ EXAMPLES
 BUGS
 BUGS
        An ePID specified in an ini file must not contain spaces.
        An ePID specified in an ini file must not contain spaces.
 
 
-       The maximum number of -L options in the command line or  listen  state‐
+       The  maximum  number of -L options in the command line or listen state‐
        ments in the inifile is the platform default for FD_SETSIZE. This is 64
        ments in the inifile is the platform default for FD_SETSIZE. This is 64
        on Windows and 1024 on most Unixes.
        on Windows and 1024 on most Unixes.
 
 
 
 
 AUTHOR
 AUTHOR
-       Written by crony12, Hotbird64 and vityan666.  With  contributions  from
+       Written  by  crony12, Hotbird64 and vityan666.  With contributions from
        DougQaid.
        DougQaid.
 
 
 
 
 CREDITS
 CREDITS
-       Thanks  to  CODYQX4,  deagles,  eIcn, mikmik38, nosferati87, qad, Rati‐
+       Thanks to CODYQX4, deagles, eIcn,  mikmik38,  nosferati87,  qad,  Rati‐
        borus, ...
        borus, ...
 
 
 
 
@@ -520,4 +521,4 @@ SEE ALSO
 
 
 
 
 
 
-Hotbird64                          July 2015                         VLMCSD(8)
+Hotbird64                       September 2015                       VLMCSD(8)

+ 9 - 8
vlmcsd.8.html

@@ -1,5 +1,5 @@
 <!-- Creator     : groff version 1.22.3 -->
 <!-- Creator     : groff version 1.22.3 -->
-<!-- CreationDate: Tue Aug 25 00:13:50 2015 -->
+<!-- CreationDate: Tue Mar  8 00:06:22 2016 -->
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
 "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <html>
@@ -410,9 +410,9 @@ is disregarded for Office 2010.</p>
 
 
 <p style="margin-left:11%;"><b>-3</b> <i>ePID</i></p>
 <p style="margin-left:11%;"><b>-3</b> <i>ePID</i></p>
 
 
-<p style="margin-left:22%;">Use <i>ePID</i> as Office 2013
-ePID (including Project and Visio). If specified, <b>-r</b>
-is disregarded for Office 2013.</p>
+<p style="margin-left:22%;">Use <i>ePID</i> as Office
+2013/2016 ePID (including Project and Visio). If specified,
+<b>-r</b> is disregarded for Office 2013/2016.</p>
 
 
 <p style="margin-left:11%;"><b>-H</b> <i>HwId</i></p>
 <p style="margin-left:11%;"><b>-H</b> <i>HwId</i></p>
 
 
@@ -748,9 +748,9 @@ Cygwin version when it runs as Windows service.</p>
 <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
 <p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
 compiles and runs on Linux, Windows (no Cygwin required but
 compiles and runs on Linux, Windows (no Cygwin required but
 explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD,
 explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD,
-Minix, Solaris, OpenIndiana, Android and iOS. Other POSIX or
-unixoid OSses may work with unmodified sources or may
-require minor porting efforts.</p>
+Dragonfly BSD, Minix, Solaris, OpenIndiana, Android and iOS.
+Other POSIX or unixoid OSses may work with unmodified
+sources or may require minor porting efforts.</p>
 
 
 <h2>SUPPORTED PRODUCTS
 <h2>SUPPORTED PRODUCTS
 <a name="SUPPORTED PRODUCTS"></a>
 <a name="SUPPORTED PRODUCTS"></a>
@@ -762,7 +762,8 @@ can answer activation requests for the following products:
 Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows
 Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows
 10, Windows Server 2008, Windows Server 2008 R2, Windows
 10, Windows Server 2008, Windows Server 2008 R2, Windows
 Server 2012, Windows Server 2012 R2, Office 2010, Project
 Server 2012, Windows Server 2012 R2, Office 2010, Project
-2010, Visio 2010, Office 2013, Project 2013, Visio 2013.</p>
+2010, Visio 2010, Office 2013, Project 2013, Visio 2013,
+Office 2016, Project 2016, Visio 2016.</p>
 
 
 <p style="margin-left:11%; margin-top: 1em">Office, Project
 <p style="margin-left:11%; margin-top: 1em">Office, Project
 and Visio must be volume license versions.</p>
 and Visio must be volume license versions.</p>

BIN
vlmcsd.8.pdf


+ 20 - 19
vlmcsd.8.unix.txt

@@ -239,8 +239,8 @@ OPTIONS
 
 
 
 
        -3 ePID
        -3 ePID
-              Use  ePID  as Office 2013 ePID (including Project and Visio). If
-              specified, -r is disregarded for Office 2013.
+              Use ePID as Office 2013/2016 ePID (including Project and Visio).
+              If specified, -r is disregarded for Office 2013/2016.
 
 
 
 
        -H HwId
        -H HwId
@@ -454,17 +454,18 @@ SIGNALS
 
 
 SUPPORTED OPERATING SYSTEMS
 SUPPORTED OPERATING SYSTEMS
        vlmcsd compiles and runs on Linux,  Windows  (no  Cygwin  required  but
        vlmcsd compiles and runs on Linux,  Windows  (no  Cygwin  required  but
-       explicitly  supported),  Mac  OS  X,  FreeBSD,  NetBSD, OpenBSD, Minix,
-       Solaris, OpenIndiana, Android and iOS. Other POSIX or unixoid OSses may
-       work with unmodified sources or may require minor porting efforts.
+       explicitly  supported),  Mac  OS X, FreeBSD, NetBSD, OpenBSD, Dragonfly
+       BSD, Minix, Solaris, OpenIndiana,  Android  and  iOS.  Other  POSIX  or
+       unixoid  OSses  may  work  with unmodified sources or may require minor
+       porting efforts.
 
 
 
 
 SUPPORTED PRODUCTS
 SUPPORTED PRODUCTS
-       vlmcsd  can answer activation requests for the following products: Win‐
-       dows Vista, Windows 7, Windows 8,  Windows  8.1,  Windows  10,  Windows
-       Server  2008,  Windows  Server  2008  R2,  Windows Server 2012, Windows
-       Server 2012 R2, Office 2010, Project 2010,  Visio  2010,  Office  2013,
-       Project 2013, Visio 2013.
+       vlmcsd can answer activation requests for the following products:  Win‐
+       dows  Vista,  Windows  7,  Windows  8, Windows 8.1, Windows 10, Windows
+       Server 2008, Windows Server  2008  R2,  Windows  Server  2012,  Windows
+       Server  2012  R2,  Office  2010, Project 2010, Visio 2010, Office 2013,
+       Project 2013, Visio 2013, Office 2016, Project 2016, Visio 2016.
 
 
        Office, Project and Visio must be volume license versions.
        Office, Project and Visio must be volume license versions.
 
 
@@ -475,24 +476,24 @@ FILES
 
 
 EXAMPLES
 EXAMPLES
        vlmcsd -f
        vlmcsd -f
-              Starts  vlmcsd in foreground. Useful if you use it for the first
-              time and want to see what's happening  when  a  client  requests
+              Starts vlmcsd in foreground. Useful if you use it for the  first
+              time  and  want  to  see what's happening when a client requests
               activation.
               activation.
 
 
 
 
        vlmcsd -l /var/log/vlmcsd.log
        vlmcsd -l /var/log/vlmcsd.log
-              Starts  vlmcsd  as a daemon and logs everything to /var/log/vlm‐
+              Starts vlmcsd as a daemon and logs everything  to  /var/log/vlm‐
               csd.log.
               csd.log.
 
 
 
 
        vlmcsd -L 192.168.1.17
        vlmcsd -L 192.168.1.17
               Starts vlmcsd as a daemon and listens on IP address 192.168.1.17
               Starts vlmcsd as a daemon and listens on IP address 192.168.1.17
-              only.  This  is useful for routers that have a public and a pri‐
+              only. This is useful for routers that have a public and  a  pri‐
               vate IP address to prevent your KMS server from becoming public.
               vate IP address to prevent your KMS server from becoming public.
 
 
 
 
        vlmcsd -s -U /n -l C:\logs\vlmcsd.log
        vlmcsd -s -U /n -l C:\logs\vlmcsd.log
-              Installs vlmcsd as a Windows service  with  low  privileges  and
+              Installs  vlmcsd  as  a  Windows service with low privileges and
               logs  everything  to  C:\logs\vlmcsd.log  when  the  service  is
               logs  everything  to  C:\logs\vlmcsd.log  when  the  service  is
               started with "net start vlmcsd".
               started with "net start vlmcsd".
 
 
@@ -500,18 +501,18 @@ EXAMPLES
 BUGS
 BUGS
        An ePID specified in an ini file must not contain spaces.
        An ePID specified in an ini file must not contain spaces.
 
 
-       The maximum number of -L options in the command line or  listen  state‐
+       The  maximum  number of -L options in the command line or listen state‐
        ments in the inifile is the platform default for FD_SETSIZE. This is 64
        ments in the inifile is the platform default for FD_SETSIZE. This is 64
        on Windows and 1024 on most Unixes.
        on Windows and 1024 on most Unixes.
 
 
 
 
 AUTHOR
 AUTHOR
-       Written by crony12, Hotbird64 and vityan666.  With  contributions  from
+       Written  by  crony12, Hotbird64 and vityan666.  With contributions from
        DougQaid.
        DougQaid.
 
 
 
 
 CREDITS
 CREDITS
-       Thanks  to  CODYQX4,  deagles,  eIcn, mikmik38, nosferati87, qad, Rati‐
+       Thanks to CODYQX4, deagles, eIcn,  mikmik38,  nosferati87,  qad,  Rati‐
        borus, ...
        borus, ...
 
 
 
 
@@ -520,4 +521,4 @@ SEE ALSO
 
 
 
 
 
 
-Hotbird64                          July 2015                         VLMCSD(8)
+Hotbird64                       September 2015                       VLMCSD(8)

+ 2 - 2
vlmcsd.ini.5

@@ -1,4 +1,4 @@
-.TH VLMCSD.INI 5 "February 2015" "Hotbird64" "KMS Activation Manual"
+.TH VLMCSD.INI 5 "September 2015" "Hotbird64" "KMS Activation Manual"
 .LO 8
 .LO 8
 
 
 .SH NAME
 .SH NAME
@@ -101,7 +101,7 @@ Any valid GUID is being treated as a special \fBkeyword\fR in the ini file. It i
 .br
 .br
 0ff1ce15\-a989\-479d\-af46\-f275c6370663\ (Office 2013)
 0ff1ce15\-a989\-479d\-af46\-f275c6370663\ (Office 2013)
 
 
-To use specific ePIDs for Windows, Office 2010 and Office 2013 you could add the following lines to vlmcsd.ini:
+To use specific ePIDs for Windows, Office 2010 and Office 2013/2016 you could add the following lines to vlmcsd.ini:
 
 
 .SM "55c92734\-d682\-4d71\-983e\-d6ec3f16059f\ =\ 55041\-00206\-184\-207146\-03\-1062\-6002.0000\-3322013"
 .SM "55c92734\-d682\-4d71\-983e\-d6ec3f16059f\ =\ 55041\-00206\-184\-207146\-03\-1062\-6002.0000\-3322013"
 .br
 .br

+ 2 - 2
vlmcsd.ini.5.dos.txt

@@ -217,7 +217,7 @@ SPECIAL KEYWORDS
        59a52881-a989-479d-af46-f275c6370663 (Office 2010)
        59a52881-a989-479d-af46-f275c6370663 (Office 2010)
        0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
        0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
 
 
-       To use specific ePIDs for Windows, Office  2010  and  Office  2013  you
+       To use specific ePIDs for Windows, Office 2010 and Office 2013/2016 you
        could add the following lines to vlmcsd.ini:
        could add the following lines to vlmcsd.ini:
 
 
        55c92734-d682-4d71-983e-d6ec3f16059f = 55041-00206-184-207146-03-1062-6002.0000-3322013
        55c92734-d682-4d71-983e-d6ec3f16059f = 55041-00206-184-207146-03-1062-6002.0000-3322013
@@ -265,4 +265,4 @@ SEE ALSO
 
 
 
 
 
 
-Hotbird64                        February 2015                   VLMCSD.INI(5)
+Hotbird64                       September 2015                   VLMCSD.INI(5)

+ 3 - 3
vlmcsd.ini.5.html

@@ -1,5 +1,5 @@
 <!-- Creator     : groff version 1.22.3 -->
 <!-- Creator     : groff version 1.22.3 -->
-<!-- CreationDate: Tue Aug 25 00:13:50 2015 -->
+<!-- CreationDate: Tue Mar  8 00:06:22 2016 -->
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
 "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <html>
@@ -380,8 +380,8 @@ application GUIDs:</p>
 2013)</p>
 2013)</p>
 
 
 <p style="margin-left:11%; margin-top: 1em">To use specific
 <p style="margin-left:11%; margin-top: 1em">To use specific
-ePIDs for Windows, Office 2010 and Office 2013 you could add
-the following lines to vlmcsd.ini:</p>
+ePIDs for Windows, Office 2010 and Office 2013/2016 you
+could add the following lines to vlmcsd.ini:</p>
 
 
 
 
 <p style="margin-left:11%; margin-top: 1em"><small>55c92734&minus;d682&minus;4d71&minus;983e&minus;d6ec3f16059f&nbsp;=&nbsp;55041&minus;00206&minus;184&minus;207146&minus;03&minus;1062&minus;6002.0000&minus;3322013
 <p style="margin-left:11%; margin-top: 1em"><small>55c92734&minus;d682&minus;4d71&minus;983e&minus;d6ec3f16059f&nbsp;=&nbsp;55041&minus;00206&minus;184&minus;207146&minus;03&minus;1062&minus;6002.0000&minus;3322013

BIN
vlmcsd.ini.5.pdf


+ 2 - 2
vlmcsd.ini.5.unix.txt

@@ -217,7 +217,7 @@ SPECIAL KEYWORDS
        59a52881-a989-479d-af46-f275c6370663 (Office 2010)
        59a52881-a989-479d-af46-f275c6370663 (Office 2010)
        0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
        0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
 
 
-       To use specific ePIDs for Windows, Office  2010  and  Office  2013  you
+       To use specific ePIDs for Windows, Office 2010 and Office 2013/2016 you
        could add the following lines to vlmcsd.ini:
        could add the following lines to vlmcsd.ini:
 
 
        55c92734-d682-4d71-983e-d6ec3f16059f = 55041-00206-184-207146-03-1062-6002.0000-3322013
        55c92734-d682-4d71-983e-d6ec3f16059f = 55041-00206-184-207146-03-1062-6002.0000-3322013
@@ -265,4 +265,4 @@ SEE ALSO
 
 
 
 
 
 
-Hotbird64                        February 2015                   VLMCSD.INI(5)
+Hotbird64                       September 2015                   VLMCSD.INI(5)

+ 1 - 1
vlmcsd_all.c

@@ -3985,7 +3985,7 @@ __pure BOOL getArgumentBool(int_fast8_t *result, const char *const argument)
 {
 {
 	if (
 	if (
 		!strncasecmp(argument, "true", 4) ||
 		!strncasecmp(argument, "true", 4) ||
-		!strncasecmp(argument, "on", 4) ||
+		!strncasecmp(argument, "on", 2) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "1", 1)
 		!strncasecmp(argument, "1", 1)
 	)
 	)

+ 1 - 1
vlmcsdmulti.1.html

@@ -1,5 +1,5 @@
 <!-- Creator     : groff version 1.22.3 -->
 <!-- Creator     : groff version 1.22.3 -->
-<!-- CreationDate: Tue Aug 25 00:13:50 2015 -->
+<!-- CreationDate: Tue Mar  8 00:06:22 2016 -->
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
 "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <html>

BIN
vlmcsdmulti.1.pdf


+ 2 - 2
vlmcsdmulti_all.c

@@ -5359,7 +5359,7 @@ __pure BOOL getArgumentBool(int_fast8_t *result, const char *const argument)
 {
 {
 	if (
 	if (
 		!strncasecmp(argument, "true", 4) ||
 		!strncasecmp(argument, "true", 4) ||
-		!strncasecmp(argument, "on", 4) ||
+		!strncasecmp(argument, "on", 2) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "yes", 3) ||
 		!strncasecmp(argument, "1", 1)
 		!strncasecmp(argument, "1", 1)
 	)
 	)
@@ -7542,7 +7542,7 @@ static int getDnsRawAnswer(const char *restrict query, unsigned char** receive_b
 			char* querystring = (char*)alloca(strlen(query) + 12);
 			char* querystring = (char*)alloca(strlen(query) + 12);
 			strcpy(querystring, "_vlmcs._tcp");
 			strcpy(querystring, "_vlmcs._tcp");
 			strcat(querystring, query);
 			strcat(querystring, query);
-			bytes_received = res_query(querystring, C_IN, ns_t_srv, *receive_buffer, RECEIVE_BUFFER_SIZE);
+			bytes_received = res_query(querystring, ns_c_in, ns_t_srv, *receive_buffer, RECEIVE_BUFFER_SIZE);
 #		endif
 #		endif
 	}
 	}
 	else
 	else