Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2012 23:08:58 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r230967 - stable/8/sys/contrib/rdma
Message-ID:  <201202032308.q13N8wBc008613@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202032308.q13N8wBc008613>