Hi Jana, On 05/19/2013 04:47 PM, Jana Rapava wrote: > I'm working on IP broadcast and trying to write some testing code for it. > I have the following problem: changed files are in the > uspace/srv/inet/inetsrv/ directory, > testing code must be in uspace/app/ directory, and I can't figure out how > to do the > linking correctly without moving inetsrv code (with all dependencies) into > libc. > Solution is probably trivial, but after ten days I still can't find it, so > any advice will be > really appreciated. > > By the way, are these functions (in uspace/srv/inet/inetsrv) meant to be > called directly, > or through IPC subsystem? From the source code, it looks like the former, > but they are in uspace/srv/, so I am not completely sure.
inetsrv (as all servers) provides its services via IPC, see *_conn functions in inetsrv.c, which convert IPC requests into function calls. (Their counterparts in libc are in uspace/lib/c/generic/inet*.c and the method IDs are defined in uspace/lib/c/include/ipc/inet.h) I'm not familar with HelenOS' network stack so I cannot answer in more detail which interfaces need to be modified, but my guess is that inet_send (defined in uspace/lib/c/generic/inet.c) is the one you are looking for (references to this function should point you to places where ip packets are sent from tcp/udp servers). Hope this helps. Regards, Martin Sucha _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
