Lines Matching refs:varbindlist
49 int ber(char *message, varbind * varbindlist, int num, int type) in ber() argument
62 (varbindlist + i)->len_oid + (varbindlist + i)->len_val + 4; in ber()
69 *(pdu1 + len++) = (varbindlist + i)->len_oid; in ber()
70 memcpy(pdu1 + len, (varbindlist + i)->oid, in ber()
71 (varbindlist + i)->len_oid); in ber()
72 len += (varbindlist + i)->len_oid; in ber()
73 *(pdu1 + len++) = (varbindlist + i)->type; in ber()
74 *(pdu1 + len++) = (varbindlist + i)->len_val; in ber()
75 memcpy(pdu1 + len, (varbindlist + i)->value, in ber()
76 (varbindlist + i)->len_val); in ber()
77 len += (varbindlist + i)->len_val; in ber()
131 int snmp(varbind * varbindlist, int num, int type) in snmp() argument
154 len = ber(message, varbindlist, num, type); in snmp()
232 varbindlist[num_reply].len_oid = start[1]; in snmp()
240 varbindlist[num_reply].oid = start + 2; in snmp()
243 varbindlist[num_reply].type = *(start); in snmp()
246 varbindlist[num_reply].len_val = start[2]; in snmp()
250 varbindlist[num_reply].len_val = start[1]; in snmp()
262 varbindlist[num_reply].value = start; in snmp()
263 len -= varbindlist[num_reply].len_val; in snmp()
264 start += varbindlist[num_reply].len_val; in snmp()