~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to lib/include/netutil.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-07-30 12:56:49 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730125649-97sfj5li8axiseoo
Tags: 2009.07.22-179896-2
* Temporarily building without dumbnet, the recently uploaded
  new dumbnet upstream version broke down (Closes: #539006).
* Using more common name to store local debian additions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
void NetUtil_MonitorIPStop(void);
78
78
#endif
79
79
 
 
80
#if defined(linux)
 
81
#   ifdef DUMMY_NETUTIL
 
82
/*
 
83
 * Dummy interface table to enable other tools'/libraries' unit tests.
 
84
 */
 
85
typedef struct {
 
86
   int           ifIndex;
 
87
   const char   *ifName;
 
88
} NetUtilIfTableEntry;
 
89
 
 
90
 
 
91
/*
 
92
 * {-1, NULL}-terminated array of NetUtilIfTableEntry pointers.
 
93
 *
 
94
 * (Test) applications wishing to use the dummy NetUtil_GetIf{Index,Name}
 
95
 * functions must define this variable somewhere.  It allows said apps
 
96
 * to work with a priori knowledge of interface name <=> index mappings
 
97
 * returned by said APIs.
 
98
 */
 
99
EXTERN NetUtilIfTableEntry netUtilIfTable[];
 
100
#   endif // ifdef DUMMY_NETUTIL
 
101
 
 
102
int   NetUtil_GetIfIndex(const char *ifName);
 
103
char *NetUtil_GetIfName(int ifIndex);
 
104
 
 
105
#endif // if defined(linux)
 
106
 
80
107
#endif