~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to agent/mibgroup/struct.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef UCD_SNMP_STRUCT
 
2
#define UCD_SNMP_STRUCT
 
3
 
 
4
#define STRMAX 1024
 
5
#define SHPROC 1
 
6
#define EXECPROC 2
 
7
#define PASSTHRU 3
 
8
#define PASSTHRU_PERSIST 4
 
9
#define MIBMAX 30
 
10
 
 
11
struct extensible {
 
12
    char            name[STRMAX];
 
13
    char            command[STRMAX];
 
14
    char            fixcmd[STRMAX];
 
15
    int             type;
 
16
    int             result;
 
17
    char            output[STRMAX];
 
18
    struct extensible *next;
 
19
    unsigned long   miboid[MIBMAX];
 
20
    size_t          miblen;
 
21
    int             pid;
 
22
};
 
23
 
 
24
struct myproc {
 
25
    char            name[STRMAX];
 
26
    char            fixcmd[STRMAX];
 
27
    int             min;
 
28
    int             max;
 
29
    struct myproc  *next;
 
30
};
 
31
 
 
32
/*
 
33
 * struct mibinfo 
 
34
 * {
 
35
 * int numid;
 
36
 * unsigned long mibid[10];
 
37
 * char *name;
 
38
 * void (*handle) ();
 
39
 * };
 
40
 */
 
41
 
 
42
#endif