All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RE: Ethernet loopback command
Date: Tue, 8 Mar 2005 11:00:35 -0500	[thread overview]
Message-ID: <422DCC23.1090502@smiths-aerospace.com> (raw)
In-Reply-To: <D9F0B2AD4531B0449D51C1F09199D484081F2A@mail.kom-saarbruecken.com>

Thomas Sch?fer wrote:
> Hi, 
> 
>>-----Original Message-----
>>From: wd at denx.de [mailto:wd at denx.de] 

[snip]

>>I also don't understand why specific ethernet packet  types  
>>must  be invented. I don't like such non-standard solutions.
>>
> 
> The PROT_IP part of the NetReceive function examines the complete IP
> header which is not necessary here. I introduced that packet type to
> achieve a proper separtion from all other packet types. Normally the
> generated packet would remain on the board because PHY or EMAC are
> switched into loopback mode, but i agree that those non-standard packets
> could be problematic when sent to a network.

Just a thought... I have not looked at the code, so I don't know how 
practical/reasonable this thought is...

If you sent a "ping" (ICMP echo-request) packet and had your loopback 
responder return a "ping" response (ICMP echo-reply) this will be a 
standard packet and may be useful elsewhere.

* Ping packet (echo-request) generation and parsing (echo-reply) is 
already present in u-boot.  If you can reuse this code, you are that 
much further ahead.

* If you add a handler for echo-request packets, returning echo-reply 
packets, this would potentially be useful for responding to external 
computers "ping" requests (currently not implemented because of limited 
usefulness and implementation issues).

[snip]

> Best regards,
> 
> Thomas Sch?fer

gvb

  reply	other threads:[~2005-03-08 16:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-08 14:28 [U-Boot-Users] RE: Ethernet loopback command Thomas Schäfer
2005-03-08 16:00 ` Jerry Van Baren [this message]
2005-03-08 19:37 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-03-09 17:55 Thomas Schäfer
2005-03-07 17:35 [U-Boot-Users] " Thomas Schäfer
2005-03-07 19:30 ` [U-Boot-Users] " Wolfgang Denk

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=422DCC23.1090502@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.com \
    --cc=u-boot@lists.denx.de \
    /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.