Christian Helmuth wrote:
Hello,
it's me again. Could you please send me all source files for client and server code under Linux as attachment with working broadcast code? So I may get a chance to test it.
Cheers
hello... sorry i'm bothering you again.
first issue:
i've been "investigating" the code and following the calls that all procedures do during their execution. And i cannot find where setsockopt in l4vfs is implemented :(. I don't see anyware the method l4vfs_net_io_setsockopt_component(...) implemented. Just its template.
second issue:
i've managed to get a serial cable to redirect output to another terminal, and i saw something i thought i saw earlier but didn't managed to figured it out. During flips boot it gives a strange error that i can't figure it out...
##########################################################
flips-0 | l4dde_mm_init(): Using ... *flips-0 | 640 kB at 0x00280000 (vmem) *flips-0 | 1024 kB in 1 regions (kmem) *flips-0 | Initializing RT netlink socket *flips-0 | lo: I'm up now. *flips-0 | [9.2] ../../include/__macros.h:57:DICE_ERR():
*flips-0 | Error: call failed (ret -8 "item not found", exc 0) --- maybe this i
*flips-0 : s okay for you! *flips-0 | Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002) *flips-0 | tulip0: MII transceiver #1 config 1000 status 786d advertising 05e1.
*flips-0 | eth0: ADMtek Comet rev 17 at 0x1800, 00:30:05:62:64:4D, IRQ 11.
*flips-0 | NET4: Linux TCP/IP 1.0 for NET4.0 *flips-0 | IP Protocols: ICMP, UDP, TCP *flips-0 | IP: routing cache hash table of 128 buckets, 3Kbytes *flips-0 | si_meminfo(): called (1) *flips-0 | TCP: Hash tables configured (established 128 bind 170) *flips-0 | CORBA_alloc(): size=1024, 1 pointers used *flips-0 | CORBA_alloc(): got block at 0x00180004 *flips-0 | CORBA_alloc(): size=1024, 2 pointers used *flips-0 | CORBA_alloc(): got block *flips-0 | flips_session_thread(): Flips(session_thread): new thread_id 9.8
*flips-0 | *flips-0 | CORBA_alloc(): size=1024, 3 pointers used *flips-0 | CORBA_alloc(): got block at 0x00180814 *flips-0 | CORBA_alloc(): size=1024, 4 pointers used *flips-0 | CORBA_alloc(): got block at 0x00180c1c *minifcfg| print_flags(): FLAGS for eth0: BROADCAST MULTICAST *minifcfg| print_flags(): FLAGS for eth0: UP BROADCAST RUNNING MULTICAST *minifcfg| print_flags(): FLAGS for eth0: BROADCAST MULTICAST *minifcfg| print_flags(): FLAGS for eth0: UP BROADCAST RUNNING MULTICAST *minifcfg| ifconfig(): eth0: inet 10.10.5.197 *minifcfg| *minifcfg| print_flags(): FLAGS for eth0: BROADCAST *minifcfg| ifconfig(): eth0: netmask 255.255.0.0 *minifcfg| main(): register at names *minifcfg| main(): eternal sleep *flips-0 | flips_session_thread(): Flips(session_thread): new thread_id 9.a *flips-0 | *flips-0 | CORBA_alloc(): size=1024, 5 pointers used *flips-0 | CORBA_alloc(): got block at 0x00181024 *flips-0 | CORBA_alloc(): size=1024, 6 pointers used *flips-0 | CORBA_alloc(): got block at 0x0018142c *testebro| main(): socket send error *testebro| main(): size_sent = -1 *testebro| *flips-0 | eth0: Setting full-duplex based on MII#1 link partner capability of 4
*flips-0 : 1e1.
###################################################
*flips-0 | Error: call failed (ret -8 "item not found", exc 0) --- maybe this i
*flips-0 : s okay for you!
I don't know what this means, but my menu.lst looks like this... is it something missing?
###########################################################
title Testes root (hd0,0) kernel /home/tiago/fiasco_builddir/rmgr -sigma0 modaddr 0x02000000 module /home/tiago/fiasco_builddir/main -nokdb -nowait -serial_esc -comspeed 115200 -comport 1 module /home/tiago/fiasco_builddir/sigma0 module /home/tiago/fiasco_builddir/names module /home/tiago/fiasco_builddir/dm_phys module /home/tiago/fiasco_builddir/l4io module /home/tiago/fiasco_builddir/name_server module /home/tiago/fiasco_builddir/flips-lxdrv module /home/tiago/fiasco_builddir/mini_ifconfig eth0 10.10.5.197 255.255.0.0 10.10.255.255 module /home/tiago/fiasco_builddir/testebroadcast
###########################################################
is there any server missing?
thanks for your help so far
Tiago
Hi,
just a brief reply because I'm really busy until next Monday...
... oops, it's Tueasday and I did not finish the email - shame on me. I hope it still helps you.
On Wed, Apr 06, 2005 at 10:14:10AM +0100, Tiago Jorge wrote:
first issue:
i've been "investigating" the code and following the calls that all procedures do during their execution. And i cannot find where setsockopt in l4vfs is implemented :(. I don't see anyware the method l4vfs_net_io_setsockopt_component(...) implemented. Just its template.
A grep brought up:
flips/lib/server/libflips_server.c:324:l4_int32_t l4vfs_net_io_setsockopt_component(CORBA_Object _dice_corba_obj,
As this is a library linked to the Flips server it calls setsockopt() of libsocket_linux, which in turn calls sock_setsockopt() or sock->ops->setsockopt() - in your case sock_setsockopt() in net/core/sock.c:174 from original Linux 2.4 sources.
On client side it's:
1. l4vfs/lib/libc_backends/socket_io/socket.c:671:int setsockopt(int s, int * level, int optname, const void *optval, 2. l4vfs/lib/client/net_io.c:284:int l4vfs_setsockopt(l4_threadid_t server, 3. l4vfs/idl/OBJ-x86-l4v2/net_io-client.c:1363:l4vfs_net_io_setsockopt_call(const_CORBA_Object _dice_corba_obj,
I don't see why your call to setsockopt() should not end up in Flips.
Any progress with this issue in the last week?
second issue:
i've managed to get a serial cable to redirect output to another terminal, and i saw something i thought i saw earlier but didn't managed to figured it out. During flips boot it gives a strange error that i can't figure it out...
[...]
###################################################
*flips-0 | Error: call failed (ret -8 "item not found", exc 0) --- maybe this i
*flips-0 : s okay for you!
I don't know what this means, but my menu.lst looks like this... is it something missing?
In this case, this is no error and "okay for you". Sorry for ambiguity of the message.
Regards
errr... Its strange... I've gaven up of broadcast... setsockopt works out fine. I've debugged the errors that came from the calls of socket_linux (after our mail i went to follow all the path that you describe in this email :) ) and stuff... and if i broadcast it says "network unreachable" and if i try to multicast it says "no such device".
It's strange because i've configured the NIC to work both with multicast and broadcast(i think...) and it works fine peer to peer. I've set his address, netmask and broadaddr and flags to UP RUNNING BROADCAST MULTICAST... so i'm out of solutions. I'm converting now my program to unicast. But if you have any solution on this i would apreciate it much.
thanks for the help
Tiago
Hi,
just a brief reply because I'm really busy until next Monday...
... oops, it's Tueasday and I did not finish the email - shame on me. I hope it still helps you.
On Wed, Apr 06, 2005 at 10:14:10AM +0100, Tiago Jorge wrote:
first issue:
i've been "investigating" the code and following the calls that all procedures do during their execution. And i cannot find where setsockopt in l4vfs is implemented :(. I don't see anyware the method l4vfs_net_io_setsockopt_component(...) implemented. Just its template.
A grep brought up:
flips/lib/server/libflips_server.c:324:l4_int32_t l4vfs_net_io_setsockopt_component(CORBA_Object _dice_corba_obj,
As this is a library linked to the Flips server it calls setsockopt() of libsocket_linux, which in turn calls sock_setsockopt() or sock->ops->setsockopt() - in your case sock_setsockopt() in net/core/sock.c:174 from original Linux 2.4 sources.
On client side it's:
- l4vfs/lib/libc_backends/socket_io/socket.c:671:int setsockopt(int s, int * level, int optname, const void *optval,
- l4vfs/lib/client/net_io.c:284:int l4vfs_setsockopt(l4_threadid_t server,
- l4vfs/idl/OBJ-x86-l4v2/net_io-client.c:1363:l4vfs_net_io_setsockopt_call(const_CORBA_Object _dice_corba_obj,
I don't see why your call to setsockopt() should not end up in Flips.
Any progress with this issue in the last week?
second issue:
i've managed to get a serial cable to redirect output to another terminal, and i saw something i thought i saw earlier but didn't managed to figured it out. During flips boot it gives a strange error that i can't figure it out...
[...]
###################################################
*flips-0 | Error: call failed (ret -8 "item not found", exc 0) --- maybe this i
*flips-0 : s okay for you!
I don't know what this means, but my menu.lst looks like this... is it something missing?
In this case, this is no error and "okay for you". Sorry for ambiguity of the message.
Regards
l4-hackers@os.inf.tu-dresden.de