webserver-ipv6
uip 

所属分类:TCP/IP协议栈
开发工具:C/C++
文件大小:2KB
下载次数:10
上传日期:2011-06-06 17:25:32
上 传 者wjg19851204
说明:  这个程序是在uip协议栈上实现的对节点进行操作eweb浏览程序。通过这个程序可以熟悉uTCP/ip。
(This program is implemented on uip stack to operate on the node eweb browsing program. Through this program can be familiar with the uTCP/ip.)

文件列表:
webserver-ipv6\Makefile (119, 2010-02-15)
webserver-ipv6\Makefile.target (21, 2010-02-15)
webserver-ipv6\webserver6.c (1950, 2010-02-15)
webserver-ipv6 (0, 2011-06-06)

This example features a simple webserver running on top of the IPv6 contiki stack. For this example to run properly the UIP_CONF_TCP compilation flag must be set to 1 in the contiki-conf.h file of the platform. If you are using the minimal-net platform on linux you can test the code as follows: - First do 'ifconfig tap0 inet6 3ffe:0501:ffff:0100:0206:***ff:fe00:0231' or 'ip -6 address add 3ffe:0501:ffff:0100:0206:***ff:fe00:0231' dev tap0. - You might need to add a route 'ip -6 route add ***a:0000:0000:0000:0206:***ff:fe00:0232/*** dev tap0' - Then configure a global address by sending a router advertisement (RA) with a prefix option. You can use radvd for example to generate such a packet. Note: You should set the preferred and valid lifetime to reasonable value to avoid clock wrap-around. E.g.: AdvPreferredLifetime 400; AdvValidLifetime 600; Assume the prefix in the RA is: 3ffe:0501:ffff:0100:0000:0000:0000:0000/***. and that the resulting address created by the contiki stack is: 3ffe:0501:ffff:0100:0206:***ff:fe00:0232 - Finally you can use 'wget http://[3ffe:0501:ffff:0100:0206:***ff:fe00:0232]' to get the web page (index.html file)

近期下载者

相关文件


收藏者