Lines Matching refs:op
114 cmd->op = NVT_CMD_WILL_NOT; in telnet_reply_dont_command()
116 cmd->op = NVT_CMD_WILL; in telnet_reply_dont_command()
121 cmd->op = NVT_CMD_WILL_NOT; in telnet_reply_dont_command()
133 cmd->op = NVT_CMD_WILL; in telnet_reply_do_command()
140 cmd->op = NVT_CMD_WILL; in telnet_reply_do_command()
142 cmd->op = NVT_CMD_WILL_NOT; in telnet_reply_do_command()
147 cmd->op = NVT_CMD_WILL_NOT; in telnet_reply_do_command()
161 switch (cmd->op) { in telnet_reply_command()
179 LOG_DBG("Operation %u not handled", cmd->op); in telnet_reply_command()
239 static int telnet_command_length(uint8_t op) in telnet_command_length() argument
241 if (op == NVT_CMD_SB || op == NVT_CMD_WILL || op == NVT_CMD_WILL_NOT || in telnet_command_length()
242 op == NVT_CMD_DO || op == NVT_CMD_DO_NOT) { in telnet_command_length()
257 LOG_DBG("Got a command %u/%u/%u", cmd->iac, cmd->op, cmd->opt); in telnet_handle_command()
261 if (cmd->op == NVT_CMD_SB) { in telnet_handle_command()
307 cmd->op = *(buf + off); in telnet_recv()
312 if (telnet_command_length(cmd->op) > in telnet_recv()