Lines Matching refs:real_data
308 char *real_data; /* Real data buffer for response */ in cupsSideChannelSNMPGet() local
334 if ((real_data = _cupsBufferGet(_CUPS_SC_MAX_BUFFER)) == NULL) in cupsSideChannelSNMPGet()
338 if (cupsSideChannelRead(&rcommand, &status, real_data, &real_datalen, timeout)) in cupsSideChannelSNMPGet()
340 _cupsBufferRelease(real_data); in cupsSideChannelSNMPGet()
346 _cupsBufferRelease(real_data); in cupsSideChannelSNMPGet()
356 real_oidlen = (int)strlen(real_data) + 1; in cupsSideChannelSNMPGet()
361 _cupsBufferRelease(real_data); in cupsSideChannelSNMPGet()
365 memcpy(data, real_data + real_oidlen, (size_t)real_datalen); in cupsSideChannelSNMPGet()
371 _cupsBufferRelease(real_data); in cupsSideChannelSNMPGet()
414 char *real_data; /* Real data buffer for response */ in cupsSideChannelSNMPWalk() local
432 if ((real_data = _cupsBufferGet(_CUPS_SC_MAX_BUFFER)) == NULL) in cupsSideChannelSNMPWalk()
452 _cupsBufferRelease(real_data); in cupsSideChannelSNMPWalk()
457 if (cupsSideChannelRead(&rcommand, &status, real_data, &real_datalen, in cupsSideChannelSNMPWalk()
460 _cupsBufferRelease(real_data); in cupsSideChannelSNMPWalk()
466 _cupsBufferRelease(real_data); in cupsSideChannelSNMPWalk()
476 if (strncmp(real_data, oid, oidlen) || real_data[oidlen] != '.' || in cupsSideChannelSNMPWalk()
477 !strcmp(real_data, last_oid)) in cupsSideChannelSNMPWalk()
483 _cupsBufferRelease(real_data); in cupsSideChannelSNMPWalk()
487 if ((size_t)real_datalen < sizeof(real_data)) in cupsSideChannelSNMPWalk()
488 real_data[real_datalen] = '\0'; in cupsSideChannelSNMPWalk()
490 real_oidlen = strlen(real_data) + 1; in cupsSideChannelSNMPWalk()
497 (*cb)(real_data, real_data + real_oidlen, real_datalen, context); in cupsSideChannelSNMPWalk()
503 current_oid = real_data; in cupsSideChannelSNMPWalk()
509 _cupsBufferRelease(real_data); in cupsSideChannelSNMPWalk()