<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16">
  <compounddef id="snmp_8h" kind="file" language="C++">
    <compoundname>snmp.h</compoundname>
    <includes refid="opt_8h" local="yes">net/opt.h</includes>
    <includes refid="ip__addr_8h" local="yes">net/ip_addr.h</includes>
    <includedby refid="netif_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/netif.c</includedby>
    <includedby refid="ethernetif_8c" local="yes">C:/Dev/git/UbixOS/sys/net/netif/ethernetif.c</includedby>
    <incdepgraph>
      <node id="17">
        <label>stdarg.h</label>
        <link refid="stdarg_8h"/>
      </node>
      <node id="18">
        <label>ubixos/kpanic.h</label>
        <link refid="kpanic_8h"/>
      </node>
      <node id="15">
        <label>sys/io.h</label>
        <link refid="io_8h"/>
      </node>
      <node id="8">
        <label>sys/select.h</label>
        <link refid="select_8h"/>
        <childnode refid="9" relation="include">
        </childnode>
        <childnode refid="7" relation="include">
        </childnode>
        <childnode refid="10" relation="include">
        </childnode>
        <childnode refid="11" relation="include">
        </childnode>
        <childnode refid="12" relation="include">
        </childnode>
      </node>
      <node id="1">
        <label>C:/Dev/git/UbixOS/sys/include/net/snmp.h</label>
        <link refid="snmp_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="19" relation="include">
        </childnode>
      </node>
      <node id="13">
        <label>net/arch/cc.h</label>
        <link refid="cc_8h"/>
        <childnode refid="14" relation="include">
        </childnode>
      </node>
      <node id="12">
        <label>sys/_sigset.h</label>
        <link refid="__sigset_8h"/>
        <childnode refid="7" relation="include">
        </childnode>
      </node>
      <node id="3">
        <label>net/lwipopts.h</label>
        <link refid="lwipopts_8h"/>
      </node>
      <node id="6">
        <label>sys/types.h</label>
        <link refid="include_2sys_2types_8h"/>
        <childnode refid="7" relation="include">
        </childnode>
        <childnode refid="8" relation="include">
        </childnode>
      </node>
      <node id="20">
        <label>net/def.h</label>
        <link refid="def_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
        <childnode refid="2" relation="include">
        </childnode>
      </node>
      <node id="5">
        <label>net/arch.h</label>
        <link refid="arch_8h"/>
        <childnode refid="6" relation="include">
        </childnode>
        <childnode refid="13" relation="include">
        </childnode>
        <childnode refid="16" relation="include">
        </childnode>
        <childnode refid="18" relation="include">
        </childnode>
      </node>
      <node id="22">
        <label>net/ip6_addr.h</label>
        <link refid="ip6__addr_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="20" relation="include">
        </childnode>
      </node>
      <node id="2">
        <label>net/opt.h</label>
        <link refid="opt_8h"/>
        <childnode refid="3" relation="include">
        </childnode>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="16">
        <label>lib/kprintf.h</label>
        <link refid="kprintf_8h"/>
        <childnode refid="6" relation="include">
        </childnode>
        <childnode refid="17" relation="include">
        </childnode>
      </node>
      <node id="4">
        <label>net/debug.h</label>
        <link refid="debug_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
        <childnode refid="2" relation="include">
        </childnode>
      </node>
      <node id="21">
        <label>net/ip4_addr.h</label>
        <link refid="ip4__addr_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="20" relation="include">
        </childnode>
      </node>
      <node id="19">
        <label>net/ip_addr.h</label>
        <link refid="ip__addr_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="20" relation="include">
        </childnode>
        <childnode refid="21" relation="include">
        </childnode>
        <childnode refid="22" relation="include">
        </childnode>
      </node>
      <node id="9">
        <label>sys/cdefs.h</label>
        <link refid="cdefs_8h"/>
      </node>
      <node id="14">
        <label>ubixos/time.h</label>
        <link refid="time_8h"/>
        <childnode refid="6" relation="include">
        </childnode>
        <childnode refid="10" relation="include">
        </childnode>
        <childnode refid="15" relation="include">
        </childnode>
      </node>
      <node id="7">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="10">
        <label>sys/_timespec.h</label>
        <link refid="__timespec_8h"/>
        <childnode refid="7" relation="include">
        </childnode>
      </node>
      <node id="11">
        <label>sys/_timeval.h</label>
        <link refid="__timeval_8h"/>
        <childnode refid="7" relation="include">
        </childnode>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="1">
        <label>C:/Dev/git/UbixOS/sys/include/net/snmp.h</label>
        <link refid="snmp_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="3" relation="include">
        </childnode>
      </node>
      <node id="3">
        <label>C:/Dev/git/UbixOS/sys/net/netif/ethernetif.c</label>
        <link refid="ethernetif_8c"/>
      </node>
      <node id="2">
        <label>C:/Dev/git/UbixOS/sys/net/core/netif.c</label>
        <link refid="netif_8c"/>
      </node>
    </invincdepgraph>
      <sectiondef kind="define">
      <memberdef kind="define" id="snmp_8h_1adb03de79d2e1fc600c78d8f72a757f34" prot="public" static="no">
        <name>mib2_add_arp_entry</name>
        <param><defname>ni</defname></param>
        <param><defname>ip</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="181" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="181" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1aef7dd50411354a73d3136682e620c29a" prot="public" static="no">
        <name>mib2_add_ip4</name>
        <param><defname>ni</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="185" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="185" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a4fc7123213fe9bbf0fb743e953f24043" prot="public" static="no">
        <name>mib2_add_route_ip4</name>
        <param><defname>dflt</defname></param>
        <param><defname>ni</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="187" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="187" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1abe6b270482ca9af07c029f3136d8ec9c" prot="public" static="no">
        <name>MIB2_COPY_SYSUPTIME_TO</name>
        <param><defname>ptrToVal</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="136" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="136" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a5be1b8cba1d67bf6e7f8851ec91b10f0" prot="public" static="no">
        <name>MIB2_INIT_NETIF</name>
        <param><defname>netif</defname></param>
        <param><defname>type</defname></param>
        <param><defname>speed</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="138" column="10" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="138" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a08c13574be94c2bd589c476bd0ea1ba0" prot="public" static="no">
        <name>mib2_netif_added</name>
        <param><defname>ni</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="177" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="177" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a8199a60f5794825ce5d9d03fa6d09ce8" prot="public" static="no">
        <name>mib2_netif_removed</name>
        <param><defname>ni</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="178" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="178" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a8f86f7f089ed2ecf4ed14aa01db3b173" prot="public" static="no">
        <name>mib2_remove_arp_entry</name>
        <param><defname>ni</defname></param>
        <param><defname>ip</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="182" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="182" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1adb3ddfac76153a97bbe02c220f8f85a0" prot="public" static="no">
        <name>mib2_remove_ip4</name>
        <param><defname>ni</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="186" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="186" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1aa3d83533068f4a497d6e29288973c9c3" prot="public" static="no">
        <name>mib2_remove_route_ip4</name>
        <param><defname>dflt</defname></param>
        <param><defname>ni</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="188" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="188" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a05641438775014b7e13b9e55eba48bed" prot="public" static="no">
        <name>MIB2_STATS_NETIF_ADD</name>
        <param><defname>n</defname></param>
        <param><defname>x</defname></param>
        <param><defname>val</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="140" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="140" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" prot="public" static="no">
        <name>MIB2_STATS_NETIF_INC</name>
        <param><defname>n</defname></param>
        <param><defname>x</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="139" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="139" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1acfc2d746bbaf82da4c34bbc65122931f" prot="public" static="no">
        <name>mib2_udp_bind</name>
        <param><defname>pcb</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="191" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="191" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a701a7670780a5e1663766efb7819a57b" prot="public" static="no">
        <name>mib2_udp_unbind</name>
        <param><defname>pcb</defname></param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="192" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="192" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a39c18660772ac80d7f9abe83dcc81662" prot="public" static="no">
        <name>NETIF_INIT_SNMP</name>
        <initializer><ref refid="snmp_8h_1a5be1b8cba1d67bf6e7f8851ec91b10f0" kindref="member">MIB2_INIT_NETIF</ref></initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="196" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="196" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1ad5b6b1b1fbc1949076ceb282622c61b6" prot="public" static="no">
        <name>snmp_add_ifinoctets</name>
        <param><defname>ni</defname></param>
        <param><defname>value</defname></param>
        <initializer><ref refid="snmp_8h_1a05641438775014b7e13b9e55eba48bed" kindref="member">MIB2_STATS_NETIF_ADD</ref>(ni, ifinoctets, value)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="197" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="197" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1ae23888101dd60de110eeb12d1bb77469" prot="public" static="no">
        <name>snmp_add_ifoutoctets</name>
        <param><defname>ni</defname></param>
        <param><defname>value</defname></param>
        <initializer><ref refid="snmp_8h_1a05641438775014b7e13b9e55eba48bed" kindref="member">MIB2_STATS_NETIF_ADD</ref>(ni, ifoutoctets, value)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="203" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="203" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a858d20d2c19a6b34a328b8bf229da6b6" prot="public" static="no">
        <name>snmp_inc_ifindiscards</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifindiscards)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="200" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="200" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1ae18e28e0a58c68de6a9907faa566634e" prot="public" static="no">
        <name>snmp_inc_ifinerrors</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifinerrors)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="201" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="201" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a6baa8859ef2808ba4b9328862154f6c3" prot="public" static="no">
        <name>snmp_inc_ifinnucastpkts</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifinnucastpkts)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="199" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="199" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a9e77e37cfb2281b316f9b3237be641df" prot="public" static="no">
        <name>snmp_inc_ifinucastpkts</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifinucastpkts)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="198" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="198" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a63ef2fefce2eb758433b5169afba153b" prot="public" static="no">
        <name>snmp_inc_ifinunknownprotos</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifinunknownprotos)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="202" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="202" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1afcef081cefc8176be9329ff4a6bd4249" prot="public" static="no">
        <name>snmp_inc_ifoutdiscards</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifoutdiscards)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="206" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="206" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a69d756ae146dfbe0aa04667ba4d63e20" prot="public" static="no">
        <name>snmp_inc_ifouterrors</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifouterrors)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="207" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="207" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1aacfcb7039409c47eb5e0deb064c48eb8" prot="public" static="no">
        <name>snmp_inc_ifoutnucastpkts</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifoutnucastpkts)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="205" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="205" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="snmp_8h_1a329f57e22383f787c0520e00b45545c3" prot="public" static="no">
        <name>snmp_inc_ifoutucastpkts</name>
        <param><defname>ni</defname></param>
        <initializer><ref refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" kindref="member">MIB2_STATS_NETIF_INC</ref>(ni, ifoutucastpkts)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h" line="204" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/snmp.h" bodystart="204" bodyend="-1"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
