File: GetIfInfo.h

package info (click to toggle)
pchar 1.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,020 kB
  • sloc: cpp: 12,972; sh: 2,510; makefile: 765
file content (45 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// -*- c++ -*-
// $Id: GetIfInfo.h 1082 2005-02-12 19:40:04Z bmah $
//

#ifndef GETIFINFO_H
#define GETIFINFO_H

#include "Pctest.h"

class GetIfInfo
{
public:
  GetIfInfo(void *, Pctest *);

  ~GetIfInfo();

  bool	IsValid(void);

  const char *	GetDescription(void) const;
  const char *	GetName(void) const;
  const char *	GetContact(void) const;
  const char *	GetLocation(void) const;
  const char *	GetIfDescription(void) const;
  uint32_t	 	GetIfMtu(void) const;
  uint32_t 		GetIfSpeed(void) const;
  uint32_t 		GetIfType(void) const;
  const char *	GetIfTypeString(void) const;

protected:
  char *	Description;
  char *	Name;
  char *	Contact;
  char *	Location;
  char *	IfDescription;
  uint32_t	IfMtu;
  uint32_t	IfSpeed;
  int		IfType;

  bool	valid_info;

private:

};

#endif /* GETIFINFO_H */