| version 1.180, 2009/01/14 20:33:19 |
version 1.181, 2009/01/14 23:28:23 |
| Line 1587 sosetopt1(struct socket *so, const struc |
|
| Line 1587 sosetopt1(struct socket *so, const struc |
|
| struct linger l; |
struct linger l; |
| struct timeval tv; |
struct timeval tv; |
| |
|
| memset(&tv, 0, sizeof(struct timeval)); |
|
| |
|
| switch ((opt = sopt->sopt_name)) { |
switch ((opt = sopt->sopt_name)) { |
| |
|
| case SO_ACCEPTFILTER: |
case SO_ACCEPTFILTER: |
| Line 1701 sosetopt1(struct socket *so, const struc |
|
| Line 1699 sosetopt1(struct socket *so, const struc |
|
| |
|
| case SO_SNDTIMEO: |
case SO_SNDTIMEO: |
| case SO_RCVTIMEO: |
case SO_RCVTIMEO: |
| if (error) |
if (error == 0) |
| error = sockopt_get(sopt, &tv, sizeof(tv)); |
error = sockopt_get(sopt, &tv, sizeof(tv)); |
| solock(so); |
solock(so); |
| if (error) |
if (error) |