libdlflow.h revision 2
/*
* 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
*/
/*
*/
#ifndef _LIBDLFLOW_H
#define _LIBDLFLOW_H
/*
* This file includes strcutures, macros and routines used by general
* flow administration
*/
#include <sys/mac_flow.h>
#include <libdladm.h>
#include <libdladm_impl.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct dladm_flow_attr {
char fa_flowname[MAXFLOWNAMELEN];
int fa_nattr;
dladm_arg_list_t *, dladm_arg_list_t *, char *,
boolean_t, const char *);
const char *);
dladm_flow_attr_t *, void *), dladm_handle_t,
datalink_id_t, void *, boolean_t);
dladm_flow_attr_t *, int *);
const char *);
extern dladm_status_t dladm_walk_flowprop(int (*)(void *, const char *),
const char *, void *);
extern char *dladm_proto2str(uint8_t);
extern uint8_t dladm_str2proto(const char *);
extern void dladm_flow_attr_ip2str(dladm_flow_attr_t *,
char *, size_t);
extern void dladm_flow_attr_proto2str(dladm_flow_attr_t *,
char *, size_t);
extern void dladm_flow_attr_port2str(dladm_flow_attr_t *,
char *, size_t);
extern void dladm_flow_attr_dsfield2str(dladm_flow_attr_t *,
char *, size_t);
zoneid_t, dld_flowinfo_t *, int *);
zoneid_t *, int *);
const char *, dladm_datatype_t, const void *);
boolean_t *);
const char *);
const char *);
extern void dladm_destroy_flowconf(dladm_handle_t, const char *);
zoneid_t);
#ifdef __cplusplus
}
#endif
#endif /* _LIBDLFLOW_H */