From owner-freebsd-emulation@FreeBSD.ORG Wed Jul 22 08:36:49 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D95F106566B; Wed, 22 Jul 2009 08:36:49 +0000 (UTC) (envelope-from pol@opk.ru) Received: from fire.iib.ru (fire.iib.ru [195.151.95.16]) by mx1.freebsd.org (Postfix) with ESMTP id 096068FC18; Wed, 22 Jul 2009 08:36:48 +0000 (UTC) (envelope-from pol@opk.ru) Received: from mars.iib.ru (mars.iib.ru [192.168.49.100]) by fire.iib.ru (8.9/8.9) with ESMTP id n6M81hdT005125; Wed, 22 Jul 2009 12:01:44 +0400 (MSD) (envelope-from pol@opk.ru) Received: from [192.168.100.36] (polwin.iib.ru [192.168.100.36]) (user=pol mech=PLAIN bits=0) by mars.iib.ru (8.13.3/8.13.3) with ESMTP id n6M81fuO009723; Wed, 22 Jul 2009 12:01:42 +0400 (MSD) (envelope-from pol@opk.ru) Message-ID: <4A66C729.703@opk.ru> Date: Wed, 22 Jul 2009 12:00:41 +0400 From: Pavel I Volkov User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Max Khon References: <20090719152407.c9f3b912.nork@FreeBSD.org> <78D32019-1C75-4FE8-BF59-A5A3CF58766B@samodelkin.net> In-Reply-To: <78D32019-1C75-4FE8-BF59-A5A3CF58766B@samodelkin.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.94/9604/Wed Jul 22 04:59:17 2009 on kav.iib.ru. X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (fire.iib.ru [192.168.49.14]); Wed, 22 Jul 2009 12:01:45 +0400 (MSD) X-Spam-Status: No, score=-101.3 required=6.0 tests=ALL_TRUSTED,AWL, USER_IN_WHITELIST autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fire.iib.ru Cc: Pavel Volkov , freebsd-emulation@FreeBSD.org, Christophe Fillot , Norikatsu Shigemura Subject: Re: Dynamips has two minor bugs. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 08:36:49 -0000 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)? >> > > Go ahead! You may also take maintainership of dynamips port if you like. > > Max