To be a better coder
发布时间:2019-09-21 15:06:52
[root@localhost /]# [root@localhost /]# arp -a? (192.168.27.98) at d4:a5:2f:e7:60:8c [ether] on br0? (192.168.27.92) at 54:9f:35:0f:df:2c [ether] on br0? (169.254.255.1) at be:6a:38:98:d4:50 [ether] PERM on v1? (192.168.27.33) at 4c:cc:6a:40:5a:31 [ether] on br0? (192.168.27.1) at 5c:50:15:f0:.........【阅读全文】
发布时间:2019-09-21 11:05:21
https://docs.openstack.org/os-ken/latest/library_packet_ref/packet_ipv4.htmlclass os_ken.lib.packet.ipv4.ipv4(version=4, header_length=5, tos=0, total_length=0, identification=0, flags=0, offset=0, ttl=255, proto=0, csum=0, src='10.0.0.1', dst='10.0.0.2', option=None)?2,TCPDUMP出现“trunc.........【阅读全文】
发布时间:2019-09-20 13:58:47
# ...(snip)... import ryu.app.ofctl.api as ofctl_api class MyApp(app_manager.RyuApp): def _my_handler(self, ev): # Get all datapath objects result = ofctl_api.get_datapath(self) # Get the datapath object which has the given dpid result = ofctl_api.get_datapath(self, dpid=1)https://ryu.readthed.........【阅读全文】
发布时间:2019-09-17 13:46:41
1:在ryu中的app中导入一个新的包时,要先用python 将其中的py文件执行一遍,生成.pyc文件,否则直接ryu-manager xx 文件.py会显示找不到包的错误,可能用python执行一遍的时候会自动记录新包的路径,否则直接ryu-manager,就会报错说找不到这个新导入的模块2:root@eb73808fd133:~/ryu/ryu/app# ryu-manager haha.py .........【阅读全文】
发布时间:2019-09-17 10:54:31
在Docker容器中找不到vi命令解决办法:1.通过命令获取最新的软件包apt-get-update2.安装vi命令apt-get install vim安装过程中提示是否进行输入Y即可。安装完毕即可使用vi......【阅读全文】