"Fossies" - the Fresh Open Source Software Archive 
Member "atop-2.8.1/ifprop.h" (7 Jan 2023, 1619 Bytes) of package /linux/misc/atop-2.8.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "ifprop.h" see the
Fossies "Dox" file reference documentation and the last
Fossies "Diffs" side-by-side code changes report:
2.6.0_vs_2.7.0.
1 /*
2 ** ATOP - System & Process Monitor
3 **
4 ** The program 'atop' offers the possibility to view the activity of
5 ** the system on system-level as well as process-level.
6 ** ==========================================================================
7 ** Author: Gerlof Langeveld
8 ** E-mail: gerlof.langeveld@atoptool.nl
9 ** Date: September 2002
10 ** --------------------------------------------------------------------------
11 ** Copyright (C) 2000-2010 Gerlof Langeveld
12 **
13 ** This program is free software; you can redistribute it and/or modify it
14 ** under the terms of the GNU General Public License as published by the
15 ** Free Software Foundation; either version 2, or (at your option) any
16 ** later version.
17 **
18 ** This program is distributed in the hope that it will be useful, but
19 ** WITHOUT ANY WARRANTY; without even the implied warranty of
20 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 ** See the GNU General Public License for more details.
22 **
23 ** You should have received a copy of the GNU General Public License
24 ** along with this program; if not, write to the Free Software
25 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 ** --------------------------------------------------------------------------
27 */
28
29 struct ifprop {
30 char type; /* type: 'e' - ethernet */
31 /* 'w' - wireless */
32 /* 'v' - virtual */
33 char name[31]; /* name of interface */
34 long int speed; /* in megabits per second */
35 char fullduplex; /* boolean */
36
37 struct ifprop *next; /* next in hash list */
38 };
39
40 int getifprop(struct ifprop *);
41 void initifprop(void);