diff options
author | rrs <rrs@FreeBSD.org> | 2007-05-08 15:53:03 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-05-08 15:53:03 +0000 |
commit | 8b8ad155c530dd9a4bac8ade13e4c32936248c56 (patch) | |
tree | 44ac625c143fdb6f1b927d038e030549e30d9a60 /sys/netinet6/sctp6_usrreq.c | |
parent | d5af35a7d4035bd703702740bc3e78f14022234d (diff) | |
download | FreeBSD-src-8b8ad155c530dd9a4bac8ade13e4c32936248c56.zip FreeBSD-src-8b8ad155c530dd9a4bac8ade13e4c32936248c56.tar.gz |
- Get rid of the sctp_inpcb_free() "magic numbers", now they
are sensible defines that tell what you are directing
the function to do.
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index 9804571..7e02ec5 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -522,7 +522,8 @@ sctp_must_try_again: #ifdef SCTP_LOG_CLOSING sctp_log_closing(inp, NULL, 16); #endif - sctp_inpcb_free(inp, 1, 0); + sctp_inpcb_free(inp, SCTP_FREE_SHOULD_USE_ABORT, + SCTP_CALLED_AFTER_CMPSET_OFCLOSE); SOCK_LOCK(so); SCTP_SB_CLEAR(so->so_snd); /* @@ -665,12 +666,14 @@ sctp_must_try_again: #ifdef SCTP_LOG_CLOSING sctp_log_closing(inp, NULL, 13); #endif - sctp_inpcb_free(inp, 1, 1); + sctp_inpcb_free(inp, SCTP_FREE_SHOULD_USE_ABORT + ,SCTP_CALLED_AFTER_CMPSET_OFCLOSE); } else { #ifdef SCTP_LOG_CLOSING sctp_log_closing(inp, NULL, 14); #endif - sctp_inpcb_free(inp, 0, 1); + sctp_inpcb_free(inp, SCTP_FREE_SHOULD_USE_GRACEFUL_CLOSE, + SCTP_CALLED_AFTER_CMPSET_OFCLOSE); } /* * The socket is now detached, no matter what the state of |