diff --git a/src/Cedar/IPsec_EtherIP.c b/src/Cedar/IPsec_EtherIP.c index 41d11630..e91bd15d 100644 --- a/src/Cedar/IPsec_EtherIP.c +++ b/src/Cedar/IPsec_EtherIP.c @@ -541,16 +541,8 @@ UINT CalcEtherIPTcpMss(ETHERIP_SERVER *s) } } - if (s->L2TPv3 == false) - { - // EtherIP - ret -= 2; - } - else - { - // L2TPv3 - ret -= 2; - } + // EtherIP, L2TPv3 + ret -= 2; // Ethernet ret -= 14;