Date: Fri, 3 Feb 2012 23:27:07 +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-7@freebsd.org Subject: svn commit: r230968 - stable/7/sys/contrib/rdma Message-ID: <201202032327.q13NR7xx009252@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Fri Feb 3 23:27:07 2012 New Revision: 230968 URL: http://svn.freebsd.org/changeset/base/230968 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/7/sys/contrib/rdma/ib_addr.h Directory Properties: stable/7/sys/ (props changed) Modified: stable/7/sys/contrib/rdma/ib_addr.h ============================================================================== --- stable/7/sys/contrib/rdma/ib_addr.h Fri Feb 3 23:08:58 2012 (r230967) +++ stable/7/sys/contrib/rdma/ib_addr.h Fri Feb 3 23:27:07 2012 (r230968) @@ -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?201202032327.q13NR7xx009252>