about UDP packet capture error



hi
I am a beginner in network programming I am trying out a UDP packet
transfer between a windows machine and a linux I created a structure on
both sides (ie on linux and on windows) and I sent using a UDP but the
packetI captured appeared to be with some extra-added data
I tried to clear the buffer before packet is ordered and sent and even
cleared the buff before capturing it on receiving side I am placing
both the print and structure I used
kindly suggest me what to modify

my structure
<code>
typedef struct
{
INT32S connId;
INT32S seqNo;
}addrData_t;

typedef struct
{
INT16S typeId;
INT16S length;
addrData_t addrData;

}addrItem_t;

typedef struct
{
INT16S typeId;
INT16S length;
INT8U data[1];
}dataItem_t;

typedef struct
{
INT16S itemCount;
addrItem_t addrItem;
dataItem_t dataItem;
} udpPacket_t;
</code>


print of windows from sending side
2 0 0 0 2 80 0 0 8 0 0 0 15 d6 99 b6 0 0 0 0 UDP PACKET SENT

typeid 8002
len 8
conn b69a263b
seq 0
dtype b1
dlen 1
data 12




print of linux from receiving side
2 0 0 0 2 ffffff80 0 0 8 0 0 0 15 ffffffd6 ffffff99
ffffffb6 0 0 0 0

Type Id 0
length 8002
ConnId 80000
Seq no d6150000
Data typeid b699
Data length 0
Item Count 2


kindly suggest what mistake I did both machines are same "ENDEIN"s

thanks regards
PMM

.



Relevant Pages

  • [PATCH 19-rc2] Fix misc .c/.h comment typos
    ... Implements an interface for i2c compatible eeproms to run under linux. ... Changed struct initializer syntax to the currently preferred notation ... ** Packet is an actual packet structure to be filled in with the packet ... -** as the command processore doesn't process the command packet in any way. ...
    (Linux-Kernel)
  • [PATCH][RFC] pte notifiers -- support for external page tables
    ... Linux cannot demand page this memory and it must be locked. ... This sample patch adds a new mechanism, pte notifiers, that allows drivers ... struct mempolicy; ...
    (Linux-Kernel)
  • Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros.
    ... William Lee Irwin III wrote: ... data structure floating around the kernel with enough information to ... The example I gave was to show how far things could diverge from Linux' ... analogue, its lack of a direct equivalent of struct page, and its use ...
    (Linux-Kernel)
  • Re: about UDP packet capture error
    ... transfer between a windows machine and a linux I created a structure on ... typedef struct ...
    (comp.lang.c)
  • Re: about UDP packet capture error
    ... transfer between a windows machine and a linux I created a structure on ... typedef struct ... kindly suggest what mistake I did both machines are same "ENDEIN"s ...
    (comp.lang.c)