From 0c739e2b567738ab61e63977eff92d9cedd6020e Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 7 Jan 2012 00:47:27 +0000 Subject: In sys/contrib/rdma/ib_addr.h, bump MAX_ADDR_LEN to 20 bytes (the same value used in sys/ofed/include/linux/netdevice.h), so there will be no buffer overruns in the rest of the inline functions in this file. Reviewed by: kmacy MFC after: 1 week --- sys/contrib/rdma/ib_addr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/rdma/ib_addr.h b/sys/contrib/rdma/ib_addr.h index 3df9949..8734465 100644 --- a/sys/contrib/rdma/ib_addr.h +++ b/sys/contrib/rdma/ib_addr.h @@ -42,7 +42,7 @@ #include -#define MAX_ADDR_LEN ETHER_ADDR_LEN /* XXX doesn't support IB! */ +#define MAX_ADDR_LEN 20 struct rdma_addr_client { int refcount; -- cgit v1.1