Partager via


2.2.1.2.263 BGP_PEER_TO_POLICIES

The BGP_PEER_TO_POLICIES structure<192> is used to configure BGP policies for a BGP peer.

 typedef struct _BGP_PEER_TO_POLICIES {
   DWORD dwFlags;
   BGP_IP_ADDRESS peerIP;
   BGP_POLICY_DIRECTION eDirection;
   USHORT uPolicyCount;
   BYTE policyNames[1];
 } BGP_PEER_TO_POLICIES,
  *PBGP_PEER_TO_POLICIES;

dwFlags: This value MUST be set to one of the following values while modifying the BGP peer to policy mapping.

Value

Meaning

0x00000000

None of the attributes in the BGP_PEER_TO_POLICIES structure is modified.

0xFFFFFFFF

One or more attributes in the BGP_PEER_TO_POLICIES structure are modified.

peerIP: Specifies the IP address of the BGP peer for which the policies are configured. This MUST be of type BGP_IP_ADDRESS (section 2.2.1.2.254)

eDirection: Specifies the source of the BGP routes to which the BGP policies are applied. This value MUST be of type BGP_POLICY_DIRECTION (section 2.2.1.1.22).  

uPolicyCount: Specifies the number of policies configured for the BGP peer. This value MUST be greater than zero (0).

policyNames: A list of consecutive policy name entries, uPolicyCount in number; each entry MUST be a null-terminated Unicode string of 152 bytes.