Lines Matching refs:output
208 std::string *output) { in sendCommand() argument
247 if (!drainAndWaitForAck(*process, command, output)) { in sendCommand()
274 std::string *output) { in drainAndWaitForAck() argument
310 output->append(buffer, size); in drainAndWaitForAck()
311 size_t pos = output->find(PING); in drainAndWaitForAck()
313 if (output->size() > pos + PING_SIZE) { in drainAndWaitForAck()
314 size_t extra = output->size() - (pos + PING_SIZE); in drainAndWaitForAck()
316 extra, output->substr(pos + PING_SIZE, 128).c_str()); in drainAndWaitForAck()
318 output->resize(pos); in drainAndWaitForAck()
349 std::string *output) { in execute() argument
353 if (output == nullptr) { in execute()
354 output = &buffer; in execute()
356 output->clear(); in execute()
361 res |= sendCommand(IPTABLES_PROCESS, command, output); in execute()
364 res |= sendCommand(IP6TABLES_PROCESS, command, output); in execute()