<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18259">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Hello Everybody,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2
face=Arial>
This is Bharath. I had a problem in retrieving udp packets using SharpPCap.
Actaully the incoming packet size is 1636 bytes, but after retrieving the packet
using SharpPCap, i got only 1472 bytes only. It seems this is the maximum size
that SharpCap is able to receive, becuse when i supposed to receive 3236byte
packet also, i am receiving only 1472 bytes. But the strange thing which i
observed is, the udplength is showing as 3244, and UdpData is only 1472 bytes of
size. Here is the code which i used to retrieve the packet. I t will be greatful
if someone helps me in this regard.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<P>private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT
color=#0000ff size=2>void</FONT></FONT><FONT size=2>
OnPacketArrived(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff
size=2>object</FONT></FONT><FONT size=2> sender,
Tamir.IPLib.Packets.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af
size=2>Packet</FONT></FONT><FONT size=2> packet)</P>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff
size=2>if</FONT></FONT><FONT size=2> (packet </FONT><FONT color=#0000ff
size=2><FONT color=#0000ff size=2>is</FONT></FONT><FONT size=2> </FONT><FONT
color=#2b91af size=2><FONT color=#2b91af size=2>UDPPacket</FONT></FONT><FONT
size=2>)</P>
<P>{</P>
<P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af
size=2>UDPPacket</FONT></FONT><FONT size=2> pack = packet </FONT><FONT
color=#0000ff size=2><FONT color=#0000ff size=2>as</FONT></FONT><FONT size=2>
</FONT><FONT color=#2b91af size=2><FONT color=#2b91af
size=2>UDPPacket</FONT></FONT><FONT size=2>;</P>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff
size=2>if</FONT></FONT><FONT size=2> (</FONT><FONT size=2>(pack.DestinationPort
== xxxxx))</P>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff
size=2>byte</FONT></FONT><FONT size=2>[] data = pack.Data;</P></FONT><FONT
size=2>
<P>}</P>
<P>}</P>
<P>}</P>
<P> </P>
<P><FONT face=Arial>Thanks and Regards,</FONT></P>
<P><FONT face=Arial>Bharath kumar.K</FONT></P></FONT></DIV></BODY></HTML>