Thread (4 messages) 4 messages, 3 authors, 2014-09-28

How to debug "Malformed Packet (Exception occurred)" when send a udp packet?

From: Kristof Provost <hidden>
Date: 2014-09-16 15:05:01

On 2014-09-07 17:12:33 (+0800), lx [off-list ref] wrote:
      I want to send a udp packet in kernel module. the codes is:
Why?
// iph->version = 4; iph->ihl = 5;
put_unaligned(0x45, (unsigned char *)send_iph);
send_iph->tos      = 0;
put_unaligned(htons(iph_len), &(send_iph->tot_len));
                ^- That's probably your problem.

Regards,
Kristof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help