* snmp.c from Access Point SNMP Utils for Linux
* basic snmp packets assembly/disassembly and send/receive functions
*
- * Copyright (c) 2002 Roman Festchook <roma at polesye dot net>
+ * Copyright (c) Roman Festchook <roma at polesye dot net>
+ * Jan Rafaj <jr-aputils at cedric dot unob dot cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 from
siglongjmp(position, 1);
}
+/*
+unsigned int ber_decode_uint(unsigned char *bevp, int len)
+{
+ unsigned int out = 0;
+
+ while (len--) {
+ out = (out << 7) | (*bevp & (*bevp & 0x80 ? 0x7f : 0xff));
+ bevp++;
+ }
+
+ return out;
+}
+*/
+
int ber(char *message, varbind * varbindlist, int num, int type)
{