<div class="content" name="BGP_PEER" uuid="64cf35dd-e770-48a0-a7b1-6eb4b90ff6a9"><p>The <b>BGP_PEER</b> structure<a id="Appendix_A_Target_191"></a><a aria-label="Product behavior note 191" href="3bb906f0-b077-47ab-ad11-d8d807afde26#Appendix_A_191" data-linktype="relative-path">&lt;191&gt;</a> is
used to get or set the configuration of a BGP peer.</p><dl>
<dd>
<div><pre> typedef struct _BGP_PEER {
   DWORD dwFlags;
   WCHAR szPeeringName (152 bytes)[76];
   BGP_IP_ADDRESS localIP;
   BGP_IP_ADDRESS remoteIP;
   USHORT uHoldTime;
   DWORD dwRemoteASN;
   BOOL bAutoStart;
   BGP_PEERING_OP_MODE opMode;
 } BGP_PEER,
  *PBGP_PEER;
</pre></div>
</dd></dl><p><b>dwFlags: </b>Specifies the BGP peer attribute that
is being modified. This field is used while modifying the BGP peer
configuration. This value MUST be a bitwise OR combination of one or more of
the following values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000001</td>
  <td>The local IP address is modified.</td>
 </tr><tr>
  <td>0x00000002</td>
  <td>The local hold timeout is modified.</td>
 </tr><tr>
  <td>0x00000004</td>
  <td>The remote ASN is modified.</td>
 </tr><tr>
  <td>0x00000010</td>
  <td>The operation mode of the BGP peer is modified.</td>
 </tr></tbody></table>
</dd></dl><p><b>szPeeringName (152 bytes): </b>A null-terminated
Unicode string that specifies a unique name for the BGP peer.</p><p><b>localIP: </b>Specifies local IP Address to be used
for BGP peering. This MUST be of type <a href="6f8469c1-3c45-491b-b6e3-e249b27abd74" data-linktype="relative-path"><b>BGP_IP_ADDRESS (section 2.2.1.2.254)</b></a>.  
</p><p><b>remoteIP: </b>Specifies remote IP address to be
used for BGP peering. This MUST be of type <b>BGP_IP_ADDRESS</b>.</p><p><b>uHoldTime: </b>Specifies the local value of the
Hold Timer in seconds. This value MUST NOT be 1 or 2.</p><p><b>dwRemoteASN: </b>Specifies the peer&#39;s <a href="fc2dfae9-0d04-4e1d-97c9-c51c2dc06c3b#gt_334e9ddc-96ff-4099-83c7-7ff8d3c20ff1" data-linktype="relative-path">ASN</a> number. This value MUST
be between 1 and 65534.</p><p><b>bAutoStart: </b>This MUST be set to TRUE.</p><p><b>opMode: </b>Specifies the operation mode of the
BGP as defined in <a href="48a71dd3-328f-4c0f-8051-dfa3eb7de230" data-linktype="relative-path"><b>BGP_PEERING_OP_MODE (section 2.2.1.1.24)</b></a>
enumeration type.  </p></div>