ip_mib_module.h File Reference

IP MIB module. More...

#include "mibs/mib_common.h"

Go to the source code of this file.

Data Structures

struct  IpMibIpSystemStatsEntry
 System-wide IP statistics. More...
 
struct  IpMibIpIfStatsEntry
 Per-interface IP statistics. More...
 
struct  IpMibIcmpStatsEntry
 ICMP statistics. More...
 
struct  IpMibIcmpMsgStatsEntry
 Per-message ICMP statistics. More...
 
struct  IpMibBase
 IP MIB base. More...
 

Macros

#define IP_MIB_SUPPORT   DISABLED
 
#define IP_MIB_INC_COUNTER32(name, value)   ipMibBase.name += value
 
#define IP_MIB_INC_COUNTER64(name, value)   ipMibBase.name += value
 

Enumerations

enum  IpMibIpForwarding { IP_MIB_IP_FORWARDING_ENABLED = 1 , IP_MIB_IP_FORWARDING_DISABLED = 2 }
 IP forwarding state. More...
 
enum  IpMibIpStatus { IP_MIB_IP_STATUS_UP = 1 , IP_MIB_IP_STATUS_DOWN = 2 }
 IP status. More...
 
enum  IpMibAddrType { IP_MIB_ADDR_TYPE_UNICAST = 1 , IP_MIB_ADDR_TYPE_ANYCAST = 2 , IP_MIB_ADDR_TYPE_BROADCAST = 3 }
 IP address type. More...
 
enum  IpMibAddrOrigin { IP_MIB_ADDR_ORIGIN_MANUAL = 2 , IP_MIB_ADDR_ORIGIN_DHCP = 4 , IP_MIB_ADDR_ORIGIN_LINK_LAYER = 5 , IP_MIB_ADDR_ORIGIN_RANDOM = 6 }
 IP address origin. More...
 
enum  IpMibAddrStatus {
  IP_MIB_ADDR_STATUS_PREFERRED = 1 , IP_MIB_ADDR_STATUS_DEPRECATED = 2 , IP_MIB_ADDR_STATUS_INVALID = 3 , IP_MIB_ADDR_STATUS_INACCESSIBLE = 4 ,
  IP_MIB_ADDR_STATUS_UNKNOWN = 5 , IP_MIB_ADDR_STATUS_TENTATIVE = 6 , IP_MIB_ADDR_STATUS_DUPLICATE = 7 , IP_MIB_ADDR_STATUS_OPTIMISTIC = 8
}
 IP address status. More...
 
enum  IpMibPrefixOrigin { IP_MIB_PREFIX_ORIGIN_MANUAL = 2 , IP_MIB_PREFIX_ORIGIN_WELL_KNOWN = 3 , IP_MIB_PREFIX_ORIGIN_DHCP = 4 , IP_MIB_PREFIX_ORIGIN_ROUTER_ADV = 5 }
 Prefix origin. More...
 
enum  IpMibNetToPhysType {
  IP_MIB_NET_TO_PHYS_TYPE_OTHER = 1 , IP_MIB_NET_TO_PHYS_TYPE_INVALID = 2 , IP_MIB_NET_TO_PHYS_TYPE_DYNAMIC = 3 , IP_MIB_NET_TO_PHYS_TYPE_STATIC = 4 ,
  IP_MIB_NET_TO_PHYS_TYPE_LOCAL = 5
}
 Type of mapping. More...
 
enum  IpMibNetToPhysState {
  IP_MIB_NET_TO_PHYS_STATE_REACHABLE = 1 , IP_MIB_NET_TO_PHYS_STATE_STALE = 2 , IP_MIB_NET_TO_PHYS_STATE_DELAY = 3 , IP_MIB_NET_TO_PHYS_STATE_PROBE = 4 ,
  IP_MIB_NET_TO_PHYS_STATE_INVALID = 5 , IP_MIB_NET_TO_PHYS_STATE_UNKNOWN = 6 , IP_MIB_NET_TO_PHYS_STATE_INCOMPLETE = 7
}
 Entry state. More...
 
enum  IpMibRouterPreference { IP_MIB_ROUTER_PREFERENCE_RESERVED = -2 , IP_MIB_ROUTER_PREFERENCE_LOW = -1 , IP_MIB_ROUTER_PREFERENCE_MEDIUM = 0 , IP_MIB_ROUTER_PREFERENCE_HIGH = 1 }
 Router preferences. More...
 

Variables

IpMibBase ipMibBase
 IP MIB base. More...
 
const MibObject ipMibObjects []
 IP MIB objects. More...
 
const MibModule ipMibModule
 IP MIB module. More...
 

Detailed Description

IP MIB module.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 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
2.4.0

Definition in file ip_mib_module.h.

Macro Definition Documentation

