Juergen> I don't see why this patch is needed.
Icarus> Yes, I did see such an example on the network, which is why I
Icarus> tracked it down.
Icarus> The symptom is that the FIRST request succeeds, but all
Icarus> further ones fail,
That's it! The problem is that pdu->type is set to GET_NEXT_REQUEST in
SNMP_Encode() and it is not set back to a GET_BULK_REQUEST inside of
the loop. I fixed this problem some time ago in my 1.99.x sources but
did not remember when I read your mail. I prefer the patch below,
which sets pdu->type inside of the loop. Many thanks for your bug
report (and sorry for my wrong first reply).
Juergen
*** snmp/tcl.c.orig Wed Apr 26 13:00:20 1995
--- snmp/tcl.c Fri May 26 19:34
:21 1995
***************
*** 1156,1161 ****
--- 1156,1162 ----
while (1) {
+ pdu->type = GET_BULK_REQUEST;
pdu->error_status = 0; /* non-repeaters */
pdu->error_index = 16 / oidc; /* man-repetitions -- why this ?? */
pdu->request_id = ++sess->reqid;