]> git.dujemihanovic.xyz Git - u-boot.git/commit
net - Support ping reply when processing net-loop
authorEd Swarthout <Ed.Swarthout@freescale.com>
Wed, 7 Mar 2007 18:14:50 +0000 (12:14 -0600)
committerBen Warren <bwarren@qstreams.com>
Wed, 7 Mar 2007 23:12:15 +0000 (18:12 -0500)
commit83853178bd36bca6f0f8f1331476620c84a587fc
treee5408afbc6f933e6da2c16a1ab119b7864fc026c
parentccbc7036648e465697ca298ba51e0e76dda352a0
net - Support ping reply when processing net-loop

Add ICMP_ECHO_REQUEST packet support by responding with a ICMP_ECHO_REPLY.

This permits the ping command to test the phy interface when the phy
is put in loopback mode (typically by setting register 0 bit 14).

It also allows the port to respond to an external ping when u-boot is
processing some other net command (such as tftp).  This is useful when
tftp appears to hang.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Ben Warren <bwarren@qstreams.com>
net/net.c