亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? snmp_agent.txt

?? stm32+ucos-ii
?? TXT
字號:
SNMPv1 agent for lwIP

Author: Christiaan Simons

This is a brief introduction how to use and configure the SNMP agent.
Note the agent uses the raw-API UDP interface so you may also want to
read rawapi.txt to gain a better understanding of the SNMP message handling.

0 Agent Capabilities
====================

SNMPv1 per RFC1157
  This is an old(er) standard but is still widely supported.
  For SNMPv2c and v3 have a greater complexity and need many
  more lines of code. IMHO this breaks the idea of "lightweight IP".

  Note the S in SNMP stands for "Simple". Note that "Simple" is
  relative. SNMP is simple compared to the complex ISO network
  management protocols CMIP (Common Management Information Protocol)
  and CMOT (CMip Over Tcp).

MIB II per RFC1213
  The standard lwIP stack management information base.
  This is a required MIB, so this is always enabled.
  When builing lwIP without TCP, the mib-2.tcp group is omitted.
  The groups EGP, CMOT and transmission are disabled by default.
  
  Most mib-2 objects are not writable except:
  sysName, sysLocation, sysContact, snmpEnableAuthenTraps.
  Writing to or changing the ARP and IP address and route
  tables is not possible.
 
  Note lwIP has a very limited notion of IP routing. It currently
  doen't have a route table and doesn't have a notion of the U,G,H flags.
  Instead lwIP uses the interface list with only one default interface
  acting as a single gateway interface (G) for the default route.

  The agent returns a "virtual table" with the default route 0.0.0.0
  for the default interface and network routes (no H) for each
  network interface in the netif_list.
  All routes are considered to be up (U).

Loading additional MIBs
  MIBs can only be added in compile-time, not in run-time.
  There is no MIB compiler thus additional MIBs must be hand coded.

Large SNMP message support
  The packet decoding and encoding routines are designed
  to use pbuf-chains. Larger payloads then the minimum
  SNMP requirement of 484 octets are supported if the 
  PBUF_POOL_SIZE and IP_REASS_BUFSIZE are set to match your
  local requirement.

1 Building the Agent
====================

First of all you'll need to add the following define
to your local lwipopts.h:

#define LWIP_SNMP               1

and add the source files in lwip/src/core/snmp
and some snmp headers in lwip/src/include/lwip to your makefile.

Note you'll might need to adapt you network driver to update
the mib2 variables for your interface.

2 Running the Agent
===================

The following function calls must be made in your program to
actually get the SNMP agent running.

Before starting the agent you should supply pointers
to non-volatile memory for sysContact, sysLocation,
and snmpEnableAuthenTraps. You can do this by calling

snmp_set_syscontact()
snmp_set_syslocation()
snmp_set_snmpenableauthentraps()

Additionally you may want to set

snmp_set_sysdescr()
snmp_set_sysobjid() (if you have a private MIB)
snmp_set_sysname()

Also before starting the agent you need to setup
one or more trap destinations using these calls:

snmp_trap_dst_enable();
snmp_trap_dst_ip_set();

In the lwIP initialisation sequence call snmp_init() just after
the call to udp_init().

Exactly every 10 msec the SNMP uptime timestamp must be updated with
snmp_inc_sysuptime(). You should call this from a timer interrupt
or a timer signal handler depending on your runtime environment.

An alternative way to update the SNMP uptime timestamp is to do a call like
snmp_add_sysuptime(100) each 1000ms (which is bigger "step", but call to
a lower frequency). Another one is to not call snmp_inc_sysuptime() or
snmp_add_sysuptime(), and to define the SNMP_GET_SYSUPTIME(sysuptime) macro.
This one is undefined by default in mib2.c. SNMP_GET_SYSUPTIME is called inside
snmp_get_sysuptime(u32_t *value), and enable to change "sysuptime" value only
when it's queried (any function which need "sysuptime" have to call
snmp_get_sysuptime).


3 Private MIBs
==============

If want to extend the agent with your own private MIB you'll need to
add the following define to your local lwipopts.h:

#define SNMP_PRIVATE_MIB        1

You must provide the private_mib.h and associated files yourself.
Note we don't have a "MIB compiler" that generates C source from a MIB,
so you're required to do some serious coding if you enable this!

