2.2.1.2.212 OSPF_AREA_PARAM
The OSPF_AREA_PARAM structure MAY<148> be used to contain the OSPF area parameters and is used by the following methods:
When calling RRouterInterfaceTransportSetGlobalInfo you MUST NOT delete the area with the areaId set to 0.0.0.0, which works as the backbone area for the OSPF, otherwise the method will return a failure.
-
typedef struct _OSPF_AREA_PARAM { DWORD type; DWORD create; DWORD enable; DWORD areaId; DWORD authType; DWORD importASExtern; DWORD stubMetric; DWORD importSumAdv; } OSPF_AREA_PARAM, *POSPF_AREA_PARAM;
type: This MUST be set to OSPF_AREA_PARAM_TYPE.
create: Set to 1 if the configuration needs to be created or set to 2 if it needs to be deleted.
enable: Set to 1 if the configuration needs to be enabled or set to 2 if it needs to be deleted.
areaId: Set to 0 if it is border. Otherwise, set to any nonzero value.
authType: Set to 1 if there is no password or set to 2 for a simple password.
importASExtern: Set to 1 if yes, 2 for no.
stubMetric: Stub area metric. It MUST be set to a value between 1 and USHORTMAX/2.
importSumAdv: The import summary advertisement. Set to 1 if yes, 2 for no.