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

Diff of /radius/snmplib/snmp_mib.c

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

revision 1.5 by gray, Tue May 14 11:08:22 2002 UTC revision 1.6 by gray, Wed Apr 30 08:38:30 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 32  Line 32 
32   ((node)->subid op s))     ((node)->subid op s))  
33    
34  int  int
35  mib_lookup(node, oid, len, return_node)  mib_lookup(struct mib_node_t *node, oid_t oid,
36          struct mib_node_t *node;             int len, struct mib_node_t **return_node)
         oid_t oid;  
         int len;  
         struct mib_node_t **return_node;  
37  {  {
38          subid_t *p = OIDPTR(oid);          subid_t *p = OIDPTR(oid);
39          int ind;          int ind;
# Line 61  mib_lookup(node, oid, len, return_node) Line 58  mib_lookup(node, oid, len, return_node)
58  }  }
59    
60  int  int
61  mib_insert_node(root_node, oid, len, return_node)  mib_insert_node(struct mib_node_t **root_node, oid_t oid,
62          struct mib_node_t **root_node;                  int len, struct mib_node_t **return_node)
         oid_t oid;  
         int len;  
         struct mib_node_t **return_node;  
63  {  {
64          int rc;          int rc;
65          struct mib_node_t *newp;          struct mib_node_t *newp;
# Line 106  mib_insert_node(root_node, oid, len, ret Line 100  mib_insert_node(root_node, oid, len, ret
100  }  }
101    
102  int  int
103  mib_insert(node, oid, return_node)  mib_insert(struct mib_node_t **node, oid_t oid,
104          struct mib_node_t **node;             struct mib_node_t **return_node)
         oid_t oid;  
         struct mib_node_t **return_node;  
105  {  {
106          int len = OIDLEN(oid);          int len = OIDLEN(oid);
107          int i;          int i;

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

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