libdlflow.h revision c3affd820c380dd131cbf6584013c11487d84089
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * CDDL HEADER START
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * The contents of this file are subject to the terms of the
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * Common Development and Distribution License (the "License").
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * You may not use this file except in compliance with the License.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * See the License for the specific language governing permissions
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * and limitations under the License.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * When distributing Covered Code, include this CDDL HEADER in each
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * If applicable, add the following below this CDDL HEADER, with the
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * fields enclosed by brackets "[]" replaced with your own identifying
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * information: Portions Copyright [yyyy] [name of copyright owner]
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * CDDL HEADER END
da0006029e69465355313f503741ac6ebe0d513bGirish Moodalbail * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * Use is subject to license terms.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * This file includes strcutures, macros and routines used by general
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * flow administration
da14cebe459d3275048785f25bd869cb09b5307fEric Chengtypedef struct dladm_flow_attr {
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskeyextern dladm_status_t dladm_flow_add(dladm_handle_t, datalink_id_t,
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskey dladm_arg_list_t *, dladm_arg_list_t *, char *,
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskey boolean_t, const char *);
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskeyextern dladm_status_t dladm_flow_remove(dladm_handle_t, char *, boolean_t,
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng const char *);
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskeyextern dladm_status_t dladm_flow_init(dladm_handle_t);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern dladm_status_t dladm_flow_parse_db(char *, dld_flowinfo_t *);
c3affd820c380dd131cbf6584013c11487d84089Michael Limextern dladm_status_t dladm_walk_flow(int (*)(dladm_handle_t,
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskeyextern dladm_status_t dladm_flow_info(dladm_handle_t, const char *,
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskeyextern dladm_status_t dladm_set_flowprop(dladm_handle_t, const char *,
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskey const char *, char **, uint_t, uint_t, char **);
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskeyextern dladm_status_t dladm_get_flowprop(dladm_handle_t, const char *,
4ac67f0276a8313b5cefec38af347b94b7bfb526Anurag S. Maskey uint32_t, const char *, char **, uint_t *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern dladm_status_t dladm_walk_flowprop(int (*)(void *, const char *),
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng const char *, void *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern void dladm_flow_attr_mask(uint64_t, dladm_flow_attr_t *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern dladm_status_t dladm_flow_attr_check(dladm_arg_list_t *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern dladm_status_t dladm_prefixlen2mask(int, int, uchar_t *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern dladm_status_t dladm_mask2prefixlen(in6_addr_t *, int, int *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern void dladm_flow_attr_ip2str(dladm_flow_attr_t *,
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern void dladm_flow_attr_proto2str(dladm_flow_attr_t *,
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern void dladm_flow_attr_port2str(dladm_flow_attr_t *,
da14cebe459d3275048785f25bd869cb09b5307fEric Chengextern void dladm_flow_attr_dsfield2str(dladm_flow_attr_t *,
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#endif /* _LIBDLFLOW_H */