Note the lwIP enterprise ID (26381) is assigned to the lwIP project,
ALL OBJECT IDENTIFIERS LIVING UNDER THIS ID ARE ASSIGNED BY THE lwIP
MAINTAINERS!

If you need to create your own private MIB you'll need
to apply for your own enterprise ID with IANA: http://www.iana.org/numbers.html 

You can set it by passing a struct snmp_obj_id to the agent
using snmp_set_sysobjid(&my_object_id), just before snmp_init().

Note the object identifiers for thes MIB-2 and your private MIB
tree must be kept in sorted ascending (lexicographical) order.
This to ensure correct getnext operation.

An example for a private MIB is part of the "minimal Unix" project:
contrib/ports/unix/proj/minimal/lwip_prvmib.c

The next chapter gives a more detailed description of the
MIB-2 tree and the optional private MIB.

4 The Gory Details
==================

4.0 Object identifiers and the MIB tree.

We have three distinct parts for all object identifiers:

The prefix
  .iso.org.dod.internet

the middle part 
  .mgmt.mib-2.ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress

and the index part
  .1.192.168.0.1

Objects located above the .internet hierarchy aren't supported.
Currently only the .mgmt sub-tree is available and
when the SNMP_PRIVATE_MIB is enabled the .private tree
becomes available too.

Object identifiers from incoming requests are checked
for a matching prefix, middle part and index part
or are expanded(*) for GetNext requests with short
or inexisting names in the request.
(* we call this "expansion" but this also
resembles the "auto-completion" operation)

The middle part is usually located in ROM (const)
to preserve precious RAM on small microcontrollers.
However RAM location is possible for an dynamically
changing private tree.

The index part is handled by functions which in
turn use dynamically allocated index trees from RAM.
These trees are updated by e.g. the etharp code
when new entries are made or removed form the ARP cache.

