[PATCH 04/12] remove unused NETCONSOLE stuff

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 25 02:32:22 EST 2010


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 net/net.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/net/net.c b/net/net.c
index 214685c..9818f42 100644
--- a/net/net.c
+++ b/net/net.c
@@ -576,9 +576,6 @@ NetReceive(uchar * inpkt, int len)
 				/* save address for later use */
 				memcpy(NetArpWaitPacketMAC, &arp->ar_data[0], 6);
 
-#ifdef CONFIG_NETCONSOLE
-				(*packetHandler)(0,0,0,0);
-#endif
 				/* modify header, and transmit it */
 				memcpy(((Ethernet_t *)NetArpWaitTxPacket)->et_dest, NetArpWaitPacketMAC, 6);
 				(void) eth_send(NetArpWaitTxPacket, NetArpWaitTxPacketSize);
@@ -737,13 +734,6 @@ NetReceive(uchar * inpkt, int len)
 			}
 		}
 #endif
-
-#ifdef CONFIG_NETCONSOLE
-		nc_input_packet((uchar *)ip +IP_HDR_SIZE,
-						ntohs(ip->udp_dst),
-						ntohs(ip->udp_src),
-						ntohs(ip->udp_len) - 8);
-#endif
 		/*
 		 *	IP header OK.  Pass the packet to the current handler.
 		 */
-- 
1.6.6




More information about the barebox mailing list