Mercurial > illumos > illumos-gate
changeset 14073:dc50d198fe94
3861 tcp buffer size tunables for iscsi connections (fix sizeof calls)
author | Christopher Siden <chris.siden@delphix.com> |
---|---|
date | Sun, 07 Jul 2013 18:15:31 -0800 |
parents | 706bba24f9ab |
children | cac17ab5e600 |
files | usr/src/uts/common/io/idm/idm_so.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/idm/idm_so.c Sun Jun 09 16:07:11 2013 +0000 +++ b/usr/src/uts/common/io/idm/idm_so.c Sun Jul 07 18:15:31 2013 -0800 @@ -719,9 +719,9 @@ /* Set connect options */ (void) ksocket_setsockopt(ks, SOL_SOCKET, SO_RCVBUF, - (char *)&idm_so_rcvbuf, sizeof (int), CRED()); + (char *)&idm_so_rcvbuf, sizeof (idm_so_rcvbuf), CRED()); (void) ksocket_setsockopt(ks, SOL_SOCKET, SO_SNDBUF, - (char *)&idm_so_sndbuf, sizeof (int), CRED()); + (char *)&idm_so_sndbuf, sizeof (idm_so_sndbuf), CRED()); (void) ksocket_setsockopt(ks, IPPROTO_TCP, TCP_NODELAY, (char *)&on, sizeof (on), CRED()); }