From: Michael Brown Date: Thu, 13 Sep 2007 00:14:56 +0000 (+0100) Subject: Now sends IP packets correctly. X-Git-Tag: v0.9.3~71^2~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e32e8e513dec3e6ba99079feef08cec83980800;p=thirdparty%2Fipxe.git Now sends IP packets correctly. --- diff --git a/src/drivers/net/mlx_ipoib/mt25218.c b/src/drivers/net/mlx_ipoib/mt25218.c index b9b12c36c..360a12fda 100644 --- a/src/drivers/net/mlx_ipoib/mt25218.c +++ b/src/drivers/net/mlx_ipoib/mt25218.c @@ -187,23 +187,16 @@ static int mlx_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) { struct ibhdr *ibhdr = iobuf->data; - DBG ( "Sending packet:\n" ); - // DBG_HD ( iobuf->data, iob_len ( iobuf ) ); - - DBG ( "Peer:\n" ); - DBG_HD ( &ibhdr->peer[0], IB_ALEN ); - DBG ( "Bcast:\n" ); - DBG_HD ( &ib_broadcast[0], IB_ALEN ); - iob_pull ( iobuf, sizeof ( *ibhdr ) ); if ( memcmp ( ibhdr->peer, ib_broadcast, IB_ALEN ) == 0 ) { printf ( "Sending broadcast packet\n" ); - return send_bcast_packet ( ibhdr->proto, iobuf->data, - iob_len ( iobuf ) ); + return send_bcast_packet ( ntohs ( ibhdr->proto ), + iobuf->data, iob_len ( iobuf ) ); } else { printf ( "Sending unicast packet\n" ); - return send_ucast_packet ( ibhdr->peer, ibhdr->proto, + return send_ucast_packet ( ibhdr->peer, + ntohs ( ibhdr->proto ), iobuf->data, iob_len ( iobuf ) ); } }