◆ IP_MIB_INC_COUNTER32

#define IP_MIB_INC_COUNTER32 (   name,
  value 
)    ipMibBase.name += value

Definition at line 46 of file ip_mib_module.h.

◆ IP_MIB_INC_COUNTER64

#define IP_MIB_INC_COUNTER64 (   name,
  value 
)    ipMibBase.name += value

Definition at line 47 of file ip_mib_module.h.

◆ IP_MIB_SUPPORT

#define IP_MIB_SUPPORT   DISABLED

Definition at line 39 of file ip_mib_module.h.

Enumeration Type Documentation

◆ IpMibAddrOrigin

IP address origin.

Enumerator
IP_MIB_ADDR_ORIGIN_MANUAL 
IP_MIB_ADDR_ORIGIN_DHCP 
IP_MIB_ADDR_ORIGIN_LINK_LAYER 
IP_MIB_ADDR_ORIGIN_RANDOM 

Definition at line 97 of file ip_mib_module.h.

◆ IpMibAddrStatus

IP address status.

Enumerator
IP_MIB_ADDR_STATUS_PREFERRED 
IP_MIB_ADDR_STATUS_DEPRECATED 
IP_MIB_ADDR_STATUS_INVALID 
IP_MIB_ADDR_STATUS_INACCESSIBLE 
IP_MIB_ADDR_STATUS_UNKNOWN 
IP_MIB_ADDR_STATUS_TENTATIVE 
IP_MIB_ADDR_STATUS_DUPLICATE 
IP_MIB_ADDR_STATUS_OPTIMISTIC 

Definition at line 109 of file ip_mib_module.h.

◆ IpMibAddrType

IP address type.

Enumerator
IP_MIB_ADDR_TYPE_UNICAST 
IP_MIB_ADDR_TYPE_ANYCAST 
IP_MIB_ADDR_TYPE_BROADCAST 

Definition at line 85 of file ip_mib_module.h.

◆ IpMibIpForwarding

IP forwarding state.

Enumerator
IP_MIB_IP_FORWARDING_ENABLED 
IP_MIB_IP_FORWARDING_DISABLED 

Definition at line 63 of file ip_mib_module.h.

◆ IpMibIpStatus

IP status.

Enumerator
IP_MIB_IP_STATUS_UP 
IP_MIB_IP_STATUS_DOWN 

Definition at line 74 of file ip_mib_module.h.

◆ IpMibNetToPhysState

Entry state.

Enumerator
IP_MIB_NET_TO_PHYS_STATE_REACHABLE 
IP_MIB_NET_TO_PHYS_STATE_STALE 
IP_MIB_NET_TO_PHYS_STATE_DELAY 
IP_MIB_NET_TO_PHYS_STATE_PROBE 
IP_MIB_NET_TO_PHYS_STATE_INVALID 
IP_MIB_NET_TO_PHYS_STATE_UNKNOWN 
IP_MIB_NET_TO_PHYS_STATE_INCOMPLETE 

Definition at line 153 of file ip_mib_module.h.

◆ IpMibNetToPhysType

Type of mapping.

Enumerator
IP_MIB_NET_TO_PHYS_TYPE_OTHER 
IP_MIB_NET_TO_PHYS_TYPE_INVALID 
IP_MIB_NET_TO_PHYS_TYPE_DYNAMIC 
IP_MIB_NET_TO_PHYS_TYPE_STATIC 
IP_MIB_NET_TO_PHYS_TYPE_LOCAL 

Definition at line 139 of file ip_mib_module.h.

◆ IpMibPrefixOrigin

Prefix origin.

Enumerator
IP_MIB_PREFIX_ORIGIN_MANUAL 
IP_MIB_PREFIX_ORIGIN_WELL_KNOWN 
IP_MIB_PREFIX_ORIGIN_DHCP 
IP_MIB_PREFIX_ORIGIN_ROUTER_ADV 

Definition at line 126 of file ip_mib_module.h.

◆ IpMibRouterPreference

Router preferences.

Enumerator
IP_MIB_ROUTER_PREFERENCE_RESERVED 
IP_MIB_ROUTER_PREFERENCE_LOW 
IP_MIB_ROUTER_PREFERENCE_MEDIUM 
IP_MIB_ROUTER_PREFERENCE_HIGH 

Definition at line 169 of file ip_mib_module.h.

Variable Documentation

◆ ipMibBase

IpMibBase ipMibBase
extern

IP MIB base.

Definition at line 60 of file ip_mib_module.c.

◆ ipMibModule

const MibModule ipMibModule
extern

IP MIB module.

Definition at line 2458 of file ip_mib_module.c.

◆ ipMibObjects

const MibObject ipMibObjects[]
extern

IP MIB objects.

Definition at line 67 of file ip_mib_module.c.