/* * Mausezahn - A fast versatile traffic generator * Copyright (C) 2008 Herbert Haas * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html * */ #include "mz.h" #include "cli.h" int cmd_set(struct cli_def *cli, const char *command, char *argv[], int argc) { libnet_t *l; unsigned int time_factor; int i, cnt, found_dev; char *dum; unsigned char *x; if (argc < 2) { cli_print(cli, "Specify a variable to set:\r\n"); cli_print(cli, "device specify the primary network device\r"); cli_print(cli, "NOTE: The following options are non-MOPS and deprecated:\n"); cli_print(cli, "a|sa specify a MAC source address\r"); cli_print(cli, "b|da specify a MAC destination address\r"); cli_print(cli, "A|SA specify a IP source address\r"); cli_print(cli, "B|DA specify a IP destination address\r"); cli_print(cli, "c|count specify a packet count value\r"); cli_print(cli, "d|delay specify an interpacket delay (usec, msec, or sec)\r"); cli_print(cli, "P|payload specify an ASCII payload\r"); cli_print(cli, "H|hexload specify a hexadecimal payload\r"); cli_print(cli, "p|padding specify a number of padding bytes (total for raw, added otherwise)\r"); cli_print(cli, "Q|vlan specify one ore more 802.1Q vlan tags\r"); cli_print(cli, "M|mpls specify one ore more MPLS labels\r"); cli_print(cli, "\n"); return CLI_OK; } // set primary device if (strncmp(argv[0], "device", 2)==0) { if (strncmp(argv[1],"?",1)==0) { cli_print(cli,"Specify the primary network device (use 'show dev' for a list)\n"); } else { if (strlen(argv[1])) { found_dev = 0; for (i=0; i MAX_PAYLOAD_SIZE) { cli_print(cli, "Note: Padding too big! However, let's try and see what happens...\n"); } } } // DEFAULT ANSWER: else { cli_print(cli, "Unknown variable '%s'\n",argv[0]); } return CLI_OK; } c clkdev.h header - Remove CLK_IS_ROOT usage. - Misc small cleanups. - CM: Fix compilation error when !MIPS_CM - oprofile: Fix a preemption issue - Detect DSP ASE v3 support:1" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (275 commits) MIPS: pic32mzda: fix getting timer clock rate. MIPS: ath79: fix regression in PCI window initialization MIPS: ath79: make ath79_ddr_ctrl_init() compatible for newer SoCs MIPS: Fix VZ probe gas errors with binutils <2.24 MIPS: perf: Fix I6400 event numbers MIPS: DEC: Export `ioasic_ssr_lock' to modules MIPS: MSA: Fix a link error on `_init_msa_upper' with older GCC MIPS: CM: Fix compilation error when !MIPS_CM MIPS: Fix genvdso error on rebuild USB: ohci-jz4740: Remove obsolete driver MIPS: JZ4740: Probe OHCI platform device via DT MIPS: JZ4740: Qi LB60: Remove support for AVT2 variant MIPS: pistachio: Determine SoC revision during boot MIPS: BMIPS: Adjust mips-hpt-frequency for BCM7435 mips: mt7620: fallback to SDRAM when syscfg0 does not have a valid value for the memory type MIPS: Prevent "restoration" of MSA context in non-MSA kernels MIPS: cevt-r4k: Dynamically calculate min_delta_ns MIPS: malta-time: Take seconds into account MIPS: malta-time: Start GIC count before syncing to RTC MIPS: Force CPUs to lose FP context during mode switches ...
Diffstat