public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] RedBoot: __eth_install_handler?
Date: Mon, 22 Jan 2001 15:56:00 -0000	[thread overview]
Message-ID: <20010122180112.A27342@visi.com> (raw)
In-Reply-To: <20010122165603.A27112@visi.com>

> Attached is a patch that impliments __eth_install_handler()
> functionality.  It's currently hard-wired to allow up to 4
> handlers. The normal IP/ARP/RARP handlers are still handled
> seperately.

I should have added a warning:

The ethernet header data pointed to by pkt->eth_hdr is non-
persistent data.  It's an automatic variable in the function
calling the registered handler.  You should neither attempt to
free it nor expect it to be there after your handler returns to
the caller.

The pkt->pkt_bytes value passed to the registered handler
includes the 14 bytes in the Ethernet headers.  In hindsight, I
think __enet_poll should subtract 14 before calling the handler
so that pkt->pkt_bytes is the number of data bytes pointed to
by pkt->buf.

-- 
Grant Edwards
grante@visi.com

  reply	other threads:[~2001-01-22 15:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-22 11:54 Grant Edwards
2001-01-22 12:04 ` Gary Thomas
2001-01-22 12:53   ` Grant Edwards
2001-01-22 14:09     ` Grant Edwards
2001-01-22 14:51       ` Gary Thomas
2001-01-23  0:13         ` Andrew Lunn
2001-01-22 14:51 ` Grant Edwards
2001-01-22 15:56   ` Grant Edwards [this message]
2001-01-31  4:25   ` Gary Thomas

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=20010122180112.A27342@visi.com \
    --to=grante@visi.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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 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 read-only IMAP folder(s) and NNTP newsgroup(s).