svn commit: r230966 - stable/9/sys/contrib/rdma

Dimitry Andric dim at FreeBSD.org
Fri Feb 3 23:07:27 UTC 2012


Author: dim
Date: Fri Feb  3 23:07:26 2012
New Revision: 230966
URL: http://svn.freebsd.org/changeset/base/230966

Log:
  MFC r229753:
  
  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

Modified:
  stable/9/sys/contrib/rdma/ib_addr.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/contrib/rdma/ib_addr.h
==============================================================================
--- stable/9/sys/contrib/rdma/ib_addr.h	Fri Feb  3 23:00:28 2012	(r230965)
+++ stable/9/sys/contrib/rdma/ib_addr.h	Fri Feb  3 23:07:26 2012	(r230966)
@@ -42,7 +42,7 @@
 #include <contrib/rdma/ib_verbs.h>
 
 
-#define MAX_ADDR_LEN ETHER_ADDR_LEN	/* XXX doesn't support IB! */
+#define MAX_ADDR_LEN	20
 
 struct rdma_addr_client {
 	int refcount;


More information about the svn-src-stable-9 mailing list