about UDP packet capture error
- From: "pmm" <muralipmanohar@xxxxxxxxxxx>
- Date: 9 May 2006 02:23:30 -0700
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
.
- Follow-Ups:
- Re: about UDP packet capture error
- From: Flash Gordon
- Re: about UDP packet capture error
- From: Nick Keighley
- Re: about UDP packet capture error
- Prev by Date: Re: The void** pointer breaking symmetry?
- Next by Date: Re: what is wrong with the 'strcpy'
- Previous by thread: (const char *cp) and (char *p) are consistent type, (const char **cpp) and (char **pp) are not consistent
- Next by thread: Re: about UDP packet capture error
- Index(es):
Relevant Pages
|
|