VirtualBox

source: vbox/trunk/src/VBox/Main/include/netif.h@ 16560

Last change on this file since 16560 was 15548, checked in by vboxsync, 15 years ago

fixed file headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/** @file
2 * Main - Network Interfaces.
3 */
4
5/*
6 * Copyright (C) 2008 Sun Microsystems, Inc.
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
17 * Clara, CA 95054 USA or visit http://www.sun.com if you need
18 * additional information or have any questions.
19 */
20
21#ifndef ___netif_h
22#define ___netif_h
23
24#include <iprt/cdefs.h>
25#include <iprt/types.h>
26#include <iprt/net.h>
27
28//#include "VBox/com/ptr.h"
29//#include <list>
30
31#if 1
32/**
33 * Encapsulation type.
34 */
35typedef enum NETIFTYPE
36{
37 NETIF_T_UNKNOWN,
38 NETIF_T_ETHERNET,
39 NETIF_T_PPP,
40 NETIF_T_SLIP
41} NETIFTYPE;
42
43/**
44 * Current state of the interface.
45 */
46typedef enum NETIFSTATUS
47{
48 NETIF_S_UNKNOWN,
49 NETIF_S_UP,
50 NETIF_S_DOWN
51} NETIFSTATUS;
52
53/**
54 * Host Network Interface Information.
55 */
56typedef struct NETIFINFO
57{
58 NETIFINFO *pNext;
59 RTNETADDRIPV4 IPAddress;
60 RTNETADDRIPV4 IPNetMask;
61 RTNETADDRIPV6 IPv6Address;
62 RTNETADDRIPV6 IPv6NetMask;
63 RTMAC MACAddress;
64 NETIFTYPE enmType;
65 NETIFSTATUS enmStatus;
66 RTUUID Uuid;
67 char szShortName[50];
68 char szName[1];
69} NETIFINFO;
70
71/** Pointer to a network interface info. */
72typedef NETIFINFO *PNETIFINFO;
73/** Pointer to a const network interface info. */
74typedef NETIFINFO const *PCNETIFINFO;
75#endif
76
77int NetIfList(std::list <ComObjPtr <HostNetworkInterface> > &list);
78
79#endif
80
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use