diff options
author | rrs <rrs@FreeBSD.org> | 2007-05-17 12:16:24 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-05-17 12:16:24 +0000 |
commit | f03ff79b8eb759f4448ea239b33f54a4de64e72b (patch) | |
tree | 9c331efc7294abb10b0a637e060b8adcbb36b8be /sys/netinet/sctp_sysctl.c | |
parent | 471f392f70d74931953e70708e2b2883ec00fcdd (diff) | |
download | FreeBSD-src-f03ff79b8eb759f4448ea239b33f54a4de64e72b.zip FreeBSD-src-f03ff79b8eb759f4448ea239b33f54a4de64e72b.tar.gz |
- Fixed 1-2-1 model to not worry about associd in sockopts
- Fixed RTOinfo for bounding.
- Fixed connect() to return ECONNREFUSED when an ABORT is received.
- Added comments to direct Static Analysis not to look at some things
it does not understand (comments are /* sa_ignore XXXXX */)
- Bind when colliding was broken, missing not_found = 1 before
checking to see if the port was in use caused endless bind loop.
- Cookie life needs to be in milliseconds to conform to socket api.
- Cookie life is not supposed to change if its 0, On the assoc
level set we changed it to 0 opps.
- Two more static analysis issues identified by the cisco
tool. Null checks needed.
- An issue for sendfile(). Need to validate the correct
input argument.
- When sending failed due to a no route to host, we leaked
the mbuf chain failing to call m_freem().
- Fix #ifdef issue for getting hash block len when HAVE_SHA2 is NOT defined
Reviewed by: gnn
Diffstat (limited to 'sys/netinet/sctp_sysctl.c')
-rw-r--r-- | sys/netinet/sctp_sysctl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/sctp_sysctl.c b/sys/netinet/sctp_sysctl.c index 13e0ab0..ce1ab45 100644 --- a/sys/netinet/sctp_sysctl.c +++ b/sys/netinet/sctp_sysctl.c @@ -195,6 +195,12 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) xinpcb.total_recvs = inp->total_recvs; xinpcb.total_nospaces = inp->total_nospaces; xinpcb.fragmentation_point = inp->sctp_frag_point; + if (inp->sctp_socket != NULL) { + sotoxsocket(inp->sctp_socket, &xinpcb.xsocket); + } else { + bzero(&xinpcb.xsocket, sizeof xinpcb.xsocket); + xinpcb.xsocket.xso_protocol = IPPROTO_SCTP; + } SCTP_INP_INCR_REF(inp); SCTP_INP_RUNLOCK(inp); SCTP_INP_INFO_RUNLOCK(); @@ -407,7 +413,7 @@ SYSCTL_UINT(_net_inet_sctp, OID_AUTO, init_rto_max, CTLFLAG_RW, SYSCTL_UINT(_net_inet_sctp, OID_AUTO, valid_cookie_life, CTLFLAG_RW, &sctp_valid_cookie_life_default, 0, - "Default cookie lifetime in sec"); + "Default cookie lifetime in ticks"); SYSCTL_UINT(_net_inet_sctp, OID_AUTO, init_rtx_max, CTLFLAG_RW, &sctp_init_rtx_max_default, 0, |