2 * Mausezahn - A fast versatile traffic generator
3 * Copyright (C) 2008-2010 Herbert Haas
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License version 2 as published by the
7 * Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html
25 int cmd_dns_query(struct cli_def
*cli
, char *command
, char *argv
[], int argc
)
32 int cmd_dns_answer(struct cli_def
*cli
, char *command
, char *argv
[], int argc
)
39 int cmd_dns_ttl(struct cli_def
*cli
, char *command
, char *argv
[], int argc
)
46 int cmd_dns_end(struct cli_def
*cli
, char *command
, char *argv
[], int argc
)
49 sprintf(prompt
, "pkt-%i",clipkt
->id
);
50 cli_set_configmode(cli
, MZ_MODE_PACKET
, prompt
);