Lines Matching refs:listentry
1268 struct sent_pdu *listentry = listentry_ptr;
1272 listentry->reqid, listentry->retrycount, snmp_client.retries);
1275 listentry->retrycount++;
1276 if (listentry->retrycount > snmp_client.retries) {
1278 LIST_REMOVE(listentry, entries);
1279 listentry->callback(listentry->pdu, NULL, listentry->arg);
1280 free(listentry);
1284 listentry->reqid = snmp_send_packet(listentry->pdu);
1285 listentry->timeout_id =
1287 snmp_timeout, listentry);
1294 struct sent_pdu *listentry;
1297 if ((listentry = malloc(sizeof(struct sent_pdu))) == NULL) {
1304 free(listentry);
1309 listentry->pdu = pdu;
1310 if (gettimeofday(&listentry->time, NULL) == -1)
1313 listentry->reqid = pdu->request_id;
1314 listentry->callback = func;
1315 listentry->arg = arg;
1316 listentry->retrycount=1;
1317 listentry->timeout_id =
1319 listentry);
1321 LIST_INSERT_HEAD(&sent_pdus, listentry, entries);
1469 struct sent_pdu *listentry;
1476 LIST_FOREACH(listentry, &sent_pdus, entries)
1477 if (listentry->reqid == resp->request_id)
1479 if (listentry == NULL)
1482 LIST_REMOVE(listentry, entries);
1483 listentry->callback(listentry->pdu, resp, listentry->arg);
1485 snmp_client.timeout_stop(listentry->timeout_id);
1487 free(listentry);