From: Tom Roberts <tjroberts@lucent.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: HELP: Linux Net Driver confusions
Date: Tue, 06 Jun 2000 16:28:24 -0500 [thread overview]
Message-ID: <393D6CF8.EC5D5777@lucent.com> (raw)
In-Reply-To: 393C11DD.1EDA3EC1@lucent.com
Tom Roberts wrote:
> I am trying to write a network driver [...]
> In particular, I am trying to use non-ethernet headers, and cannot
> get the kernel to deliver a ping packet (ICMP protocol) back to the
> ping program even though the driver delivers the packets OK. BUT --
> essentially the same driver does seem to work on PowerPC linux....
Thanks to Jonathan Brauer, I got it to work.
Remarkably, the value in skb->protocol is in network byte order,
not the natural byte order of the current CPU. So changing:
skb->protocol = ETH_P_IP;
to:
skb->protocol = htons(ETH_P_IP);
made it work.
Note that the PowerPC byte order is the same as network order,
which is why it worked on the PowerPC but not the i586.
[sent to both c.o.l.dev.sys and linuxppc-embedded
because I queried both.]
Tom Roberts tjroberts@lucent.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next parent reply other threads:[~2000-06-06 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <393C11DD.1EDA3EC1@lucent.com>
2000-06-06 21:28 ` Tom Roberts [this message]
2000-06-06 21:52 ` HELP: Linux Net Driver confusions Dan Malek
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=393D6CF8.EC5D5777@lucent.com \
--to=tjroberts@lucent.com \
--cc=linuxppc-embedded@lists.linuxppc.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.