ip_multi.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990 Mentat Inc. */
#ifndef _INET_IP_MULTI_H
#define _INET_IP_MULTI_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_KERNEL)
#define INFINITY 0xffffffffU
extern uint_t igmp_deferred_next;
extern uint_t mld_deferred_next;
extern kmutex_t igmp_slowtimeout_lock;
extern kmutex_t mld_slowtimeout_lock;
/*
* Enum used to pass ilg status to ip_addmulti() and friends. There
* are three possibilities: the group is being joined from within ip,
* in which case there is no associated ilg; the group is being joined
* from an upper layer with an associated ilg that's been newly created
* by this join; or the upper layer is changing its group membership
* state (the ilg existed before this call).
*/
typedef enum {
} ilg_stat_t;
/*
* Extern functions
*/
extern void igmp_joingroup(ilm_t *);
extern void igmp_leavegroup(ilm_t *);
extern void igmp_slowtimo(void *);
extern void igmp_timeout_handler(void *);
extern void igmp_timeout_start(int);
extern void mld_joingroup(ilm_t *);
extern void mld_leavegroup(ilm_t *);
extern void mld_slowtimo(void *);
ill_t *);
ill_t *);
const in6_addr_t *, ill_t *);
extern void ill_leave_multicast(ill_t *);
extern void ill_recover_multicast(ill_t *);
const in6_addr_t *);
zoneid_t);
int, zoneid_t);
extern int ilm_walk_ipif(ipif_t *);
extern int ilm_walk_ill(ill_t *);
extern void ilm_walker_cleanup(ill_t *);
mcast_record_t, slist_t *);
extern int ip_join_allmulti(ipif_t *);
extern int ip_leave_allmulti(ipif_t *);
int, zoneid_t);
extern int ip_mroute_mrt(mblk_t *);
extern int ip_mroute_stats(mblk_t *);
extern int ip_mroute_vif(mblk_t *);
extern int ip_mrouter_done(mblk_t *);
mblk_t *);
mblk_t *, ip_ioctl_cmd_t *, void *);
extern void reset_conn_ipif(ipif_t *);
extern void reset_conn_ill(ill_t *);
extern void reset_mrt_ill(ill_t *);
extern void reset_mrt_vif_ipif(ipif_t *);
extern void igmp_start_timers(unsigned);
extern void mld_start_timers(unsigned);
/*
* Extern variables
*/
extern queue_t *ip_g_mrouter;
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _INET_IP_MULTI_H */