trafgen: Don't expose -k/--kernel-pull anymore and warn if it still used
[netsniff-ng.git] / staging / cli_tools.c
blob20ce50ed39027b6eea0c94dcd2ce7df326ec3bd2
1 /*
2 * Mausezahn - A fast versatile traffic generator
3 * Copyright (C) 2008-2010 Herbert Haas
4 *
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.
8 *
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
12 * details.
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
23 #include "mz.h"
26 // Returns a nice string with default and current value of a given variable
28 // EXAMPLE:
29 //
30 // char mystring[256];
31 // mz_def16 ("20 seconds", pd->max_age, mystring)
32 //
33 int mz_def16 (char *def, u_int16_t val, char *str256)
35 str256[0]=0x00;
36 sprintf(str256, "The default value is %s. The current value is %u (0x%04x).", def, val, val);
37 return 0;