sctp_asconf.h revision 1.3
11.1Srjs/* $KAME: sctp_asconf.h,v 1.8 2005/03/06 16:04:16 itojun Exp $ */ 21.3Srjs/* $NetBSD: sctp_asconf.h,v 1.3 2019/06/08 23:23:34 rjs Exp $ */ 31.1Srjs 41.1Srjs#ifndef _NETINET_SCTP_ASCONF_H_ 51.1Srjs#define _NETINET_SCTP_ASCONF_H_ 61.1Srjs 71.1Srjs/* 81.1Srjs * Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc. 91.1Srjs * All rights reserved. 101.1Srjs * 111.1Srjs * Redistribution and use in source and binary forms, with or without 121.1Srjs * modification, are permitted provided that the following conditions 131.1Srjs * are met: 141.1Srjs * 1. Redistributions of source code must retain the above copyright 151.1Srjs * notice, this list of conditions and the following disclaimer. 161.1Srjs * 2. Redistributions in binary form must reproduce the above copyright 171.1Srjs * notice, this list of conditions and the following disclaimer in the 181.1Srjs * documentation and/or other materials provided with the distribution. 191.1Srjs * 3. Neither the name of the project nor the names of its contributors 201.1Srjs * may be used to endorse or promote products derived from this software 211.1Srjs * without specific prior written permission. 221.1Srjs * 231.1Srjs * THIS SOFTWARE IS PROVIDED BY CISCO SYSTEMS AND CONTRIBUTORS ``AS IS'' AND 241.1Srjs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Srjs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Srjs * ARE DISCLAIMED. IN NO EVENT SHALL CISCO SYSTEMS OR CONTRIBUTORS BE LIABLE 271.1Srjs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Srjs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Srjs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Srjs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Srjs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Srjs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Srjs * SUCH DAMAGE. 341.1Srjs */ 351.1Srjs#include <sys/malloc.h> 361.1Srjs 371.1Srjs#if defined(_KERNEL) 381.1Srjs 391.2Skamilstruct sctp_tcb; 401.2Skamilstruct sctp_nets; 411.2Skamilstruct sctp_asconf_chunk; 421.2Skamilstruct sockaddr; 431.2Skamilstruct sctp_inpcb; 441.2Skamilstruct sctp_asconf_ack_chunk; 451.2Skamil 461.3Srjsvoid sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *); 471.1Srjs 481.3Srjsstruct mbuf *sctp_compose_asconf(struct sctp_tcb *); 491.1Srjs 501.3Srjsvoid sctp_handle_asconf(struct mbuf *, unsigned int, struct sctp_asconf_chunk *, 511.1Srjs struct sctp_tcb *, struct sctp_nets *); 521.1Srjs 531.3Srjsvoid sctp_handle_asconf_ack(struct mbuf *, int, 541.1Srjs struct sctp_asconf_ack_chunk *, struct sctp_tcb *, struct sctp_nets *); 551.1Srjs 561.3Srjsuint32_t sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *, 571.1Srjs uint16_t); 581.1Srjs 591.3Srjsvoid sctp_add_ip_address(struct ifaddr *); 601.1Srjs 611.3Srjsvoid sctp_delete_ip_address(struct ifaddr *); 621.1Srjs 631.3Srjsint32_t sctp_set_primary_ip_address_sa(struct sctp_tcb *, 641.1Srjs struct sockaddr *); 651.1Srjs 661.3Srjsvoid sctp_set_primary_ip_address(struct ifaddr *); 671.1Srjs 681.3Srjsvoid sctp_check_address_list(struct sctp_tcb *, struct mbuf *, int, int, 691.1Srjs struct sockaddr *, uint16_t, uint16_t, uint16_t, uint16_t); 701.1Srjs 711.1Srjs#endif /* _KERNEL */ 721.1Srjs 731.1Srjs#endif /* !_NETINET_SCTP_ASCONF_H_ */ 74