On Sun, Mar 23, 2008 at 10:51 PM, cheng.guanghui.ml <[EMAIL PROTECTED]> wrote: > Hello: > Today I find a strange function calling like this: > > Function Definition: (rtnet/stack/ipv4/ip_output.c) > int rt_ip_build_xmit_slow(struct rtsocket *sk, > int getfrag(const void *, char *, unsigned int, unsigned int), > const void *frag, unsigned length, struct dest_route *rt, > int msg_flags, unsigned int mtu, unsigned int prio) > > Function calling:(rtnet/stack/ipv4/ip_output.c) > return rt_ip_build_xmit_slow(sk, getfrag, frag, > length - sizeof(struct iphdr), > rt, msg_flags, mtu, prio); > > It seems as the getfrag could be regarded as getfrag function. But > I have never seen any getfrag definition.
I assume that this call is in rt_ip_build_xmit function. rt_ip_build_xmit also have 'getfrag' in it's function parameter. So, getfrag is supplied by caller of rt_ip_build_xmit. I use rtnet-0.9.10, and there are 3 calls of rt_ip_build_xmit. For example, in function rt_udp_sendmsg(stack/ipv4/udp.c). In this function, getfrag == rt_udp_getfrag. > Is there any trick in the function getfrag? Does anybody give me an > explaination? > Thanks. > Regards. > > Cheng Guanghui > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > RTnet-users mailing list > RTnet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rtnet-users > -- Iwan Budi Kusnanto ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users