Dynamips has two minor bugs.

Pavel I Volkov pol at opk.ru
Wed Jul 22 08:36:49 UTC 2009


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


More information about the freebsd-emulation mailing list