邻居表(Neighbour Table)问题

合集下载

EBGP邻居的Loopback地址ping不通

EBGP邻居的Loopback地址ping不通

路由器故障:EBGP邻居的Loopback地址ping不通 2011-05-17 10:59 佚名 51CTO整理我要评论(0)本文主要向大家介绍了EBGP邻居的Loopback地址ping不通的故障解决方法,希望大家掌握。

Loopback地址:系统管理员完成网络规划之后,为了方便管理,会为每一台路由器创建一个loopback 接口,并在该接口上单独指定一个IP 地址作为管理地址,管理员会使用该地址对路由器远程登录(telnet ),该地址实际上起到了类似设备名称一类的功能。

以下就是EBGP邻居的Loopback地址ping不通的故障解决步骤:网络环境在图的网络中,RouterB和RouterC之间建立EBGP邻居。

在RouterB上ping不通RouterC 的Loopback地址和业务网段,也无法通过Loopback地址远程登陆,但是可以通过直连接口地址Telnet登陆。

图EBGP邻居的Loopback地址ping不通故障分析步骤 1 在RouterC上,执行命令display current-configuration查看配置:BGP视图下RouterC通过network命令发布路由给RouterB,同时使能了BGP dampening特性,还在OSPF视图下通过import-route static命令引入了所有静态路由。

步骤 2 在RouterB上,执行命令display ip routing-table查看路由表,发现没有学习到RouterC发布的路由。

步骤 3 在RouterC上,执行命令display ip routing-table查看无法发布的业务网段,发现激活的路由是OSPF ASE路由,不是黑洞路由。

原因是黑洞路由的优先级为200,比OSPF ASE路由的优先级150要低。

以218.15.232.0/21网段为例,黑洞路由配置如下:1.ip route-static 218.15.232.0 255.255.248.0 NULL0 preference 200 只有OSPF ASE的状态是Active Adv:2.<RouterA> display ip routing-table 218.15.232.0 21 verbose3.4.Routing Table : Public5.6.Summary Count : 37.8.Destination: 218.15.232.0/219.10.Protocol: O_ASE Process ID: 1011.12.Preference: 150 Cost: 1113.14.NextHop: 59.34.59.34 Interface: GigabitEthernet2/0/815.16.RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.017.18.Tunnel ID: 0x0 Label: NULL19.20.State: Active Adv Age: 03h58m01s21.22.Tag: 123.24.Destination: 218.15.232.0/2125.26.Protocol: BGP Process ID: 027.28.Preference: 150 Cost: 029.30.NextHop: 218.15.239.234 Interface: GigabitEthernet2/0/831.32.RelyNextHop: 59.34.59.34 Neighbour: 218.15.239.23433.34.Tunnel ID: 0x0 Label: NULL35.36.State: Inactive Adv GotQ Age: 04h50m28s38.Tag: 039.40.Destination: 218.15.232.0/2141.42.Protocol: Static Process ID: 043.44.Preference: 200 Cost: 045.46.NextHop: 0.0.0.0 Interface: NULL047.48.RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.049.50.Tunnel ID: 0x0 Label: NULL51.52.State: Inactive Adv Age: 240d22h14m12s53.54.Tag: 0步骤 4 查看RouterC的log信息,发现OSPF持续震荡。

IT面试常见的逻辑推理题

IT面试常见的逻辑推理题

1.一个粗细均匀的长直管子,两端开口,里面有4个白球和4个黑球,球的直径、两端开口的直径等于管子的内径,现在白球和黑球的排列是wwwwbbbb,要求不取出任何一个球,使得排列变为bbwwwwbb。

答:把管对上2.一只蜗牛从井底爬到井口,每天白天蜗牛要睡觉,晚上才出来活动,一个晚上蜗牛可以向上爬3尺,但是白天睡觉的时候会往下滑2尺,井深10尺,问蜗牛几天可以爬出来?答:8天3.在一个平面上画1999条直线最多能将这一平面划分成多少个部分?答:平面上只要多出现一条直线,就能至少多把平面分出一部分,而若此直线与其他直线有n个交点,就再能把平面多分出n个部分,因此若想把平面划分的部分最多,新添入的直线必须与前k条直线交k个点,即第二条直线要与第一条直线交1个点,第三条要与前两条交2个点,……,第1999条与前1998条交1998个点,这样,第二条直线多划分出1+1=2个部分,第三条直线多划分出1+2=3个部分,……,第1999条直线多划分出1+1998=1999个部分。

