linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problems with udp header compression
@ 2014-10-30  9:42 Simon Vincent
  2014-10-30 10:18 ` Simon Vincent
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Vincent @ 2014-10-30  9:42 UTC (permalink / raw)
  To: linux-wpan

I think I have stumbled across a bug in the udp header compression or 
possibly in a higher layer of the network stack.

If I send a UDP message using a RAW socket[0] the src and dest port 
numbers get corrupted on 802.15.4 devices. This does not occur on ethernet.

If I print out the udp source and destination ports in 
compress_udp_header they are incorrect. The function udp_hdr is not 
pointing at the udp header but actually the ip6 header.

If I send a UDP message using a normal UDP socket I do not have this 
problem.

Any ideas?

Simon

[0] - socket(AF_INET6, SOCK_RAW, IPPROTO_RAW);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-04 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-30  9:42 problems with udp header compression Simon Vincent
2014-10-30 10:18 ` Simon Vincent
2014-11-01  9:10   ` Alexander Aring
2014-11-04 12:34     ` Simon Vincent
2014-11-04 12:37       ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).