summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2007-09-13 02:14:56 +0200
committerMichael Brown2007-09-13 02:14:56 +0200
commit9e32e8e513dec3e6ba99079feef08cec83980800 (patch)
treee062d93324dd638be10d124e390acc90de52f911 /src
parentBugfix: DHCP message type should be a one-byte option... (d'oh) (diff)
downloadipxe-9e32e8e513dec3e6ba99079feef08cec83980800.tar.gz
ipxe-9e32e8e513dec3e6ba99079feef08cec83980800.tar.xz
ipxe-9e32e8e513dec3e6ba99079feef08cec83980800.zip
Now sends IP packets correctly.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/net/mlx_ipoib/mt25218.c15
1 files changed, 4 insertions, 11 deletions
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 ) );
}
}