/[radius]/radius/snmplib/snmp_oid.c
ViewVC logotype

Diff of /radius/snmplib/snmp_oid.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by gray, Fri Jun 7 05:30:15 2002 UTC revision 1.7 by gray, Wed Apr 30 08:44:33 2003 UTC
# Line 1  Line 1 
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    
# Line 28  Line 28 
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    
# Line 41  oid_dup(oid) Line 40  oid_dup(oid)
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    
# Line 52  oid_create(len) Line 50  oid_create(len)
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;
# Line 89  oid_create_from_string(str) Line 86  oid_create_from_string(str)
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    
# Line 106  oid_create_from_subid(len, subid) Line 101  oid_create_from_subid(len, subid)
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                    
# Line 120  oid_cmp(a, b) Line 114  oid_cmp(a, b)
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;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26