而第一条直线把平面划分出2个部分,因此1999条直线能划分平面的块数为:2+2+3+4+5+…+1998+1999=1+(1+2+3+4+5+…+1998+1999)=1+(1+1999)*1999/2=19990014.在太平洋的一个小岛上生活着土人,他们不愿意被外人打扰,一天,一个探险家到了岛上,被土人抓住,土人的祭司告诉他,你临死前还可以有一个机会留下一句话,如果这句话是真的,你将被烧死,是假的,你将被五马分尸,可怜的探险家如何才能活下来?答:我就是来被你们五马分尸的。

5.怎样种四棵树使得任意两棵树的距离相等。

答:只需要找一个锥形平台,下面栽种三棵树,成正三边形,平台上为第四棵,让第四棵树到其它三棵的距离相等即可。

6.27个小运动员在参加完比赛后,口渴难耐,去小店买饮料,饮料店搞促销,凭三个空瓶可以再换一瓶,他们最少买多少瓶饮料才能保证一人一瓶?答:18瓶。

neighbourhood课件

neighbourhood课件

The bookshop is behind the supermarket.
near
beside
behind
在…旁边 在…近旁 在…后面
Is there a gym around?
skating
No, but we have a sports center.
ห้องสมุดไป่ตู้
bookshop
garden supermarket
Unit4 Neighbourhood
neighbourhood
汇翠园社区
学习目标
1.能用一般现在时的第三人称单数 形式描述介绍自己的邻居。
2.能用There is/are…以及Is/Are there…句型介绍小区的设施。
3.能用现在进行时的陈述句形式讨论 他人正在进行的活动。
This is Jenny. She’s from Canada. She’s from Ottawa. She likes dancing.
(No.)
Homework
1. Listen and repeat. Try to introduce Li Ming’s neighbours or your neighbours.(听读4单元课文,向他人介绍
李明的邻居或自己的邻居。)
2. Share your beautiful neighbourhood or Li Ming’s neighbourhood with your friends.(和朋友分享自己的社区
Chinese chess
chess
Chinese chess is different from chess.
(不同于)
1.What are the mmeenn doing? They are playing _C__h_i_n_e__s_e__c_h.ess

北师大版小学五年级下学期阅读理解专项英语模拟综合试卷(含答案)

北师大版小学五年级下学期阅读理解专项英语模拟综合试卷(含答案)

一、阅读理解Mrs Brown is very fat. “Don’t eat meat or cakes anymore.” her doctor says to her. “I’m going to stop her eating them. Doctor,” her husband says. The next morning, Mrs Brown makes a very beautiful cake, cuts a very small piece of it and eats it. It’s very good. She cuts a bigger piece and eats it. In a few minutes she finishes the cake. My husband is going to he very angry, she says. “What am I going to do?” She makes another cake very quickly, eats half of it, and leaves the other half on the table. Her husband comes back later. He sees the half of the cake on the table and he is very glad.犇1、Because Mrs Brown is very fat, her doctor tells her to stop eating ______. ( ) A.meat and cakes B.cakes and chocolate C.milk and meat犇2、The next morning ______ makes a very beautiful cake. ( )A.Mr Brown B.Mrs Brown C.neither of them犇3、______ eats more cakes in the day. ( )A.Mr Brown B.Mrs Brown C.neither of them犇4、When Mr Brown comes hack, the cake on the table is ______ half in fact. ( )A.the fourth B.the second C.the third犇5、Mr Brown is very happy because ______. ( )A.he thinks his wife doesn't eat cakes any moreB.he sees the half of the cake on the tableC.his wife is not fat again二、阅读理解There are some easy things you can do to protect the environment.● Plant flowers, grass and trees.● Whenever(无论何时) you visit a park or a beach, take away all of your things you bring there—keep a rubbish bag.● Turn off(关) the lights, TVs when you leave the room.● Turn off the tap(水龙头) after you brush your teeth. You can save some water.● Keep the doors and windows closed in winter to keep warm.● Use less(少) things that can be used only once(一次). For example, use glass cups instead of paper cups.● Give your old clothes to children who needs.犇6、The article(文章) is ________. ( )A.a sign B.a story C.a proposal(提议)犇7、________ is good for the environment. ( )A.Keeping a rubbish bag when you are in the park B.Giving your new clothes to others C.Turning on the tap after you brush your teeth犇8、We can ________ to save paper. ( )A.turn off the lights B.use glass cups C.keep the window closed犇9、Which is WRONG? ( )A.Litter in the park when you leave away. B.Turn off the lights when you leave theroom. C.Close the doors to keep warm in winter.犇10、The main idea of this article is how to ________. ( )A.use less things B.save water C.protect the environment 三、阅读理解Mr Wang has two sons (儿子). One is Minmin and the other is Taotao. Minmin is ten years old and Taotao is twelve years old. Minmin likes swimming. Taotao likes playing computer games. They both like running. One day, they are running in the park. Minmin runs very fast and falls over (摔倒). There is a big cut (伤口) on his left leg. Taotao helps him to get up and takes him home.Mrs Wang cleans the cut. Then she asks Mr Wang to take Minmin to see the doctor. After Minmin hears that, he walks to the kitchen and takes an apple from the fridge.Taotao comes into the kitchen and asks Minmin, “Why are you eating the apple in the kitchen?” Minmin says, “I am afraid of doctors. Our teacher says that an apple a day keeps the doctor away.”犇11、Minmin and Taotao both like ______. ( )A.swimming B.playing computer games C.running D.playing table tennis犇12、Minmin’s ______ helps him get up and takes him home. ( )A.brother B.sister C.mother D.father犇13、What happens (发生) to one of the boys? ( )A.Taotao hurts his left leg. B.Taotao hurts his right leg.C.Minmin hurts his left leg. D.Minmin hurts his right leg.犇14、Their mother asks their father to ______. ( )A.clean the cut for Minmin B.call a doctor to come homeC.take Taotao to see the doctor D.take Minmin to see the doctor犇15、Minmin eats an apple because ______. ( )A.he likes apples B.he is afraid of doctorsC.he is hungry D.the apples are sweet四、阅读理解Dan is the doorman of a club in a big city. Every day, many people passed his door, and a lot of them stopped and asked him, “What's the time, please?”After a few months, Dan said to himself, “I'm not going to answ er this easy question any more.I'm going to go to a shop and buy a big clock. Then I'm going to put it up on the wall here.” He bought a clock and put it up on the wall.“Now people aren't going to stop and ask me the time any more,” he said happily. But now a lot of people stop every day, look at the clock and then say to Dan, “Is that clock right?”犇16、What does Dan do? ( )A.He is a worker. B.he is a businessman. C.He is a doorman.犇17、What did people ask at first? ( )A.Where is the club? B.What's the time? C.What day is it?犇18、Dan bought a clock because _______. ( )A.he always know the time B.he lost his watch C.he didn't like to answer the time 犇19、What do people ask Dan now? ( )A.What's the time? B.Where is the clock? C.Is your clock right?犇20、“doorman” means ______. ( )A.门卫B.司钟C.守门员五、阅读理解阅读短文,选择正确的答案。

linux邻居表状态 state

linux邻居表状态 state

在Linux中,邻居表是一种用于存储IP地址和MAC地址之间映射的数据结构。

它用于快速查找已知的邻居,以便在发送数据时减少ARP请求的频率。

邻居表的状态可以通过命令行工具或编程接口进行查询和操作。

邻居表的状态可以通过ip neighbour命令或ip -s neighbour命令进行查看。

这些命令将显示邻居表中的条目,包括IP地址、MAC地址、接口、状态等信息。

状态字段表示邻居表条目的当前状态,可能的值包括:
Reachable: 表示邻居是可达的,即可以发送数据到该邻居。

Stale: 表示邻居的状态已经过时,需要重新验证其可达性。

Delay: 表示正在等待邻居重新出现或超时。

Probe: 表示正在向邻居发送ARP请求以验证其可达性。

除了这些状态,邻居表还有其他一些有用的功能和选项,例如添加、删除或修改邻居条目,设置邻居条目的老化时间等。

可以通过查看ip neighbour命令的帮助文档或相关文档来了解更多关于邻居表的状态和操作的信息。

Create Near Table(生成近邻表)

Create Near Table(生成近邻表)
表。
如果在搜索半径内未找到任何要素,则 NEAR_FID 和 NEAR_DIST 的值都将为 -1。 如果未指定搜索半径,将使用足够大的半径,以便所有邻近要素都可纳入距离计算中。如果使用默认搜索半径(未指定半径),则输出表可能非常大。例如,如果计算一个要素
类中 1000 个点与另一个要素类中 1000 个点之间的距离,则可生成含有一百万个记录的输出表。可使用搜索半径来限制输出记录的数量。 输入要素和邻近要素可以是相同的数据集。在输入要素和邻近要素是相同记录的情况下,将忽略这一结果,这样就不会报告与一个要素的距离是 0 个单位的要素本身。
语法
GenerateNearTable_analysis (in_features, near_features, out_table, {search_radius}, {location}, {angle}, {closest}, {closest_count})
参数 in_features near_features [near_features,...]
汇总
在搜索半径范围内,确定输入要素中的每个要素与邻近要素中的一个或多个附近要素之间的距离。结果将记录在输出表中。
图示
用法
此工具和近邻分析工具类似。但是,该工具不更新输入要素,而是创建一个新的输出表。而且,该工具能够发现和最接近匹配项的最大数量参数指定的数量一样多的邻近要素。 默认情况下,输出表包含三个字段 IN_FID、NEAR_FID 和 NEAR_DIST。其他字段则根据所选的可选参数(在参数条目中说明)添加到输出。 可以使用 INPUT_FID 或 NEAR_FID 字段将输出表连接回输入要素类或邻近要素类中。 输入要素和邻近要素都可以是点、多点、线或面。 该工具的默认选项是要找到从每个输入要素到最近的邻近要素的距离。选择 ALL 选项,即取消取中仅查找最近的要素 参数来创建包含所有输入和所有邻近要素之间的距离的

数据仓库面试题

数据仓库面试题

数据仓库面试题问题1: in exists的区别not in和not exists的区别?是一个集合运算符.a in (a, c, d, s, d-}这个运算中,前面是一个元素, 答案:n后面是一个集合,集合中的元素类型是和前面的元素一样的.而exists是一个存在判断,如果后面的查询中有结果,则exists为真,否则为假。

not in和not exi sts如果查询语句使用了not in那么内外表都进行全表扫描,没有用到索引;而not extsts的子查询依然能用到表上的索引。

所以无论那个表大,用not exists都比not in要快。

总之:尽量使用not exist ,避免使用not innot in会默认调用子查询not exist会调用关联子查询问题2:拉链表知道么?答案:拉链表就是随着时间变迁产生历史数据。

拉链表的含义:就是记录历史。

记录一个事务从开始一直到当前状态的所有变化信息。

问题3:数仓三层架构,具体每层作用?答案:1:数据访问层:主要是对非原始数据(数据库或者文本文件等存放数据的形式)的操作层,而不是指原始数据,也就是说,是对数据库的操作,而不是数据,具体为业务逻辑层或表示层提供数据服务。

2:业务逻辑层:主耍是针对具体的问题的操作,也可以理解成对数据层的操作,对数据业务逻辑处理,如果说数据层是积木,那逻辑层就是对这些积木的搭建。

3:界面层:主要表示WEB方式,也可以表示成WINFORM方式,WEB方式也可以表现成:aspx,如果逻辑层相当强大和完善,无论表现层如何定义和更改,逻辑层都能完善地提供服务。

问题4:为什么叫星型模型和雪花模型?答案:星型模型是:多维表的数据关系,它由一个事实表和一组维表组成,每个维作为主键雪花模型是:当一个或多个维没有直接连接到事实表上,而是通过其他维表连接到事实表上的时候,其图解就像雪花模型连接在一起、使用场景:雪花模型使得维度分析更加容易,比如“针对特定的广告主,有哪些客户或者公司是在线的?”星形模型用来做指标分析更适合,比如“给定的一个客户他们的收入是多少?”问题5:星型模型和雪花模型各自的优点?答案:概念一一根据事实表和维度表的关系,可将常见的模型分为星型模型和雪花模型。

Module 7 Unit 2 教学设计-外研版九年级英语上册

Module 7 Unit 2  教学设计-外研版九年级英语上册

九年级上册Module 7 Unit 2It is still read and loved.开头语:Hello boys and girls. Welcome to our happy lesson. I’m glad to be your teacher. (点击鼠标)(停顿)(P1)今天我将带领大家进行9年级上册第7模块读写课的学习。

本模块的标题是Great books。

我们将通过Unit 2 It is still read and loved.相关内容进行阅读和写作的学习。

(点击鼠标)(P2) 首先和同学们分享的是本节课的内容分析。

(点击鼠标)(P3)第二单元的课文是一篇关于《汤姆·索耶历险记》的书评。

整篇文章结构清晰,它介绍了这部小说的创作背景、故事的主人公、故事最精彩的部分以及这本书对人们的影响。

(点击鼠标)(P4) 基于以上内容,我们确定本节课的目标包括三个方面:1.能够读懂介绍和评价文学作品的文章。

2.能够将文本信息按表格进行分类。

3.能够写一篇短文介绍和评价自己喜爱的文学作品。

(点击鼠标)1(P5) 下面我们就开始新课的学习。

(点击鼠标)(P6) Do you know the man in the picture? We learnt his story when we were in Grade 7. (点击鼠标)Yes, he is Mark Twain, a great American writer. (点击鼠标)Here are some great books of his, have you ever read one of them before? (点击鼠标)(P7) Today, we are going to know more about his great book The Adventures of Tom Sawyer through a book review.(点击鼠标)(P8) 让我们开启今天的学习之旅。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

ZIGBEE:Coordinator中的邻居表(Neighbour Table)问题2011-06-13 15:56:03| 分类:ZigBee | 标签:|字号大中小订阅本文引用自C-WAR《ZIGBEE:Coordinator中的邻居表(Neighbour Table)问题》主节点的邻居表的大小为24,意味着主节点最多只可以有24个子节点(enddevice或router)。

在主节点中的JZA_vStackEvent事件中,在网络成功启动时可以设置这样一个参数:JZS_vEnableEDAddrReuse(1800);括号里德参数单位是s,表示的是,如果1800s内子节点还没有跟主节点进行数据通讯,则主节点会认为子节点死掉,接着就会触发JZS_EVENT_INACTIVE_ED_DELETED事件,将子节点从自己的邻居表删除,因此,当子节点成功入网后,如果设置了JZS_vEnableEDAddrReuse(1800),底层代码中最好在要最多每隔1800s就要跟主节点进行数据通讯,否则,主节点会将该节点的网络信息从邻居表中删除,这样,主节点发送出的数据,子节点就收不到了。

但是在这种情况下,如果,子节点默认的发送目标地址是其父节点,发送出来的数据,父节点还是能收到了。

这样,子节点能找到父节点,但是父节点找不到子节点,唯一的方法是将子节点的网络信息擦除再重新入网。

下面的代码描述的是如何读邻居表:PUBLIC void vReadNeighbourTable(uint8 notify_flag){int i;vPrintf("\n-- network table --\n");//Neighbor tablefor (i = 0; i < gsNIB.nwkNeighborTableSize; i++){if(gsNIB.nwkNeighborTable[i].u16Addr==0xffff)continue;vPrintf("Neighbor %d: addr = %d, mac:%x-%x, Device Type=%d, LQI =%d, Channel = %d\n",i,gsNIB.nwkNeighborTable[i].u16Addr,gsNIB.nwkNeighborTable[i].sExtAddr.u32H,gsNIB.nwkNeighborTable[i].sExtAddr.u32L,gsNIB.nwkNeighborTable[i].eDevicetype,gsNIB.nwkNeighborTable[i].u8LQI,gsNIB.nwkNeighborTable[i].u8Channel);if(notify_flag){}}Neighbor表[单片机]发布时间:2008-09-17 11:13:18理解1:Microchip的Stack使用了Neighbor表,说明它不是利用short mac地址来判断是否自己的叶子节点。

(经进一步阅读,这个理解是错的!)在RouteAlongTree()方法中,对邻居表中的每条记录进行判断,如果该邻居属于本节点的子节点,则判断目的地址是否该节点或该节点的下级节点(通过IsDescendant()方法实现判断)。

邻居记录的currentNeighborRecord.deviceInfo.bits.Relationship属性定义了邻居表中的节点与本节点的关系,一共有4种:NEIGHBOR_IS_PARENT, NEIGHBOR_IS_CHILD, NEIGH BOR_IS_SIBLING(sibling: 兄弟姐妹), NEIGHBOR_IS_NONE=================阅读IsDescendant()的实现方式时发现有局限性。

子节点的地址分配受PROFILE_nwkMaxChil dren、PROFILE_nwkMaxDepth、PROFILE_nwkMaxRouters这些配置参数的限制。

那么同一个网内的节点的这些参数是否必须采用相同的取值?另外,GetCSkipVal()的实现代码只支持9层的层次。

=================既然有表,就有表中记录的添加、删除、查找、修改,容量达到最大值时的处理,初始化等操作。

下面查看对应的代码。

1、Neighbor表的变量:neighborTable (NIB_TABLE.nwkNeighborTable 待分析)表中的最大记录数:MAX_NEIGHBORS (zMAC_*.c中限制最大255)定义在zNVM.c:===============// Neighbor Table informationNEIGHBOR_RECORD currentNeighborRecord; // Node information. NEIGHBOR_TABLE_INFO currentNeighborTableInfo; // Info about the neighbo r table and the node's children.#ifdef USE_EXTERNAL_NVMWORD neighborTableInfo;WORD neighborTable;WORD pCurrentNeighborRecord;#elseROM NEIGHBOR_TABLE_INFO neighborTableInfo = {0x00}; // Initialize to somethi ng other than the valid key.ROM NEIGHBOR_RECORD neighborTable[MAX_NEIGHBORS] = {0x00}; // Does not need initializing, but the HI-TECH compiler will not place it in ROM memory otherwiseROM NEIGHBOR_RECORD *pCurrentNeighborRecord;#endif================2、Neighbor记录的结构:typedef struct _NEIGHBOR_RECORD{LONG_ADDR longAddr;SHORT_ADDR shortAddr;PAN_ADDR panID;NEIGHBOR_RECORD_DEVICE_INFO deviceInfo;BYTE LogicalChannel; // Needed to add for NLME_JOIN_request and o ther things.#ifdef I_SUPPORT_SECURITYBOOL bSecured;#endif} NEIGHBOR_RECORD; // 15 bytes longtypedef union _NEIGHBOR_RECORD_DEVICE_INFO{struct{BYTE LQI : 8;BYTE Depth : 4;BYTE StackProfile : 4; // Needed for network discoveryBYTE ZigBeeVersion : 4; // Needed for network discoveryBYTE deviceType : 2;BYTE Relationship : 2;BYTE RxOnWhenIdle : 1;BYTE bInUse : 1;BYTE PermitJoining : 1;BYTE PotentialParent : 1;} bits;DWORD Val;} NEIGHBOR_RECORD_DEVICE_INFO;typedef struct _NEIGHBOR_TABLE_INFO{WORD validityKey;BYTE neighborTableSize;#ifndef I_AM_COORDINATORBYTE parentNeighborTableIndex;#endif#ifndef I_AM_END_DEVICEBYTE depth; // Our depth in the networkSHORT_ADDR cSkip; // Address block sizeSHORT_ADDR nextEndDeviceAddr; // Next address available to give to an end dev iceSHORT_ADDR nextRouterAddr; // Next address available to give to a routerBYTE numChildren; // How many children we haveBYTE numChildRouters; // How many of our children are routersunion _flags{BYTE Val;struct _bits{BYTE bChildAddressInfoValid : 1; // Child addressing information is valid } bits;}flags;#endif} NEIGHBOR_TABLE_INFO;3、相关方法:GetNeighborRecord( &currentNeighborRecord, pCurrentNeighborRecord );将pCurrentNeighborRecord指向的记录的内容复制到currentNeighborRecord结构中。

(GetNeighborRecord()在zNVM.h中定义,是个指向NVMRead()的宏;NVMRead()在zNVM. c中实现,若邻居表保存在NVM中(eeprom中),通过SPI来取数据,否则调用memcpypg m2ram()方法;memcpypgm2ram()在Common/Compiler.h中定义,根据不同的环境指向不同的系统函数)PutNeighborRecord(pCurrentNeighborRecord, &currentNeighborRecord);将currentNeighborRecord的内容复制到pCurrentNeighborRecord指向的地址。

(PutNeighborRecord()在zNVM.h中定义,是个指向NVMWrite(NVM_ADDR *dest, BYTE * src, BYTE count)的宏;NVMWrite()在zNVM.c中实现,若邻居表保存在NVM中(eeprom中),通过SPI来取数据,否则将数据逐字节写入到程序空间中(ROM),需要按块(block)来写入;)CanAddNeighborNode( void ):搜索邻居表中有没有空的记录。

相关文档
最新文档