All of lore.kernel.org
 help / color / mirror / Atom feed
From: kristof@sigsegv.be (Kristof Provost)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to debug "Malformed Packet (Exception occurred)" when send a udp packet?
Date: Tue, 16 Sep 2014 17:05:01 +0200	[thread overview]
Message-ID: <20140916150500.GD22564@vega.codepro.be> (raw)
In-Reply-To: <CA+5jrfma=U6csKipwzGmg6JS_ra6x+rkRx=Cy1+H7PfPsNXTDA@mail.gmail.com>

On 2014-09-07 17:12:33 (+0800), lx <lxlenovostar@gmail.com> 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

  reply	other threads:[~2014-09-16 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-07  9:12 How to debug "Malformed Packet (Exception occurred)" when send a udp packet? lx
2014-09-16 15:05 ` Kristof Provost [this message]
2014-09-16 15:12 ` ankur dwivedi
2014-09-28  6:38   ` lx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140916150500.GD22564@vega.codepro.be \
    --to=kristof@sigsegv.be \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.