Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: vpnc: devel

svn commit: vpnc r514 - /branches/vpnc-nortel/config.c

 

 

vpnc devel RSS feed   Index | Next | Previous | View Threaded


vpnc at unix-ag

Jan 29, 2012, 3:23 AM

Post #1 of 1 (409 views)
Permalink
svn commit: vpnc r514 - /branches/vpnc-nortel/config.c

Author: Antonio Borneo
Date: Sun Jan 29 12:23:05 2012
New Revision: 514

Log:
Check Vendor vs nat traversal mode

nat mode nortel-udp can only be used with Vendor nortel
Vendor nortel only accents nat modes nortel-udp and none

Signed-off-by: Antonio Borneo <borneo.antonio [at] gmail>

Modified:
branches/vpnc-nortel/config.c

Modified: branches/vpnc-nortel/config.c
==============================================================================
--- branches/vpnc-nortel/config.c (original)
+++ branches/vpnc-nortel/config.c Sun Jan 29 12:23:05 2012
@@ -828,6 +828,19 @@
printf("%s: unknown nat traversal mode %s\nknown modes: natt none force-natt cisco-udp nortel-udp\n", argv[0], config[CONFIG_NATT_MODE]);
exit(1);
}
+ if ((opt_vendor == VENDOR_NORTEL) &&
+ (opt_natt_mode != NATT_NONE) &&
+ (opt_natt_mode != NATT_NORTEL_UDP)) {
+ printf("%s: Vendor nortel only accepts nat traversal modes: none nortel-udp\n"
+ "\tdefaults to \"none\"\n", argv[0]);
+ opt_natt_mode = NATT_NONE;
+ }
+ if ((opt_vendor != VENDOR_NORTEL) &&
+ (opt_natt_mode == NATT_NORTEL_UDP)) {
+ printf("%s: nat traversal mode nortel-udp allowed for Vendor nortel only\n"
+ "\tdefaults to \"none\"\n", argv[0]);
+ opt_natt_mode = NATT_NONE;
+ }

if (!strcmp(config[CONFIG_IF_MODE], "tun")) {
opt_if_mode = IF_MODE_TUN;

_______________________________________________
vpnc-devel mailing list
vpnc-devel [at] unix-ag
https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel
http://www.unix-ag.uni-kl.de/~massar/vpnc/

vpnc devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.