1 |
/* |
/* |
2 |
Copyright (C) 2001, Sergey Poznyakoff. |
Copyright (C) 2001,2003, Sergey Poznyakoff. |
3 |
|
|
4 |
This file is part of GNU Radius SNMP Library. |
This file is part of GNU Radius SNMP Library. |
5 |
|
|
28 |
#include <snmp.h> |
#include <snmp.h> |
29 |
|
|
30 |
oid_t |
oid_t |
31 |
oid_dup(oid) |
oid_dup(oid_t oid) |
|
oid_t oid; |
|
32 |
{ |
{ |
33 |
oid_t new_oid; |
oid_t new_oid; |
34 |
|
|
40 |
} |
} |
41 |
|
|
42 |
oid_t |
oid_t |
43 |
oid_create(len) |
oid_create(int len) |
|
int len; |
|
44 |
{ |
{ |
45 |
oid_t oid; |
oid_t oid; |
46 |
|
|
50 |
} |
} |
51 |
|
|
52 |
oid_t |
oid_t |
53 |
oid_create_from_string(str) |
oid_create_from_string(char *str) |
|
char *str; |
|
54 |
{ |
{ |
55 |
char *tok; |
char *tok; |
56 |
int len; |
int len; |
86 |
} |
} |
87 |
|
|
88 |
oid_t |
oid_t |
89 |
oid_create_from_subid(len, subid) |
oid_create_from_subid(int len, subid_t *subid) |
|
int len; |
|
|
subid_t *subid; |
|
90 |
{ |
{ |
91 |
oid_t oid; |
oid_t oid; |
92 |
|
|
101 |
} |
} |
102 |
|
|
103 |
int |
int |
104 |
oid_cmp(a, b) |
oid_cmp(oid_t a, oid_t b) |
|
oid_t a, b; |
|
105 |
{ |
{ |
106 |
int i; |
int i; |
107 |
|
|
114 |
} |
} |
115 |
|
|
116 |
char * |
char * |
117 |
sprint_oid(buf, buflen, oid) |
sprint_oid(char *buf, int buflen, oid_t oid) |
|
char *buf; |
|
|
oid_t oid; |
|
118 |
{ |
{ |
119 |
int i, d; |
int i, d; |
120 |
char *p, *start; |
char *p, *start; |