ip_mib_impl.c File Reference

IP MIB module implementation. More...

#include "core/net.h"
#include "ipv4/ipv4.h"
#include "ipv4/arp.h"
#include "ipv6/ipv6.h"
#include "ipv6/ipv6_misc.h"
#include "ipv6/ndp_cache.h"
#include "ipv6/ndp_router_adv.h"
#include "mibs/mib_common.h"
#include "mibs/ip_mib_module.h"
#include "mibs/ip_mib_impl.h"
#include "core/crypto.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   SNMP_TRACE_LEVEL
 

Functions

error_t ipMibInit (void)
 IP MIB module initialization. More...
 
error_t ipMibSetIpv4InterfaceEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipv4InterfaceEntry object value. More...
 
error_t ipMibGetIpv4InterfaceEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipv4InterfaceEntry object value. More...
 
error_t ipMibGetNextIpv4InterfaceEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipv4InterfaceEntry object. More...
 
error_t ipMibSetIpv6InterfaceEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipv6InterfaceEntry object value. More...
 
error_t ipMibGetIpv6InterfaceEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipv6InterfaceEntry object value. More...
 
error_t ipMibGetNextIpv6InterfaceEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipv6InterfaceEntry object. More...
 
error_t ipMibGetIpSystemStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipSystemStatsEntry object value. More...
 
error_t ipMibGetNextIpSystemStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipSystemStatsEntry object. More...
 
error_t ipMibGetIpIfStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipIfStatsEntry object value. More...
 
error_t ipMibGetNextIpIfStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipIfStatsEntry object. More...
 
error_t ipMibGetIpAddressPrefixEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipAddressPrefixEntry object value. More...
 
error_t ipMibGetNextIpAddressPrefixEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipAddressPrefixEntry object. More...
 
