From 8b8ad155c530dd9a4bac8ade13e4c32936248c56 Mon Sep 17 00:00:00 2001 From: rrs Date: Tue, 8 May 2007 15:53:03 +0000 Subject: - Get rid of the sctp_inpcb_free() "magic numbers", now they are sensible defines that tell what you are directing the function to do. --- sys/netinet6/sctp6_usrreq.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/netinet6') 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 -- cgit v1.1