Compartir a través de


2.2.1.2.63 MPR_SERVER_2

The MPR_SERVER_2 structure<41> is used to get and set the number of Point-to-Point Tunneling Protocol/Layer Two Tunneling Protocol/Secure Socket Tunneling Protocol (PPTP/L2TP/SSTP) ports configured on the RRAS server. It also gets and sets the RRAS functionality and router functionality enabled on the server.

 typedef struct MPR_SERVER_2 {
   DWORD dwNumPptpPorts;
   DWORD dwPptpPortFlags;
   DWORD dwNumL2tpPorts;
   DWORD dwL2tpPortFlags;
   DWORD dwNumSstpPorts;
   DWORD dwSstpPortFlags;
 } MPR_SERVER_2,
  *PMPR_SERVER_2;

dwNumPptpPorts: Specifies the number of ports configured on that (PPTP) device. This value cannot exceed the server port limit.<42>

dwPptpPortFlags: Indicates the RRAS server and/or router functionality configured on the PPTP device. Possible flag values are as follows.

Value

Meaning

MPR_ENABLE_RAS_ON_DEVICE

0x00000001

Remote access is enabled for PPTP.

MPR_ENABLE_ROUTING_ON_DEVICE

0x00000002

Routing is enabled for PPTP.

dwNumL2tpPorts: Specifies the number of ports configured on that (L2TP) device. This value cannot exceed the server port limit.<43>

dwL2tpPortFlags: Indicates the RRAS server and/or router functionality configured on the L2TP device. Possible flag values are as follows.

Value

Meaning

MPR_ENABLE_RAS_ON_DEVICE

0x00000001

Remote access is enabled for L2TP.

MPR_ENABLE_ROUTING_ON_DEVICE

0x00000002

Routing is enabled for L2TP.

dwNumSstpPorts: specifies the number of ports configured on that (SSTP) device. This value cannot exceed the server port limit.<44>

dwSstpPortFlags: indicates the RRAS server and/or router functionality configured on the SSTP device. Possible flag values are as follows.<45>

Value

Meaning

MPR_ENABLE_RAS_ON_DEVICE

0x00000001

Remote access is enabled for SSTP.