error_t ipMibSetIpAddressSpinLock (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipAddressSpinLock object value. More...
 
error_t ipMibGetIpAddressSpinLock (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipAddressSpinLock object value. More...
 
error_t ipMibSetIpAddressEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipAddressEntry object value. More...
 
error_t ipMibGetIpAddressEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipAddressEntry object value. More...
 
error_t ipMibGetNextIpAddressEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipAddressEntry object. More...
 
error_t ipMibSetIpNetToPhysicalEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipNetToPhysicalEntry object value. More...
 
error_t ipMibGetIpNetToPhysicalEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipNetToPhysicalEntry object value. More...
 
error_t ipMibGetNextIpNetToPhysicalEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipNetToPhysicalEntry object. More...
 
error_t ipMibGetIpv6ScopeZoneIndexEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipv6ScopeZoneIndexEntry object value. More...
 
error_t ipMibGetNextIpv6ScopeZoneIndexEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipv6ScopeZoneIndexEntry object. More...
 
error_t ipMibGetIpDefaultRouterEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipDefaultRouterEntry object value. More...
 
error_t ipMibGetNextIpDefaultRouterEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipDefaultRouterEntry object. More...
 
error_t ipMibSetIpv6RouterAdvertSpinLock (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipv6RouterAdvertSpinLock object value. More...
 
error_t ipMibGetIpv6RouterAdvertSpinLock (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipv6RouterAdvertSpinLock object value. More...
 
error_t ipMibSetIpv6RouterAdvertEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
 Set ipv6RouterAdvertEntry object value. More...
 
error_t ipMibGetIpv6RouterAdvertEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get ipv6RouterAdvertEntry object value. More...
 
error_t ipMibGetNextIpv6RouterAdvertEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next ipv6RouterAdvertEntry object. More...
 
error_t ipMibGetIcmpStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get icmpStatsEntry object value. More...
 
error_t ipMibGetNextIcmpStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next icmpStatsEntry object. More...
 
error_t ipMibGetIcmpMsgStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
 Get icmpMsgStatsEntry object value. More...
 
error_t ipMibGetNextIcmpMsgStatsEntry (const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
 Get next icmpMsgStatsEntry object. More...
 

Detailed Description

IP MIB module implementation.

License

Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.0

Definition in file ip_mib_impl.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SNMP_TRACE_LEVEL

Definition at line 30 of file ip_mib_impl.c.

Function Documentation

◆ ipMibGetIcmpMsgStatsEntry()

error_t ipMibGetIcmpMsgStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get icmpMsgStatsEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 3316 of file ip_mib_impl.c.

◆ ipMibGetIcmpStatsEntry()

error_t ipMibGetIcmpStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get icmpStatsEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 3161 of file ip_mib_impl.c.

◆ ipMibGetIpAddressEntry()

error_t ipMibGetIpAddressEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipAddressEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 1497 of file ip_mib_impl.c.

◆ ipMibGetIpAddressPrefixEntry()

error_t ipMibGetIpAddressPrefixEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipAddressPrefixEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 996 of file ip_mib_impl.c.

◆ ipMibGetIpAddressSpinLock()

error_t ipMibGetIpAddressSpinLock ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipAddressSpinLock object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 1456 of file ip_mib_impl.c.

◆ ipMibGetIpDefaultRouterEntry()

error_t ipMibGetIpDefaultRouterEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipDefaultRouterEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 2526 of file ip_mib_impl.c.

◆ ipMibGetIpIfStatsEntry()

error_t ipMibGetIpIfStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipIfStatsEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 699 of file ip_mib_impl.c.

◆ ipMibGetIpNetToPhysicalEntry()

error_t ipMibGetIpNetToPhysicalEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipNetToPhysicalEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 2001 of file ip_mib_impl.c.

◆ ipMibGetIpSystemStatsEntry()

error_t ipMibGetIpSystemStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipSystemStatsEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 421 of file ip_mib_impl.c.

◆ ipMibGetIpv4InterfaceEntry()

error_t ipMibGetIpv4InterfaceEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipv4InterfaceEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 122 of file ip_mib_impl.c.

◆ ipMibGetIpv6InterfaceEntry()

error_t ipMibGetIpv6InterfaceEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipv6InterfaceEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 261 of file ip_mib_impl.c.

◆ ipMibGetIpv6RouterAdvertEntry()

error_t ipMibGetIpv6RouterAdvertEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipv6RouterAdvertEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 2951 of file ip_mib_impl.c.

◆ ipMibGetIpv6RouterAdvertSpinLock()

error_t ipMibGetIpv6RouterAdvertSpinLock ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipv6RouterAdvertSpinLock object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 2905 of file ip_mib_impl.c.

◆ ipMibGetIpv6ScopeZoneIndexEntry()

error_t ipMibGetIpv6ScopeZoneIndexEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
MibVariant value,
size_t *  valueLen 
)

Get ipv6ScopeZoneIndexEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[out]valueObject value
[in,out]valueLenLength of the object value, in bytes
Returns
Error code

Definition at line 2394 of file ip_mib_impl.c.

◆ ipMibGetNextIcmpMsgStatsEntry()

error_t ipMibGetNextIcmpMsgStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next icmpMsgStatsEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 3406 of file ip_mib_impl.c.

◆ ipMibGetNextIcmpStatsEntry()

error_t ipMibGetNextIcmpStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next icmpStatsEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 3246 of file ip_mib_impl.c.

◆ ipMibGetNextIpAddressEntry()

error_t ipMibGetNextIpAddressEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipAddressEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 1827 of file ip_mib_impl.c.

◆ ipMibGetNextIpAddressPrefixEntry()

error_t ipMibGetNextIpAddressPrefixEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipAddressPrefixEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 1213 of file ip_mib_impl.c.

◆ ipMibGetNextIpDefaultRouterEntry()

error_t ipMibGetNextIpDefaultRouterEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipDefaultRouterEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 2688 of file ip_mib_impl.c.

◆ ipMibGetNextIpIfStatsEntry()

error_t ipMibGetNextIpIfStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipIfStatsEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 915 of file ip_mib_impl.c.

◆ ipMibGetNextIpNetToPhysicalEntry()

error_t ipMibGetNextIpNetToPhysicalEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipNetToPhysicalEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 2205 of file ip_mib_impl.c.

◆ ipMibGetNextIpSystemStatsEntry()

error_t ipMibGetNextIpSystemStatsEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipSystemStatsEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 629 of file ip_mib_impl.c.

◆ ipMibGetNextIpv4InterfaceEntry()

error_t ipMibGetNextIpv4InterfaceEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipv4InterfaceEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 188 of file ip_mib_impl.c.

◆ ipMibGetNextIpv6InterfaceEntry()

error_t ipMibGetNextIpv6InterfaceEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipv6InterfaceEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 368 of file ip_mib_impl.c.

◆ ipMibGetNextIpv6RouterAdvertEntry()

error_t ipMibGetNextIpv6RouterAdvertEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipv6RouterAdvertEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 3102 of file ip_mib_impl.c.

◆ ipMibGetNextIpv6ScopeZoneIndexEntry()

error_t ipMibGetNextIpv6ScopeZoneIndexEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
uint8_t *  nextOid,
size_t *  nextOidLen 
)

Get next ipv6ScopeZoneIndexEntry object.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier
[in]oidLenLength of the OID, in bytes
[out]nextOidOID of the next object in the MIB
[out]nextOidLenLength of the next object identifier, in bytes
Returns
Error code

Definition at line 2473 of file ip_mib_impl.c.

◆ ipMibInit()

error_t ipMibInit ( void  )

IP MIB module initialization.

Returns
Error code

Definition at line 57 of file ip_mib_impl.c.

◆ ipMibSetIpAddressEntry()

error_t ipMibSetIpAddressEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipAddressEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 1479 of file ip_mib_impl.c.

◆ ipMibSetIpAddressSpinLock()

error_t ipMibSetIpAddressSpinLock ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipAddressSpinLock object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 1437 of file ip_mib_impl.c.

◆ ipMibSetIpNetToPhysicalEntry()

error_t ipMibSetIpNetToPhysicalEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipNetToPhysicalEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 1983 of file ip_mib_impl.c.

◆ ipMibSetIpv4InterfaceEntry()

error_t ipMibSetIpv4InterfaceEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipv4InterfaceEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 104 of file ip_mib_impl.c.

◆ ipMibSetIpv6InterfaceEntry()

error_t ipMibSetIpv6InterfaceEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipv6InterfaceEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 243 of file ip_mib_impl.c.

◆ ipMibSetIpv6RouterAdvertEntry()

error_t ipMibSetIpv6RouterAdvertEntry ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipv6RouterAdvertEntry object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 2933 of file ip_mib_impl.c.

◆ ipMibSetIpv6RouterAdvertSpinLock()

error_t ipMibSetIpv6RouterAdvertSpinLock ( const MibObject object,
const uint8_t *  oid,
size_t  oidLen,
const MibVariant value,
size_t  valueLen,
bool_t  commit 
)

Set ipv6RouterAdvertSpinLock object value.

Parameters
[in]objectPointer to the MIB object descriptor
[in]oidObject identifier (object name and instance identifier)
[in]oidLenLength of the OID, in bytes
[in]valueObject value
[in]valueLenLength of the object value, in bytes
[in]commitThis flag tells whether the changes shall be committed to the MIB base
Returns
Error code

Definition at line 2881 of file ip_mib_impl.c.