equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * CDDL HEADER START |
2 * CDDL HEADER START |
3 * |
3 * |
4 * The contents of this file are subject to the terms of the |
4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only |
5 * Common Development and Distribution License (the "License"). |
6 * (the "License"). You may not use this file except in compliance |
6 * You may not use this file except in compliance with the License. |
7 * with the License. |
|
8 * |
7 * |
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
10 * or http://www.opensolaris.org/os/licensing. |
9 * or http://www.opensolaris.org/os/licensing. |
11 * See the License for the specific language governing permissions |
10 * See the License for the specific language governing permissions |
12 * and limitations under the License. |
11 * and limitations under the License. |
18 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
19 * |
18 * |
20 * CDDL HEADER END |
19 * CDDL HEADER END |
21 */ |
20 */ |
22 /* |
21 /* |
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. |
23 * Use is subject to license terms. |
25 */ |
24 */ |
26 |
25 |
27 #ifndef _INET_SCTP_SCTP_ASCONF_H |
26 #ifndef _INET_SCTP_SCTP_ASCONF_H |
28 #define _INET_SCTP_SCTP_ASCONF_H |
27 #define _INET_SCTP_SCTP_ASCONF_H |
38 (fp)->rc_timer_mp = sctp_timer_alloc((sctp), sctp_rc_timer); \ |
37 (fp)->rc_timer_mp = sctp_timer_alloc((sctp), sctp_rc_timer); \ |
39 } \ |
38 } \ |
40 if ((fp)->rc_timer_mp != NULL) { \ |
39 if ((fp)->rc_timer_mp != NULL) { \ |
41 ((sctpt_t *)((fp)->rc_timer_mp->b_rptr))->sctpt_faddr = fp; \ |
40 ((sctpt_t *)((fp)->rc_timer_mp->b_rptr))->sctpt_faddr = fp; \ |
42 dprint(3, ("faddr_rc_timer_restart: fp=%p %x:%x:%x:%x %d\n", \ |
41 dprint(3, ("faddr_rc_timer_restart: fp=%p %x:%x:%x:%x %d\n", \ |
43 (fp), SCTP_PRINTADDR((fp)->faddr), \ |
42 (void *)(fp), SCTP_PRINTADDR((fp)->faddr), \ |
44 (int)(intvl))); \ |
43 (int)(intvl))); \ |
45 sctp_timer((sctp), (fp)->rc_timer_mp, (intvl)); \ |
44 sctp_timer((sctp), (fp)->rc_timer_mp, (intvl)); \ |
46 (fp)->rc_timer_running = 1; \ |
45 (fp)->rc_timer_running = 1; \ |
47 } |
46 } |
48 |
47 |
49 #define SCTP_FADDR_RC_TIMER_STOP(fp) \ |
48 #define SCTP_FADDR_RC_TIMER_STOP(fp) \ |