ip_ftable.h revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _INET_IP_FTABLE_H
#define _INET_IP_FTABLE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
struct rt_entry {
/*
* struct rt_entry must begin with a struct radix_node (or two!)
* to a 'struct rt_entry *'
*/
struct rt_sockaddr rt_dst;
/*
* in the rt_irb bucket.
*/
};
/*
* vehicle for passing args through rn_walktree
*
* The comment below (and for other netstack_t references) refers
* to the fact that we only do netstack_hold in particular cases,
* such as the references from open streams (ill_t and conn_t's
* pointers). Internally within IP we rely on IP's ability to cleanup e.g.
* ire_t's when an ill goes away.
*/
struct rtfuncarg {
char *rt_arg;
};
int rtfunc(struct radix_node *, void *);
struct ts_label_s;
const struct ts_label_s *, int, ip_stack_t *);
const struct ts_label_s *, ip_stack_t *);
extern void irb_refhold_rn(struct radix_node *);
extern void irb_refrele_rn(struct radix_node *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _INET_IP_FTABLE_H */