sctp_pcb.h (235828) | sctp_pcb.h (237715) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 235828 2012-05-23 11:26:28Z tuexen $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 237715 2012-06-28 16:01:08Z tuexen $"); |
35 36#ifndef _NETINET_SCTP_PCB_H_ 37#define _NETINET_SCTP_PCB_H_ 38 39#include <netinet/sctp_os.h> 40#include <netinet/sctp.h> 41#include <netinet/sctp_constants.h> 42#include <netinet/sctp_sysctl.h> --- 480 unchanged lines hidden (view full) --- 523struct sctp_inpcb *sctp_pcb_findep(struct sockaddr *, int, int, uint32_t); 524 525int 526sctp_inpcb_bind(struct socket *, struct sockaddr *, 527 struct sctp_ifa *, struct thread *); 528 529struct sctp_tcb * 530sctp_findassociation_addr(struct mbuf *, int, | 35 36#ifndef _NETINET_SCTP_PCB_H_ 37#define _NETINET_SCTP_PCB_H_ 38 39#include <netinet/sctp_os.h> 40#include <netinet/sctp.h> 41#include <netinet/sctp_constants.h> 42#include <netinet/sctp_sysctl.h> --- 480 unchanged lines hidden (view full) --- 523struct sctp_inpcb *sctp_pcb_findep(struct sockaddr *, int, int, uint32_t); 524 525int 526sctp_inpcb_bind(struct socket *, struct sockaddr *, 527 struct sctp_ifa *, struct thread *); 528 529struct sctp_tcb * 530sctp_findassociation_addr(struct mbuf *, int, |
531 struct sockaddr *, struct sockaddr *, |
|
531 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **, 532 struct sctp_nets **, uint32_t vrf_id); 533 534struct sctp_tcb * 535sctp_findassociation_addr_sa(struct sockaddr *, 536 struct sockaddr *, struct sctp_inpcb **, struct sctp_nets **, int, uint32_t); 537 538void --- 14 unchanged lines hidden (view full) --- 553struct sctp_tcb * 554 sctp_findasoc_ep_asocid_locked(struct sctp_inpcb *inp, sctp_assoc_t asoc_id, int want_lock); 555 556struct sctp_tcb * 557sctp_findassociation_ep_asocid(struct sctp_inpcb *, 558 sctp_assoc_t, int); 559 560struct sctp_tcb * | 532 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **, 533 struct sctp_nets **, uint32_t vrf_id); 534 535struct sctp_tcb * 536sctp_findassociation_addr_sa(struct sockaddr *, 537 struct sockaddr *, struct sctp_inpcb **, struct sctp_nets **, int, uint32_t); 538 539void --- 14 unchanged lines hidden (view full) --- 554struct sctp_tcb * 555 sctp_findasoc_ep_asocid_locked(struct sctp_inpcb *inp, sctp_assoc_t asoc_id, int want_lock); 556 557struct sctp_tcb * 558sctp_findassociation_ep_asocid(struct sctp_inpcb *, 559 sctp_assoc_t, int); 560 561struct sctp_tcb * |
561sctp_findassociation_ep_asconf(struct mbuf *, int, | 562sctp_findassociation_ep_asconf(struct mbuf *, int, struct sockaddr *, |
562 struct sctphdr *, struct sctp_inpcb **, struct sctp_nets **, uint32_t vrf_id); 563 564int sctp_inpcb_alloc(struct socket *so, uint32_t vrf_id); 565 566int sctp_is_address_on_local_host(struct sockaddr *addr, uint32_t vrf_id); 567 568void sctp_inpcb_free(struct sctp_inpcb *, int, int); 569 --- 28 unchanged lines hidden (view full) --- 598void sctp_pcb_init(void); 599 600void sctp_pcb_finish(void); 601 602void sctp_add_local_addr_restricted(struct sctp_tcb *, struct sctp_ifa *); 603void sctp_del_local_addr_restricted(struct sctp_tcb *, struct sctp_ifa *); 604 605int | 563 struct sctphdr *, struct sctp_inpcb **, struct sctp_nets **, uint32_t vrf_id); 564 565int sctp_inpcb_alloc(struct socket *so, uint32_t vrf_id); 566 567int sctp_is_address_on_local_host(struct sockaddr *addr, uint32_t vrf_id); 568 569void sctp_inpcb_free(struct sctp_inpcb *, int, int); 570 --- 28 unchanged lines hidden (view full) --- 599void sctp_pcb_init(void); 600 601void sctp_pcb_finish(void); 602 603void sctp_add_local_addr_restricted(struct sctp_tcb *, struct sctp_ifa *); 604void sctp_del_local_addr_restricted(struct sctp_tcb *, struct sctp_ifa *); 605 606int |
606sctp_load_addresses_from_init(struct sctp_tcb *, struct mbuf *, int, 607 int, struct sctphdr *, struct sockaddr *); | 607sctp_load_addresses_from_init(struct sctp_tcb *, struct mbuf *, int, int, 608 struct sockaddr *, struct sockaddr *, struct sockaddr *); |
608 609int 610sctp_set_primary_addr(struct sctp_tcb *, struct sockaddr *, 611 struct sctp_nets *); 612 613int sctp_is_vtag_good(uint32_t, uint16_t lport, uint16_t rport, struct timeval *); 614 615/* void sctp_drain(void); */ --- 34 unchanged lines hidden --- | 609 610int 611sctp_set_primary_addr(struct sctp_tcb *, struct sockaddr *, 612 struct sctp_nets *); 613 614int sctp_is_vtag_good(uint32_t, uint16_t lport, uint16_t rport, struct timeval *); 615 616/* void sctp_drain(void); */ --- 34 unchanged lines hidden --- |