/** @todo more gory details */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本久久电影网| 欧美日韩一区二区在线观看视频| 国产成人aaa| 9i在线看片成人免费| 日韩午夜激情视频| 日韩一区日韩二区| 国产一区二区三区综合| 欧美日韩一本到| 最近日韩中文字幕| 国产剧情一区二区三区| 7777精品伊人久久久大香线蕉| 中文字幕国产一区| 国产精品一区二区不卡| 91精品国产色综合久久不卡电影| 日韩理论片中文av| 国产成人高清在线| 久久综合九色综合97_久久久| 亚洲成人自拍网| 91蝌蚪porny成人天涯| 久久久久免费观看| 免费精品视频在线| 欧美巨大另类极品videosbest | 久久久国产综合精品女国产盗摄| 亚洲bt欧美bt精品777| 99re热这里只有精品视频| 久久精品人人爽人人爽| 欧美一区二区三区白人| 在线成人小视频| 激情文学综合网| 这里只有精品免费| 亚洲国产va精品久久久不卡综合| 国产精品成人一区二区三区夜夜夜| 日本成人在线一区| 99久久精品国产毛片| 久久综合丝袜日本网| 韩国成人福利片在线播放| 欧美精品1区2区3区| 婷婷国产在线综合| 欧美精品v国产精品v日韩精品 | 久久99国产精品久久99果冻传媒| 欧美日韩亚洲综合一区二区三区| 亚洲欧美电影一区二区| 91丨九色丨国产丨porny| 亚洲精品免费电影| 欧美午夜一区二区三区| 视频一区在线播放| 精品精品欲导航| 成人一区二区视频| 精品国产麻豆免费人成网站| 激情欧美日韩一区二区| 91在线无精精品入口| 成人免费小视频| 欧美亚洲国产怡红院影院| 香蕉乱码成人久久天堂爱免费| 在线成人av网站| 毛片不卡一区二区| 国产精品天天看| 在线中文字幕一区二区| 蜜桃一区二区三区在线观看| 国产丝袜在线精品| 色噜噜狠狠色综合欧洲selulu| 亚洲福利视频一区二区| 精品国产凹凸成av人网站| 成人永久免费视频| 亚洲成人av资源| 久久新电视剧免费观看| www.色综合.com| 三级欧美在线一区| 国产喷白浆一区二区三区| 91免费版在线| 久久国产精品区| 亚洲黄色av一区| 欧美v日韩v国产v| av福利精品导航| 偷窥少妇高潮呻吟av久久免费| 国产色爱av资源综合区| 日本道精品一区二区三区| 久久国产人妖系列| 综合久久一区二区三区| 欧美一区二区三区喷汁尤物| 波多野洁衣一区| 成人教育av在线| 午夜精品福利一区二区蜜股av| 4438x成人网最大色成网站| 成人一区二区视频| 韩国午夜理伦三级不卡影院| 亚洲天堂2016| 亚洲国产电影在线观看| 91精品国产日韩91久久久久久| 粗大黑人巨茎大战欧美成人| 青青草国产精品亚洲专区无| 最新高清无码专区| 久久精品亚洲乱码伦伦中文 | 欧美一区二区播放| 91免费国产在线观看| 国产成人在线色| 美女脱光内衣内裤视频久久影院| 玉足女爽爽91| 亚洲欧美一区二区在线观看| 久久久久国产精品人| 精品国产一区二区三区久久久蜜月 | 亚洲第一电影网| 日韩理论电影院| 26uuu精品一区二区| 欧美日韩国产不卡| 色中色一区二区| 日韩欧美国产成人一区二区| 99re66热这里只有精品3直播| 狠狠狠色丁香婷婷综合激情 | 日本vs亚洲vs韩国一区三区| 亚洲另类春色校园小说| 欧美—级在线免费片| 国产欧美日韩视频一区二区| 久久一夜天堂av一区二区三区| 日韩欧美亚洲一区二区| 欧美浪妇xxxx高跟鞋交| 欧美高清激情brazzers| 欧美精品久久一区二区三区| 欧美无砖砖区免费| 欧美无乱码久久久免费午夜一区 | 中文字幕一区二区三区四区| 久久久久久99久久久精品网站| 欧美成人精品1314www| 日韩女优电影在线观看| 精品久久久久久无| 久久精品亚洲一区二区三区浴池| 国产偷国产偷精品高清尤物| 久久精品人人做| 免播放器亚洲一区| 免费久久精品视频| 精品一区二区三区免费观看| 国产在线精品不卡| av日韩在线网站| 欧美在线综合视频| 欧美日韩视频专区在线播放| 91精品国产一区二区| 日韩一本二本av| 欧美一级一区二区| 久久精品人人做| 日韩伦理免费电影| 天天色图综合网| 久久精品国产久精国产| 激情综合亚洲精品| 成人av动漫网站| 欧美日韩一级片在线观看| 欧美一二区视频| 国产色婷婷亚洲99精品小说| 亚洲欧美成aⅴ人在线观看| 亚洲国产成人tv| 九色综合国产一区二区三区| 波波电影院一区二区三区| 精品视频在线视频| 精品美女一区二区| 亚洲欧美偷拍卡通变态| 热久久免费视频| 国产99久久久精品| 欧美日韩视频在线观看一区二区三区| 日韩免费在线观看| 自拍偷拍亚洲激情| 久久91精品国产91久久小草| 国产.欧美.日韩| 欧美午夜免费电影| 久久精品视频免费观看| 亚洲午夜影视影院在线观看| 国产又黄又大久久| 欧美猛男超大videosgay| 久久久久久久久久久黄色| 亚洲制服丝袜一区| 丰满岳乱妇一区二区三区| 91精品综合久久久久久| 亚洲欧美日韩系列| 国产大陆精品国产| 日韩三级在线观看| 一区二区三区色| av中文字幕亚洲| 国产视频一区在线播放| 日精品一区二区| 色综合久久综合网欧美综合网| 精品国产91洋老外米糕| 亚洲777理论| gogo大胆日本视频一区| 久久久精品黄色| 精品一区中文字幕| 欧美二区三区的天堂| 亚洲激情图片qvod| 99亚偷拍自图区亚洲| 国产欧美一区二区精品久导航 | 亚洲一区欧美一区| 成人黄页毛片网站| 欧美国产成人在线| 国产成人午夜电影网| 精品国产一区二区精华| 日韩精品成人一区二区在线| 欧美三级资源在线| 亚洲国产精品一区二区尤物区| 91麻豆福利精品推荐| 中文字幕视频一区| 99re成人在线| 亚洲精品高清在线观看| 色乱码一区二区三区88|