This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Network problems with Linux synthetic target


   Hi,

   I'm having problems with the linux synthetic target with network support.
I have configured the synthetic eth0 to map a real eth1 on the linux
machine. This is the output of the ping_test test:

[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'synth_eth0'
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
IFP: 0x02000c90, next: 0x02068da0
IFP: 0x02068da0, next: 0x00000000
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x02001800)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x02001220)
New domain route at 0x00000000
[cyg_net_init] Init: cyg_route_init(0x00000000)
[cyg_net_init] Done
Start PING test
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x0
        secs: 0
       flags: 0x0
       hw_addr: 00:e0:7d:f7:b6:37
     client IP: 10.2.2.10
         my IP: 10.2.2.10
     server IP: 10.2.2.1
    gateway IP: 10.2.2.1
  options:
        subnet mask: 255.255.255.0
       IP broadcast: 10.2.2.255
            gateway: 10.2.2.1
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a02020aeth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.10[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a02020aeth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.10[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
PING server 10.2.2.1
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020201eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.1recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020201eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.1recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020201eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.1recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020201eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.1recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020201eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.1recvfrom: Operation timed out
recvfrom: Operation timed out
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
Sent 16 packets, received 0 OK, 0 bad
PING server 10.2.2.33
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020221eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.33recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020221eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.33recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020221eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.33recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020221eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.33recvfrom: Operation timed out
eth0 tx: 28 bytes, >ff:ff:ff:ff:ff:ff <00:e0:7d:f7:b6:37 0806(arp)
00010800 06040001 00e07df7 b6370a02 020a0000 00000000 0a020221eth0 tx: ARP request , sender 00:e0:7d:f7:b6:37 10.2.2.10, target
00:00:00:00:00:00 10.2.2.33recvfrom: Operation timed out
recvfrom: Operation timed out
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
Sent 16 packets, received 0 OK, 0 bad
PASS:<Ping test OK>
EXIT:<done>

   I tried the tcpdump on the eth1 interface while the test is running
and got:


tcpdump: listening on eth1
15:53:08.994476 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.1
tell 10.2.2.1015:53:09.994463 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.1
tell 10.2.2.1015:53:10.994832 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.1
tell 10.2.2.1015:53:12.998844 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.33
tell 10.2.2.1015:53:13.994594 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.33
tell 10.2.2.1015:53:14.999686 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.33
tell 10.2.2.1015:53:15.997211 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.33
tell 10.2.2.1015:53:16.997480 0:e0:7d:f7:b6:37 Broadcast arp 42: arp who-has 10.2.2.33
tell 10.2.2.10tcpdump: pcap_loop: recvfrom: Network is down

   So, I guess the problem is that arp is not replying, right? How
do I make this work. Thanks.








-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]