exacct_impl.h (7c478bd9) | exacct_impl.h (da14cebe) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27#ifndef _SYS_EXACCT_IMPL_H 28#define _SYS_EXACCT_IMPL_H 29 | 23 * Use is subject to license terms. 24 */ 25 26#ifndef _SYS_EXACCT_IMPL_H 27#define _SYS_EXACCT_IMPL_H 28 |
30#pragma ident "%Z%%M% %I% %E% SMI" 31 | |
32#ifdef __cplusplus 33extern "C" { 34#endif 35 36#include <sys/types.h> 37#include <sys/utsname.h> 38#include <sys/zone.h> 39 --- 84 unchanged lines hidden (view full) --- 124 uint64_t fu_ctime; /* creation time for this item */ 125 uint64_t fu_lseen; /* when the last item of this desc. was seen */ 126 projid_t fu_projid; /* project ID */ 127 uid_t fu_userid; /* user ID */ 128 boolean_t fu_isv4; /* to extract the correct l/r-addr */ 129 char *fu_aname; /* action instance name */ 130} flow_usage_t; 131 | 29#ifdef __cplusplus 30extern "C" { 31#endif 32 33#include <sys/types.h> 34#include <sys/utsname.h> 35#include <sys/zone.h> 36 --- 84 unchanged lines hidden (view full) --- 121 uint64_t fu_ctime; /* creation time for this item */ 122 uint64_t fu_lseen; /* when the last item of this desc. was seen */ 123 projid_t fu_projid; /* project ID */ 124 uid_t fu_userid; /* user ID */ 125 boolean_t fu_isv4; /* to extract the correct l/r-addr */ 126 char *fu_aname; /* action instance name */ 127} flow_usage_t; 128 |
129#define EX_NET_LNDESC_REC 1 130#define EX_NET_FLDESC_REC 2 131#define EX_NET_LNSTAT_REC 3 132#define EX_NET_FLSTAT_REC 4 133 134typedef struct net_stat_s { 135 char *ns_name; 136 uint64_t ns_ibytes; 137 uint64_t ns_obytes; 138 uint64_t ns_ipackets; 139 uint64_t ns_opackets; 140 uint64_t ns_ierrors; 141 uint64_t ns_oerrors; 142 boolean_t ns_isref; 143} net_stat_t; 144 145typedef struct net_desc_s { 146 char *nd_name; 147 char *nd_devname; 148 uchar_t nd_ehost[6]; 149 uchar_t nd_edest[6]; 150 ushort_t nd_vlan_tpid; 151 ushort_t nd_vlan_tci; 152 ushort_t nd_sap; 153 ushort_t nd_priority; 154 uint64_t nd_bw_limit; 155 uint32_t nd_saddr[4]; 156 uint32_t nd_daddr[4]; 157 boolean_t nd_isv4; 158 uint16_t nd_sport; 159 uint16_t nd_dport; 160 uint8_t nd_protocol; 161 uint8_t nd_dsfield; 162 int nd_type; 163} net_desc_t; 164 |
|
132extern void exacct_order16(uint16_t *); 133extern void exacct_order32(uint32_t *); 134extern void exacct_order64(uint64_t *); 135 136#ifdef __cplusplus 137} 138#endif 139 140#endif /* _SYS_EXACCT_IMPL_H */ | 165extern void exacct_order16(uint16_t *); 166extern void exacct_order32(uint32_t *); 167extern void exacct_order64(uint64_t *); 168 169#ifdef __cplusplus 170} 171#endif 172 173#endif /* _SYS_EXACCT_IMPL_H */ |