|
|
| |
Date Posted: 2005-02-07 16:09 |
|
I see to be having trouble with getting my Header to map to the 14 byte buffer field I am using in my fragments. Here is the most recent version of what I am doing. Stuff is getting moved in but I do not think that the correct stuff is getting into the buffer.
char *msg
msg=(char *)malloc(sizeof(HEADER_SIZE));
memcpy(msg, &msg_head->Length, 2); /* Fill header */
memcpy(msg+2, &msg_head->SourceIP,4);
memcpy(msg+6, &msg_head->DestIP, 4);
memcpy(msg+10,&msg_head->ID, 1);
memcpy(msg+11,&msg_head->Offset, 2);
memcpy(msg+13,&msg_head->Flag, 1);
Anyone have any ideas why this might not be working or if it even should?
|
| |
|