From 30a19c3f1c51ff404d8de3196c4355fba3083c8e Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 13 Sep 2007 14:43:12 +0100 Subject: Can now both send and receive packets. LL header format not yet fixed; still using a quick hack-up just to be able to pass through data. --- src/net/infiniband.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net') diff --git a/src/net/infiniband.c b/src/net/infiniband.c index bcfac292d..c7fabd0ee 100644 --- a/src/net/infiniband.c +++ b/src/net/infiniband.c @@ -70,6 +70,17 @@ static int ib_tx ( struct io_buffer *iobuf, struct net_device *netdev, * network-layer protocol. */ static int ib_rx ( struct io_buffer *iobuf, struct net_device *netdev ) { + + struct { + uint16_t proto; + uint16_t reserved; + } * header = iobuf->data; + + iob_pull ( iobuf, sizeof ( *header ) ); + return net_rx ( iobuf, netdev, header->proto, NULL ); + + + struct ibhdr *ibhdr = iobuf->data; /* Sanity check */ -- cgit v1.2.3-55-g7522