<div class="content" name="L2TP_TUNNEL_CONFIG_PARAMS_1" uuid="2af90c95-d724-4368-b966-95fce68781ba"><p>The <b>L2TP_TUNNEL_CONFIG_PARAMS_1</b> structure<a id="Appendix_A_Target_199"></a><a aria-label="Product behavior note 199" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_199" data-linktype="relative-path">&lt;199&gt;</a> is used to get or set
configured parameters for L2TP devices.</p><dl>
<dd>
<div><pre> typedef struct _L2TP_TUNNEL_CONFIG_PARAMS_1 {
     DWORD                       dwIdleTimeout;
     // encryption type to be used for L2TP
     DWORD                       dwEncryptionType;
     DWORD                       dwSaLifeTime;
     DWORD                       dwSaDataSizeForRenegotiation;
            
     PROUTER_CUSTOM_L2TP_POLICY_0 customPolicy;
 }L2TP_TUNNEL_CONFIG_PARAMS_1, 
 *PL2TP_TUNNEL_CONFIG_PARAMS_1;
            
</pre></div>
</dd></dl><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="32">dwIdleTimeout</td>
 </tr>
 <tr>
  <td colspan="32">dwEncryptionType</td>
 </tr>
 <tr>
  <td colspan="32">dwSaLifeTime</td>
 </tr>
 <tr>
  <td colspan="32">dwSaDataSizeForRenegotiation</td>
 </tr>
 <tr>
  <td colspan="32">customPolicy</td>
 </tr>
</tbody></table><p><b>dwIdleTimeout (4 bytes): </b>Duration, in seconds,
after which the connection will be disconnected if there is no traffic. This
value MUST be between 300 and 17,279,999.</p><p><b>dwEncryptionType (4 bytes</b>): Specifies the
encryption type to be negotiated for the L2TP tunnel-based VPN connections. One
of the following values is used.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0</td>
  <td>RRAS will not negotiate encryption.</td>
 </tr><tr>
  <td>1</td>
  <td>RRAS requests encryption during negotiation. Negotiation will succeed even if remote RRAS does not support encryption.</td>
 </tr><tr>
  <td>2</td>
  <td>RRAS requires encryption to be negotiated.</td>
 </tr><tr>
  <td>3</td>
  <td>RRAS requires maximum-strength encryption to be negotiated.</td>
 </tr></tbody></table>
</dd></dl><p><b>dwSaLifeTime (4 bytes): </b>The lifetime of a <a href="fc2dfae9-0d04-4e1d-97c9-c51c2dc06c3b#gt_67cbf867-7a49-41f3-a68f-37b5f9035acb" data-linktype="relative-path">security association (SA)</a>,
in seconds, after which the SA is no longer valid <a href="https://go.microsoft.com/fwlink/?LinkId=90469" data-linktype="external">[RFC4306]</a>. This value
MUST be between 300 and 17,279,999.</p><p><b>dwSaDataSizeForRenegotiation (4 bytes): </b>Number
of kilobytes that are allowed to transfer using a SA. After that, the SA is
renegotiated [RFC4306]. This value MUST be greater than or equal to 1024.</p><p><b>customPolicy (8 bytes): </b>This MUST be a pointer
to <a href="10f3a637-ab9c-49fe-b819-a5337ad54098" data-linktype="relative-path"><b>ROUTER_CUSTOM_IKEv2_POLICY_0
(section</b></a><span><b> </b></span>2.2.1.2.237) that
specifies the custom IPSec configurations to be used during the SA negotiation
[RFC4306]. The NULL value for this member indicates that no custom IPsec
configuration is available.  </p></div>