X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_setup.c;h=6360c597029f93e4e390d10e87a639536f02ce57;hp=369c8a40017e14fb60c6d388665a4aaa7ceea073;hb=40d91ff619a6ea24a2a35c9d934bcc6bace27e24;hpb=e4812ba9cc4262ec921944f02639ce55781d7497 diff --git a/src/net_setup.c b/src/net_setup.c index 369c8a40..6360c597 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -1,7 +1,7 @@ /* net_setup.c -- Setup. Copyright (C) 1998-2005 Ivo Timmermans, - 2000-2009 Guus Sliepen + 2000-2010 Guus Sliepen 2006 Scott Lamb This program is free software; you can redistribute it and/or modify @@ -303,6 +303,12 @@ bool setup_myself(void) { if(choice) myself->options |= OPTION_PMTU_DISCOVERY; + choice = true; + get_config_bool(lookup_config(config_tree, "ClampMSS"), &choice); + get_config_bool(lookup_config(myself->connection->config_tree, "ClampMSS"), &choice); + if(choice) + myself->options |= OPTION_CLAMP_MSS; + get_config_bool(lookup_config(config_tree, "PriorityInheritance"), &priorityinheritance); #if !defined(SOL_IP) || !defined(IP_TOS)