svn commit: r230967 - stable/8/sys/contrib/rdma

Dimitry Andric dim at FreeBSD.org
Fri Feb 3 23:08:59 UTC 2012


Author: dim
Date: Fri Feb  3 23:08:58 2012
New Revision: 230967
URL: http://svn.freebsd.org/changeset/base/230967

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/8/sys/contrib/rdma/ib_addr.h
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/contrib/rdma/ib_addr.h
==============================================================================
--- stable/8/sys/contrib/rdma/ib_addr.h	Fri Feb  3 23:07:26 2012	(r230966)
+++ stable/8/sys/contrib/rdma/ib_addr.h	Fri Feb  3 23:08:58 2012	(r230967)
@@ -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 mailing list