Date: Wed, 22 Jul 2009 12:00:41 +0400 From: Pavel I Volkov <pol@opk.ru> To: Max Khon <fjoe@samodelkin.net> Cc: Pavel Volkov <pol@opk.ru>, freebsd-emulation@FreeBSD.org, Christophe Fillot <cf@utc.fr>, Norikatsu Shigemura <nork@FreeBSD.org> Subject: Re: Dynamips has two minor bugs. Message-ID: <4A66C729.703@opk.ru> In-Reply-To: <78D32019-1C75-4FE8-BF59-A5A3CF58766B@samodelkin.net> References: <20090719152407.c9f3b912.nork@FreeBSD.org> <78D32019-1C75-4FE8-BF59-A5A3CF58766B@samodelkin.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello. The first patch is correct and will be used. The second patch causes errors in conjunction work with a network, and requires further study. (packet loss, increase in the time of delivery packages, unexpected icmp redirect in to network) "Router" ip: 192.168.0.250/24 host ip: 192.168.0.45/24 remote ip: 192.168.0.252/24 with path: Router#sh arp | i 0.(45|252) Internet 192.168.0.45 0 000d.56ce.9f67 ARPA FastEthernet0/0 Internet 192.168.0.252 0 0000.0c07.ac64 ARPA FastEthernet0/0 Router# Router#ping 192.168.0.252 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.252, timeout is 2 seconds: !.!!. Success rate is 60 percent (3/5), round-trip min/avg/max = 888/888/888 ms Router# Router#ping 192.168.0.45 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.45, timeout is 2 seconds: ..!!! Success rate is 60 percent (3/5), round-trip min/avg/max = 968/981/1008 ms Router# on host: ... icmp redirect from 192.168.0.250: 192.168.0.167 => 192.168.0.167 icmp redirect from 192.168.0.250: 192.168.0.167 => 192.168.0.167 icmp redirect from 192.168.0.250: 192.168.0.167 => 192.168.0.167 icmp redirect from 192.168.0.250: 192.168.0.167 => 192.168.0.167 ... without patch: Router#sh arp | i 0.(252|45) Internet 192.168.0.45 0 000d.56ce.9f67 ARPA FastEthernet0/0 Internet 192.168.0.252 4 0000.0c07.ac64 ARPA FastEthernet0/0 Router# Router#ping 192.168.0.252 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.252, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/12 ms Router# Router#ping 192.168.0.45 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.45, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) Router# Max Khon пишет: > Hello! > > On 19.07.2009, at 13:24, Norikatsu Shigemura wrote: > >> Hi Christophe, and FreeBSD's dynamips port maintainer. >> >> I found two minor bugs. >> >> 1. dynamips -m can't parse Cisco format (0001.0002.0003), because >> parse_mac_addr() can parse it, but not return(0). Please see >> also attached 'patch-net.c'. >> >> 2. dynamips can't communicate to real world via FreeBSD's gen_eth >> (libpcap). In this case, bpf(4) requires BIOCFEEDBACK. So I >> investigated like attached 'patch-gen_eth.c'. >> >> SEE ALSO: >> http://lists.freebsd.org/pipermail/freebsd-net/2009-July/022423.html >> >> >> >> ports maintainers >> May I commit these patch to ports/emulators/dynamips-devel >> (0.2.8RC2) >> and ports/emulators/dynamips (0.2.7)? >> <patch-net.c><patch-gen_eth.c> > > Go ahead! You may also take maintainership of dynamips port if you like. > > Max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A66C729.703>