return (++*out_len);
}
+/// \param out_len number of subid's in "output"
int
-read_objid(input, output, out_len)
-char *input;
-oid *output;
-int *out_len; /* number of subid's in "output" */
+read_objid(char *input, oid *output, int *out_len)
{
struct snmp_mib_tree *root = Mib;
oid *op = output;
return (1);
}
+/// \param objidlen number of subidentifiers
void
-print_objid(objid, objidlen)
-oid *objid;
-int objidlen; /* number of subidentifiers */
+print_objid(oid *objid, int objidlen)
{
char buf[256];
struct snmp_mib_tree *subtree = Mib;
}
+/// \param objidlen number of subidentifiers
void
-sprint_objid(buf, objid, objidlen)
-char *buf;
-oid *objid;
-int objidlen; /* number of subidentifiers */
+sprint_objid(char *buf, oid *objid, int objidlen)
{
struct snmp_mib_tree *subtree = Mib;
}
static struct snmp_mib_tree *
-get_symbol(objid, objidlen, subtree, buf)
-oid *objid;
-int objidlen;
-struct snmp_mib_tree *subtree;
-char *buf;
+get_symbol(oid *objid, int objidlen, struct snmp_mib_tree *subtree, char *buf)
{
struct snmp_mib_tree *return_tree = NULL;
* occurs, -1 is returned. If all goes well, 0 is returned.
*/
int
-snmp_build(session, pdu, packet, out_length)
-struct snmp_session *session;
-struct snmp_pdu *pdu;
-u_char *packet;
-int *out_length;
+snmp_build(struct snmp_session *session, struct snmp_pdu *pdu, u_char *packet, int *out_length)
{
u_char *bufp;