Deleted Added
full compact
sctp_pcb.h (165647) sctp_pcb.h (166023)
1/*-
2 * Copyright (c) 2001-2006, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/* $KAME: sctp_pcb.h,v 1.21 2005/07/16 01:18:47 suz Exp $ */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2006, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/* $KAME: sctp_pcb.h,v 1.21 2005/07/16 01:18:47 suz Exp $ */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 165647 2006-12-29 20:21:42Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 166023 2007-01-15 15:12:10Z rrs $");
35
36#ifndef __sctp_pcb_h__
37#define __sctp_pcb_h__
38
39
40
41/*
42 * We must have V6 so the size of the proto can be calculated. Otherwise we

--- 177 unchanged lines hidden (view full) ---

220 uint32_t ipi_count_strmoq;
221
222 /* system wide number of free chunks hanging around */
223 uint32_t ipi_free_chunks;
224 uint32_t ipi_free_strmoq;
225
226 struct sctpvtaghead vtag_timewait[SCTP_STACK_VTAG_HASH_SIZE];
227
35
36#ifndef __sctp_pcb_h__
37#define __sctp_pcb_h__
38
39
40
41/*
42 * We must have V6 so the size of the proto can be calculated. Otherwise we

--- 177 unchanged lines hidden (view full) ---

220 uint32_t ipi_count_strmoq;
221
222 /* system wide number of free chunks hanging around */
223 uint32_t ipi_free_chunks;
224 uint32_t ipi_free_strmoq;
225
226 struct sctpvtaghead vtag_timewait[SCTP_STACK_VTAG_HASH_SIZE];
227
228
229 struct sctp_timer addr_wq_timer;
230
228 struct sctp_timer addr_wq_timer;
229
231 /* for port allocations */
232 uint16_t lastport;
233 uint16_t lastlow;
234 uint16_t lasthi;
235
236};
237
238extern struct sctpstat sctpstat;
239
240/*
241 * Here we have all the relevant information for each SCTP entity created. We
242 * will need to modify this as approprate. We also need to figure out how to
243 * access /dev/random.

--- 214 unchanged lines hidden (view full) ---

458void sctp_inpcb_free(struct sctp_inpcb *, int, int);
459
460struct sctp_tcb *
461sctp_aloc_assoc(struct sctp_inpcb *, struct sockaddr *,
462 int, int *, uint32_t);
463
464int sctp_free_assoc(struct sctp_inpcb *, struct sctp_tcb *, int, int);
465
230};
231
232extern struct sctpstat sctpstat;
233
234/*
235 * Here we have all the relevant information for each SCTP entity created. We
236 * will need to modify this as approprate. We also need to figure out how to
237 * access /dev/random.

--- 214 unchanged lines hidden (view full) ---

452void sctp_inpcb_free(struct sctp_inpcb *, int, int);
453
454struct sctp_tcb *
455sctp_aloc_assoc(struct sctp_inpcb *, struct sockaddr *,
456 int, int *, uint32_t);
457
458int sctp_free_assoc(struct sctp_inpcb *, struct sctp_tcb *, int, int);
459
460void
461 sctp_add_vtag_to_timewait(struct sctp_inpcb *, uint32_t, uint32_t);
462
466int sctp_add_local_addr_ep(struct sctp_inpcb *, struct ifaddr *);
467
468int sctp_insert_laddr(struct sctpladdr *, struct ifaddr *);
469
470void sctp_remove_laddr(struct sctp_laddr *);
471
472int sctp_del_local_addr_ep(struct sctp_inpcb *, struct ifaddr *);
473

--- 41 unchanged lines hidden ---
463int sctp_add_local_addr_ep(struct sctp_inpcb *, struct ifaddr *);
464
465int sctp_insert_laddr(struct sctpladdr *, struct ifaddr *);
466
467void sctp_remove_laddr(struct sctp_laddr *);
468
469int sctp_del_local_addr_ep(struct sctp_inpcb *, struct ifaddr *);
470

--- 41 unchanged lines hidden ---