随笔分类 -  nd

RFC笔记—Neighbor Discovery for IP version 6 (IPv6)
摘要:Router Solicitation Message Source Address An IP address assigned to the sending interface, or the unspecified address if no address is assigned to th 阅读全文

posted @ 2018-04-29 17:11 yanhc 阅读(597) 评论(0) 推荐(0)

lwip nd
摘要:ND有4项缓存,对于前缀、邻居、目的、默认路由器。 对于缓存,现在了解的比较清楚了; 但,对于其它3项,邻居、目的、默认路由器,还不是太了解, 在ip6_route中,看到了对默认路由器的使用,对于全局地址,在通过LWIP_HOOK_IP6_ROUTE找不到路径时,会先看目的地址子网是否和本地接口的 阅读全文

posted @ 2018-04-23 22:30 yanhc 阅读(365) 评论(0) 推荐(0)

lwip nd没有实现ra,contik有参考
摘要:lwip中关于nd的实现,没有路由器的功能,不能发送ra 在contiki中发现有nd发送ra的实现, contiki/core/net/ipv6/uip-ds6.c 在rs的接收处理中,发送sollicited,在定时器中定期发送periodic。 发送solicted的时候,其实,是让定时器直接 阅读全文

posted @ 2018-03-11 00:05 yanhc 阅读(543) 评论(0) 推荐(0)

调用winpcap发送路由器公告
摘要:#include #include #include #pragma comment(lib, "packet.lib") #pragma comment(lib, "wpcap.lib") int main(int argc, char **argv) { pcap_t *fp; char errbuf[PCAP_ERRBUF_SIZE]; u_ch... 阅读全文

posted @ 2018-02-05 23:38 yanhc 阅读(447) 评论(0) 推荐(0)

导航