usr/src/uts/common/inet/sctp/sctp_asconf.h
changeset 4691 ca8edd01a7e2
parent 1676 37f4a3e2bd99
child 11042 2d6e217af1b4
equal deleted inserted replaced
4690:13626933cac9 4691:ca8edd01a7e2
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 /*
    21 /*
    22  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
    23  * Use is subject to license terms.
    23  * Use is subject to license terms.
    24  */
    24  */
    25 
    25 
    26 #ifndef _INET_SCTP_SCTP_ASCONF_H
    26 #ifndef _INET_SCTP_SCTP_ASCONF_H
    27 #define	_INET_SCTP_SCTP_ASCONF_H
    27 #define	_INET_SCTP_SCTP_ASCONF_H
    32 extern "C" {
    32 extern "C" {
    33 #endif
    33 #endif
    34 
    34 
    35 #define	SCTP_FADDR_RC_TIMER_RESTART(sctp, fp, intvl)			\
    35 #define	SCTP_FADDR_RC_TIMER_RESTART(sctp, fp, intvl)			\
    36 	if ((fp)->rc_timer_mp == NULL) {				\
    36 	if ((fp)->rc_timer_mp == NULL) {				\
    37 		(fp)->rc_timer_mp = sctp_timer_alloc((sctp), sctp_rc_timer); \
    37 		(fp)->rc_timer_mp = sctp_timer_alloc((sctp), 		\
       
    38 		    sctp_rc_timer, KM_NOSLEEP);				\
    38 	}								\
    39 	}								\
    39 	if ((fp)->rc_timer_mp != NULL) {				\
    40 	if ((fp)->rc_timer_mp != NULL) {				\
    40 		((sctpt_t *)((fp)->rc_timer_mp->b_rptr))->sctpt_faddr = fp;  \
    41 		((sctpt_t *)((fp)->rc_timer_mp->b_rptr))->sctpt_faddr = fp;  \
    41 		dprint(3, ("faddr_rc_timer_restart: fp=%p %x:%x:%x:%x %d\n", \
    42 		dprint(3, ("faddr_rc_timer_restart: fp=%p %x:%x:%x:%x %d\n", \
    42 		    (void *)(fp), SCTP_PRINTADDR((fp)->faddr),		\
    43 		    (void *)(fp), SCTP_PRINTADDR((fp)->faddr),		\