<para>SNMP support API for implementing netifs and statitics for MIB2 </para>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"></codeline>
<codeline lineno="6"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2001-2004<sp/>Swedish<sp/>Institute<sp/>of<sp/>Computer<sp/>Science.</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/>are<sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/>1.<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>2.<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer<sp/>in<sp/>the<sp/>documentation</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>and/or<sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>*<sp/>3.<sp/>The<sp/>name<sp/>of<sp/>the<sp/>author<sp/>may<sp/>not<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>``AS<sp/>IS&apos;&apos;<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>*<sp/>SHALL<sp/>THE<sp/>AUTHOR<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,</highlight></codeline>
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS</highlight></codeline>
<codeline lineno="27"><highlight class="comment"><sp/>*<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline>
<codeline lineno="28"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING</highlight></codeline>
<codeline lineno="29"><highlight class="comment"><sp/>*<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY</highlight></codeline>
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline>
<codeline lineno="31"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>the<sp/>lwIP<sp/>TCP/IP<sp/>stack.</highlight></codeline>
<codeline lineno="33"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/>Author:<sp/>Dirk<sp/>Ziegelmeier<sp/>&lt;dziegel@gmx.de&gt;</highlight></codeline>
<codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>LWIP_HDR_SNMP_H</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>LWIP_HDR_SNMP_H</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="opt_8h" kindref="compound">net/opt.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="ip__addr_8h" kindref="compound">net/ip_addr.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight></codeline>
<codeline lineno="43"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">&quot;C&quot;</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">udp_pcb;</highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnetif" kindref="compound">netif</ref>;</highlight></codeline>
<codeline lineno="49"><highlight class="normal"></highlight></codeline>
<codeline lineno="55"><highlight class="comment">/*<sp/>MIB2<sp/>statistics<sp/>functions<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>MIB2_STATS<sp/><sp/></highlight><highlight class="comment">/*<sp/>don&apos;t<sp/>build<sp/>if<sp/>not<sp/>configured<sp/>for<sp/>use<sp/>in<sp/>lwipopts.h<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
<codeline lineno="61"><highlight class="keyword">enum</highlight><highlight class="normal"><sp/>snmp_ifType<sp/>{</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/>snmp_ifType_other=1,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>none<sp/>of<sp/>the<sp/>following<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/>snmp_ifType_regular1822,</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/>snmp_ifType_hdh1822,</highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/>snmp_ifType_ddn_x25,</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/>snmp_ifType_rfc877_x25,</highlight></codeline>
<codeline lineno="67"><highlight class="normal"><sp/><sp/>snmp_ifType_ethernet_csmacd,</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/>snmp_ifType_iso88023_csmacd,</highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/>snmp_ifType_iso88024_tokenBus,</highlight></codeline>
<codeline lineno="70"><highlight class="normal"><sp/><sp/>snmp_ifType_iso88025_tokenRing,</highlight></codeline>
<codeline lineno="71"><highlight class="normal"><sp/><sp/>snmp_ifType_iso88026_man,</highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/><sp/>snmp_ifType_starLan,</highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/>snmp_ifType_proteon_10Mbit,</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/>snmp_ifType_proteon_80Mbit,</highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/>snmp_ifType_hyperchannel,</highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/>snmp_ifType_fddi,</highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/>snmp_ifType_lapb,</highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/>snmp_ifType_sdlc,</highlight></codeline>
<codeline lineno="79"><highlight class="normal"><sp/><sp/>snmp_ifType_ds1,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>T-1<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/>snmp_ifType_e1,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>european<sp/>equiv.<sp/>of<sp/>T-1<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/>snmp_ifType_basicISDN,</highlight></codeline>
<codeline lineno="82"><highlight class="normal"><sp/><sp/>snmp_ifType_primaryISDN,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>proprietary<sp/>serial<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/>snmp_ifType_propPointToPointSerial,</highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/>snmp_ifType_ppp,</highlight></codeline>
<codeline lineno="85"><highlight class="normal"><sp/><sp/>snmp_ifType_softwareLoopback,</highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/>snmp_ifType_eon,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>CLNP<sp/>over<sp/>IP<sp/>[11]<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/>snmp_ifType_ethernet_3Mbit,</highlight></codeline>
<codeline lineno="88"><highlight class="normal"><sp/><sp/>snmp_ifType_nsip,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>XNS<sp/>over<sp/>IP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="89"><highlight class="normal"><sp/><sp/>snmp_ifType_slip,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>generic<sp/>SLIP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/>snmp_ifType_ultra,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>ULTRA<sp/>technologies<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/>snmp_ifType_ds3,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>T-3<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/><sp/>snmp_ifType_sip,<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>SMDS<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/>snmp_ifType_frame_relay</highlight></codeline>
<codeline lineno="94"><highlight class="normal">};</highlight></codeline>
<codeline lineno="95"><highlight class="normal"></highlight></codeline>
<codeline lineno="97"><highlight class="preprocessor">#ifndef<sp/>MIB2_COPY_SYSUPTIME_TO</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="98"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MIB2_COPY_SYSUPTIME_TO(ptrToVal)<sp/>(*(ptrToVal)<sp/>=<sp/>(sys_now()<sp/>/<sp/>10))</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="99"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
<codeline lineno="105"><highlight class="preprocessor">#define<sp/>MIB2_STATS_NETIF_INC(n,<sp/>x)<sp/><sp/><sp/><sp/><sp/><sp/>do<sp/>{<sp/>++(n)-&gt;mib2_counters.x;<sp/>}<sp/>while(0)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight></codeline>
<codeline lineno="110"><highlight class="preprocessor">#define<sp/>MIB2_STATS_NETIF_ADD(n,<sp/>x,<sp/>val)<sp/>do<sp/>{<sp/>(n)-&gt;mib2_counters.x<sp/>+=<sp/>(val);<sp/>}<sp/>while(0)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="111"><highlight class="normal"></highlight></codeline>
<codeline lineno="119"><highlight class="preprocessor">#define<sp/>MIB2_INIT_NETIF(netif,<sp/>type,<sp/>speed)<sp/>do<sp/>{<sp/>\</highlight></codeline>
<codeline lineno="120"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;link_type<sp/>=<sp/>(type);<sp/><sp/>\</highlight></codeline>
<codeline lineno="121"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;link_speed<sp/>=<sp/>(speed);\</highlight></codeline>
<codeline lineno="122"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;ts<sp/>=<sp/>0;<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="123"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifinoctets<sp/>=<sp/>0;<sp/><sp/><sp/><sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="124"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifinucastpkts<sp/>=<sp/>0;<sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="125"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifinnucastpkts<sp/>=<sp/>0;<sp/><sp/>\</highlight></codeline>
<codeline lineno="126"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifindiscards<sp/>=<sp/>0;<sp/><sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="127"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifinerrors<sp/>=<sp/>0;<sp/><sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="128"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifinunknownprotos<sp/>=<sp/>0;<sp/><sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="129"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifoutoctets<sp/>=<sp/>0;<sp/><sp/><sp/><sp/><sp/>\</highlight></codeline>
<codeline lineno="130"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifoutucastpkts<sp/>=<sp/>0;<sp/><sp/>\</highlight></codeline>
<codeline lineno="131"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifoutnucastpkts<sp/>=<sp/>0;<sp/>\</highlight></codeline>
<codeline lineno="132"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifoutdiscards<sp/>=<sp/>0;<sp/>\</highlight></codeline>
<codeline lineno="133"><highlight class="preprocessor"><sp/><sp/>(netif)-&gt;mib2_counters.ifouterrors<sp/>=<sp/>0;<sp/>}<sp/>while(0)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="134"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>MIB2_STATS<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="135"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>MIB2_COPY_SYSUPTIME_TO</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="136" refid="snmp_8h_1abe6b270482ca9af07c029f3136d8ec9c" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MIB2_COPY_SYSUPTIME_TO(ptrToVal)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="137"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="138" refid="snmp_8h_1a5be1b8cba1d67bf6e7f8851ec91b10f0" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MIB2_INIT_NETIF(netif,<sp/>type,<sp/>speed)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="139" refid="snmp_8h_1a3c52caf566d37705c6547f2d025afd9f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MIB2_STATS_NETIF_INC(n,<sp/>x)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="140" refid="snmp_8h_1a05641438775014b7e13b9e55eba48bed" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>MIB2_STATS_NETIF_ADD(n,<sp/>x,<sp/>val)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="141"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>MIB2_STATS<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="142"><highlight class="normal"></highlight></codeline>
<codeline lineno="143"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>LWIP<sp/>MIB2<sp/>callbacks<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="144"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_MIB2_CALLBACKS<sp/></highlight><highlight class="comment">/*<sp/>don&apos;t<sp/>build<sp/>if<sp/>not<sp/>configured<sp/>for<sp/>use<sp/>in<sp/>lwipopts.h<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="145"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>network<sp/>interface<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="146"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1a08c13574be94c2bd589c476bd0ea1ba0" kindref="member">mib2_netif_added</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni);</highlight></codeline>
<codeline lineno="147"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1a8199a60f5794825ce5d9d03fa6d09ce8" kindref="member">mib2_netif_removed</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni);</highlight></codeline>
<codeline lineno="148"><highlight class="normal"></highlight></codeline>
<codeline lineno="149"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV4<sp/>&amp;&amp;<sp/>LWIP_ARP</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>ARP<sp/>(for<sp/>atTable<sp/>and<sp/>ipNetToMediaTable)<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="151"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1adb03de79d2e1fc600c78d8f72a757f34" kindref="member">mib2_add_arp_entry</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni,<sp/>ip4_addr_t<sp/>*ip);</highlight></codeline>
<codeline lineno="152"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1a8f86f7f089ed2ecf4ed14aa01db3b173" kindref="member">mib2_remove_arp_entry</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni,<sp/>ip4_addr_t<sp/>*ip);</highlight></codeline>
<codeline lineno="153"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>&amp;&amp;<sp/>LWIP_ARP<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="154"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_add_arp_entry(ni,ip)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="155"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_remove_arp_entry(ni,ip)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="156"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>&amp;&amp;<sp/>LWIP_ARP<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="157"><highlight class="normal"></highlight></codeline>
<codeline lineno="158"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>IP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="159"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV4</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="160"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1aef7dd50411354a73d3136682e620c29a" kindref="member">mib2_add_ip4</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni);</highlight></codeline>
<codeline lineno="161"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1adb3ddfac76153a97bbe02c220f8f85a0" kindref="member">mib2_remove_ip4</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni);</highlight></codeline>
<codeline lineno="162"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1a4fc7123213fe9bbf0fb743e953f24043" kindref="member">mib2_add_route_ip4</ref>(<ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/>dflt,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni);</highlight></codeline>
<codeline lineno="163"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1aa3d83533068f4a497d6e29288973c9c3" kindref="member">mib2_remove_route_ip4</ref>(<ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/>dflt,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*ni);</highlight></codeline>
<codeline lineno="164"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="165"><highlight class="normal"></highlight></codeline>
<codeline lineno="166"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>UDP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="167"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_UDP</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="168"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1acfc2d746bbaf82da4c34bbc65122931f" kindref="member">mib2_udp_bind</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>udp_pcb<sp/>*pcb);</highlight></codeline>
<codeline lineno="169"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="snmp_8h_1a701a7670780a5e1663766efb7819a57b" kindref="member">mib2_udp_unbind</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>udp_pcb<sp/>*pcb);</highlight></codeline>
<codeline lineno="170"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_UDP<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="171"><highlight class="normal"></highlight></codeline>
<codeline lineno="172"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>LWIP_MIB2_CALLBACKS<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="173"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>LWIP_MIB2_CALLBACKS<sp/>support<sp/>not<sp/>available<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="174"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>define<sp/>everything<sp/>to<sp/>be<sp/>empty<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="175"><highlight class="normal"></highlight></codeline>
<codeline lineno="176"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>network<sp/>interface<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="177" refid="snmp_8h_1a08c13574be94c2bd589c476bd0ea1ba0" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_netif_added(ni)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="178" refid="snmp_8h_1a8199a60f5794825ce5d9d03fa6d09ce8" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_netif_removed(ni)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="179"><highlight class="normal"></highlight></codeline>
<codeline lineno="180"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>ARP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="181" refid="snmp_8h_1adb03de79d2e1fc600c78d8f72a757f34" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_add_arp_entry(ni,ip)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="182" refid="snmp_8h_1a8f86f7f089ed2ecf4ed14aa01db3b173" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_remove_arp_entry(ni,ip)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="183"><highlight class="normal"></highlight></codeline>
<codeline lineno="184"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>IP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="185" refid="snmp_8h_1aef7dd50411354a73d3136682e620c29a" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_add_ip4(ni)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="186" refid="snmp_8h_1adb3ddfac76153a97bbe02c220f8f85a0" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_remove_ip4(ni)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="187" refid="snmp_8h_1a4fc7123213fe9bbf0fb743e953f24043" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_add_route_ip4(dflt,<sp/>ni)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="188" refid="snmp_8h_1aa3d83533068f4a497d6e29288973c9c3" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_remove_route_ip4(dflt,<sp/>ni)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="189"><highlight class="normal"></highlight></codeline>
<codeline lineno="190"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>UDP<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="191" refid="snmp_8h_1acfc2d746bbaf82da4c34bbc65122931f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_udp_bind(pcb)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="192" refid="snmp_8h_1a701a7670780a5e1663766efb7819a57b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>mib2_udp_unbind(pcb)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="193"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_MIB2_CALLBACKS<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="194"><highlight class="normal"></highlight></codeline>
<codeline lineno="195"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>for<sp/>source-code<sp/>compatibility<sp/>reasons<sp/>only,<sp/>can<sp/>be<sp/>removed<sp/>(not<sp/>used<sp/>internally)<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="196" refid="snmp_8h_1a39c18660772ac80d7f9abe83dcc81662" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>NETIF_INIT_SNMP<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MIB2_INIT_NETIF</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="197" refid="snmp_8h_1ad5b6b1b1fbc1949076ceb282622c61b6" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_add_ifinoctets(ni,value)<sp/><sp/>MIB2_STATS_NETIF_ADD(ni,<sp/>ifinoctets,<sp/>value)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="198" refid="snmp_8h_1a9e77e37cfb2281b316f9b3237be641df" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifinucastpkts(ni)<sp/><sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifinucastpkts)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="199" refid="snmp_8h_1a6baa8859ef2808ba4b9328862154f6c3" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifinnucastpkts(ni)<sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifinnucastpkts)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="200" refid="snmp_8h_1a858d20d2c19a6b34a328b8bf229da6b6" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifindiscards(ni)<sp/><sp/><sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifindiscards)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="201" refid="snmp_8h_1ae18e28e0a58c68de6a9907faa566634e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifinerrors(ni)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifinerrors)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="202" refid="snmp_8h_1a63ef2fefce2eb758433b5169afba153b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifinunknownprotos(ni)<sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifinunknownprotos)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="203" refid="snmp_8h_1ae23888101dd60de110eeb12d1bb77469" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_add_ifoutoctets(ni,value)<sp/>MIB2_STATS_NETIF_ADD(ni,<sp/>ifoutoctets,<sp/>value)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="204" refid="snmp_8h_1a329f57e22383f787c0520e00b45545c3" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifoutucastpkts(ni)<sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifoutucastpkts)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="205" refid="snmp_8h_1aacfcb7039409c47eb5e0deb064c48eb8" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifoutnucastpkts(ni)<sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifoutnucastpkts)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="206" refid="snmp_8h_1afcef081cefc8176be9329ff4a6bd4249" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifoutdiscards(ni)<sp/><sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifoutdiscards)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="207" refid="snmp_8h_1a69d756ae146dfbe0aa04667ba4d63e20" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>snmp_inc_ifouterrors(ni)<sp/><sp/><sp/><sp/><sp/><sp/><sp/>MIB2_STATS_NETIF_INC(ni,<sp/>ifouterrors)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="208"><highlight class="normal"></highlight></codeline>
<codeline lineno="209"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="210"><highlight class="normal">}</highlight></codeline>
<codeline lineno="211"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="212"><highlight class="normal"></highlight></codeline>
<codeline lineno="213"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_HDR_SNMP_H<sp/>*/</highlight><highlight class="preprocessor"></highlight></codeline>
    </programlisting>
    <location file="C:/Dev/git/UbixOS/sys/include/net/snmp.h"/>
  </compounddef>
</doxygen>
