Author: dim Date: Sat Jan 7 00:47:27 2012 New Revision: 229753 URL: http://svn.freebsd.org/changeset/base/229753
Log: 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 Modified: head/sys/contrib/rdma/ib_addr.h Modified: head/sys/contrib/rdma/ib_addr.h ============================================================================== --- head/sys/contrib/rdma/ib_addr.h Sat Jan 7 00:36:17 2012 (r229752) +++ head/sys/contrib/rdma/ib_addr.h Sat Jan 7 00:47:27 2012 (r229753) @@ -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; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"