Hello all,
             I am working on building a routing protocol using 6lowpan
stack.
In my application, I need to broadcast a msg and it leads to this part of
code from IPP.nc (around line 640)
I am using TOSSIM for simulation on micaz platform. When i run my
simulation, it runs till the dbg statement
It prints "Copy Header". and prints Segmentation fault.
I hope this means procedure memcpy is not executed properly, isn't it?

I have no clue of what could be the problem. Has anyone faced similar kind
of problem, please help.

The Code till where it runs perfectly.

    /* copy header */
    if (pkt->header_begin && pkt->header_len) {
        dbg("AM","Copy Header\n");
        memcpy(payload, pkt->header_begin, pkt->header_len);
    }
    payload += pkt->header_len;

Thank you
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to