/* ospf_mib_helper.c - Management Interface Helper routines for OSPFv2 MIB */
/* Copyright 1998-2003 Wind River Systems, Inc. */
#include "copyright_wrs.h"
/*
modification history
--------------------
05g,10jun03,mwv SPR#88878 fixed compiler warnings related to (char *) references
05f,04jun03,asr Changed back to use system memory instead of OSPF memory partition
05e,02jun03,agi Added #include "ospf.h"
05d,02jun03,ram Changed native memory usage to OSPF memory partition
05c,08may03,kc Fixed SPR#88258 - changed the way Area ID is validated and
commit in ospf_mApi_ifRowAccess() so that the Area ID
changes can be detected correctly.
05b,21mar03,kkz SPR 88613 - fixed areaAggregateDelete to tell OSPF to delete, before
deregistering from area. Also, allow setting of agEffect to doNotAdvertiseMatching
05a,28feb03,kc Fixed SPR#86505 - modified per new mibApi.h header file updates.
Renamed MAPI_COMMIT_NVM and MAPI_GET_NVM mApiReqType_t request type
to MAPI_COMMIT_FORCE and MAPI_GET_FORCE respectively.
04z,24feb03,kc Fixed SPR#86385 - modified all ospf_mApi_xxxRowCreate(),
ospf_mApi_xxxRowAccess() and ospf_mApi_xxxHelperSet() to return
proper SNMPv2 error code using OSPF_MIB_ERROR_SET() macro.
04y,21feb03,kc Fixed SPR#86346 - modified ospf_mApi_areaRowAccess() to accept
sendAreaSummary(2) as the valid value for ospfAreaSummary object
and to dynamically configured OSPF for changes to the ospfAreaSummary
only if the area is configured as stub.
04x,21feb03,kc Fixed SPR#86134 - modified ospf_mApi_areaAggregateRowAccess() to
return error for ospfAreaAggregateEffect object validation if
set to the unsupported doNotAdvertiseMatching(2).
04w,18feb03,kc Fixed SPR#86135 - modified ospf_mApi_stubDelete() to reinitialize
the OSPF Area using the default metric value when the stub entry
is deleted from the ospfStubTable.
04v,07feb03,kc Fixed SPR#86144 - removed the mApiReqType_t argument from all the
ospf_mApi_xxxHelperCreate() routines. These routine no longer attempt
to reconfigure OSPF if the reqType type is not MAPI_COMMIT_NVM. Also
removed the dynamicConfig argument from ospf_mApi_ifRowSet() and
ospf_mApi_virtIfRowSet() routines.
04u,03feb03,kc Fixed SPR#85865 - modified ospf_mApi_configurationGet() to update
the ABR status if necessary.
04t,01feb03,kc Fixed SPR#86017 - modified ospf_mApi_areaDelete to set the rowStatus
for the attached interface to notReady regardless if the OSPF protocol
is running. Also reset all the read-only operational status and stats
objects if interface is successfully removed from OSPF.
04s,31jan03,kc Fixed SPR#86009 - modified ospf_mApi_ifRowCreate() to assign the
actual value of the Area ID from mApiObject_t to the ospfIfAreaId
columnar object during the MAPI_TEST phase.
04r,31jan03,kc Fixed SPR#86006 - modified all the ospf_mApi_xxxHelperSet() routines
to invoke avlDelete() to remove the row created from the avl tree.
04q,12dec02,mwv Fix compiler warning
04p,19nov02,kc Modified ospf_mApi_ifHelperCreate() and ospf_mApi_ifConfigAccess()
to explicitly invoke the ospf_mApi_ifInfoGet() when ospf is reinitialized.
SPR 84478, 84485, 84486
04o,19nov02,mwv Merge TMS code SPR 84284
04n,12nov02,kc Fixed SPR#75884 - Added ospf_mApi_nbrHelperDeregister().
04m,08oct02,agi Fixed compiler warnings
04l,15aug02,kc Modified ospf_mApi_virtIfRowStatusAccess() to place the return
statement at the correct spot.
04k,09aug02,kc Modified ospf_mApi_ifRowCreate() to correctly validate the index
value for unnumbered interface.
04j,17jun02,kc Modified ospf_mApi_xxxHelperSet() to handle possible pObjCookie
not implemented, thus corrected possible NULL pointer access.
04i,25may02,kc Fixed PR #2700 - Added deleteFromOspf boolean flag function argument
to ospf_mApi_ifDelete().
04h,21may02,kc Fixed ospf_mApi_xxxHelperSet() to extract the object cookie data
from the request message. Added the isLastColObject parameter to
the rsRowStatusSet() function call.
04g,23apr02,kc Fixed ospf_mApi_areaRegisterIf() to correctly increment the active
interface counter for MAPI_COMMIT_NVM request.
04f,18apr02,kc Don't trigger ospf_mApi_avlTreeWalk() for ospfNbrTable in
ospf_mApi_reset(). The ospfNbrTable and ospfVirtNbrTable will be
explicitly flushed by ospf2Mapi_shutdown().
04e,16apr02,kc Modified authentication type and key set request in
ospf_mApi_ifRowAccess() and ospf_mApi_virtIfRowAccess() to
allow dynamic configuration only if both the authentication
type and key have been defined.
04d,16apr02,kc Modified ospf_mApi_md5KeyIdValidate() to make sure md5 key id is
indeed within 1 to 255 and to return the md5 key id. Modified
ospf_mApi_ifHelperGet() and ospf_mApi_virtIfHelperGet() to return
the actual authentication key if request is MAPI_GET_NVM.
Modified ospf_mApi_md5AuthKeyParsing() to correctly track the
md5 authentication key and key id length from the given buffer.
04c,15apr02,kc Renamed EmapiOspfAuthType_simplePasswd mApiOspfAuthType_t to
EmApiOspfAuthType_simplePasswd. Renamed MAPI_NVM_SET to
MAPI_COMMIT_NVM and pCookie pointer to pReqCookie pointer per
mibApi.h update.
04b,13apr02,kc Fixed PR #2611 - corrected simple authentication key processing for
ospfIfAuthKey and ospfVirtIfAuthKey.
04a,11apr02,kc Added ospf_mApi_ifHelperDelete() routine. Fixed ospf_mApi_ifDelete()
to also check if interface row status is active and administrative
status is enabled before deleting the interface from OSPF.
03z,10apr02,kc Moved AVL_WALK_FUNC to ospf_mib_helper.h. Made ospf_mApi_avlTreeWalk()
public. Added splnet() call in ospf_mApi_ifInfoGet() to lock spl
semaphore so to allow ifa_ifwithaddr() to have exclusive access to
the system interface list.
03y,05apr02,kc Fixed ospf_mApi_xxxHelperSet() to delete the row if error occurs
during validation phase. Corrected the area registration process
for area aggregation. Fixed RS_ACCESS_COL_VALID for
ospf_mApi_ifRowAccess() to return error if changing an interface
area id breaks the virtual interface(s).
03x,04apr02,kc Modified ospf_mApi_walkxxxTree() to force the row status transition
only if the request is not NVM_SET. Invoke ospf_mApi_areaConfig()
in ospf_mApi_areaRowStatusAccess() when the row is first created.
03w,03apr02,kc Fixed ospf_mApi_areaAggregateRowCreate() to correctly lookup the
area using the appropriate area id. Fixed ospf_mApi_areaStatusUpdate()
to correctly decrement the numActiveArea counter when an area is
deleted (or when the interface state has changed).
03v,02apr02,kc Modified ospf_mApi_ifInfoGet() to locate the interface based on the
complete interface address.
03u,01apr02,kc Modified ospf_mApi_areaAggregateRowCreate() to look for the area
to which the area aggregation instance is configured for prior
memory is allocated for the instance.
03t,29mar02,kc Fixed up virtual link configuration. Only allow virtual link to go
active if there is at least one active interface in the transit area.
Fixed area configuration so that if
- 1
- 2
- 3
- 4
前往页