diff options
author | dim <dim@FreeBSD.org> | 2012-01-07 00:47:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-01-07 00:47:27 +0000 |
commit | 0c739e2b567738ab61e63977eff92d9cedd6020e (patch) | |
tree | 509e6f6873609fd132d9bea1c9974d60bce39b33 /sys/contrib/rdma/ib_addr.h | |
parent | 54d3f8299b4094d516b5eb6425277ccd37798be8 (diff) | |
download | FreeBSD-src-0c739e2b567738ab61e63977eff92d9cedd6020e.zip FreeBSD-src-0c739e2b567738ab61e63977eff92d9cedd6020e.tar.gz |
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
Diffstat (limited to 'sys/contrib/rdma/ib_addr.h')
-rw-r--r-- | sys/contrib/rdma/ib_addr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/rdma/ib_addr.h b/sys/contrib/rdma/ib_addr.h index 3df9949..8734465 100644 --- a/sys/contrib/rdma/ib_addr.h +++ b/sys/contrib/rdma/ib_addr.h @@ -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; |