#compdef mausezahn # # mausezahn.zsh -- zsh completion function for mausezahn # # Copyright (C) 2013 Hideo Hattori # # 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. typeset -A opt_args _packet_type () { _values \ "arp" \ "bpdu" \ "cdp" \ "ip" \ "icmp" \ "udp" \ "tcp" \ "dns" \ "rtp" \ "syslog" \ "lldp" } _interface_keywords () { _values "interface keyword" \ "rand[Use a random MAC address]" \ "bc[Use a broadcast MAC address]" \ "own[Use own interface MAC address (default for source MAC)]" \ "stp[Use IEEE 802.1d STP multicast address]" \ "cisco[Use Cisco multicast address as used for CDP, VTP, or PVST+]" } _interfaces () { _wanted interfaces expl 'network interface' \ _net_interfaces _values "Pseudo-device that captures on all interfaces" "any" } _arguments -s -S \ "-x[Interactive mode with telnet CLI, default port: 25542]" \ "-l[Listen address in interactive mode, default: 0.0.0.0]" \ "(-6)-4[IPv4 mode (default)]" \ "(-4)-6[IPv6 mode]" \ "-c[Send packet count times, default:1, infinite:0]" \ "-d[Apply delay between transmissions. The delay value can be specified in usec (default, no additional unit needed), or in msec (e.g. 100m or 100msec), or in seconds (e.g. 100s or 100sec)]" \ "-r[Multiplies the specified delay with a random value]" \ "-p[Pad the raw frame to specified length (using random bytes)]" \ "-a[Use specified source mac address, no matter what has been specified with other arguments; keywords see below, Default is own interface]:keyword:_interface_keywords" \ "-b[Same with destination mac address; keywords]:keywords:_interface_keywords" \ "-A[Use specified source IP address (default is own interface IP)]" \ "-B[Send packet to specified destination IP or domain name]" \ "-P[Use the specified ASCII payload]" \ "-f[Read the ASCII payload from a file]:filename:_files" \ "-F[Read the hexadecimal payload from a file]:filename:_files" \ "-Q[Specify 802.1Q VLAN tag and optional Class of Service, you can specify multiple 802.1Q VLAN tags (QinQ...) by separating them via a comma or a period (e.g. '5:10,20,2:30')]" \ "-t[Specify packet type for autobuild (you don't need to care for encapsulations in lower layers, most packet types allow/require additional packet-specific arguments in an ; Currently supported types: arp, bpdu, cdp, ip, icmp, udp, tcp, dns, rtp, syslog, lldp and more; For context-help use 'help' as !]:packet_type:_packet_type" \ "-T[Specify packet type for server mode, currently only rtp is supported; Enter -T help or -T rtp help for further information]" \ "-M[Insert a MPLS label, enter '-M help' for a syntax description]" \ "(-V -VV -VVV)"{-V,-VV,-VVV}"[Verbose and more verbose mode]" \ "-q[Quiet mode, even omit 'important' standard short messages]" \ "-S[Simulation mode: DOES NOT put anything on the wire, this is typically combined with one of the verbose modes (v or V)]" \ "-v[Show version and exit]:" \ "-h[Print help and exit]:" \ "*::args:_gnu_generic" alue='8'>8space:mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-08-12 14:31:10 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-12 14:31:10 -0700
commit01ea443982203fcdee1250ab630ab6516f0a16e6 (patch)
tree4bb26d3417faebe6ccdad7021184b0c1d0ccb3fb
parent3bc6d8c155fbbbe789b6caa44b9e658a5b2995d3 (diff)
parentd52c0569bab4edc888832df44dc7ac28517134f6 (diff)
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar: "This is bigger than usual - the reason is partly a pent-up stream of fixes after the merge window and partly accidental. The fixes are: - five patches to fix a boot failure on Andy Lutomirsky's laptop - four SGI UV platform fixes - KASAN fix - warning fix - documentation update - swap entry definition fix - pkeys fix - irq stats fix" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/apic/x2apic, smp/hotplug: Don't use before alloc in x2apic_cluster_probe() x86/efi: Allocate a trampoline if needed in efi_free_boot_services() x86/boot: Rework reserve_real_mode() to allow multiple tries x86/boot: Defer setup_real_mode() to early_initcall time x86/boot: Synchronize trampoline_cr4_features and mmu_cr4_features directly x86/boot: Run reserve_bios_regions() after we initialize the memory map x86/irq: Do not substract irq_tlb_count from irq_call_count x86/mm: Fix swap entry comment and macro x86/mm/kaslr: Fix -Wformat-security warning x86/mm/pkeys: Fix compact mode by removing protection keys' XSAVE buffer manipulation x86/build: Reduce the W=1 warnings noise when compiling x86 syscall tables x86/platform/UV: Fix kernel panic running RHEL kdump kernel on UV systems x86/platform/UV: Fix problem with UV4 BIOS providing incorrect PXM values x86/platform/UV: Fix bug with iounmap() of the UV4 EFI System Table causing a crash x86/platform/UV: Fix problem with UV4 Socket IDs not being contiguous x86/entry: Clarify the RF saving/restoring situation with SYSCALL/SYSRET x86/mm: Disable preemption during CR3 read+write x86/mm/KASLR: Increase BRK pages for KASLR memory randomization x86/mm/KASLR: Fix physical memory calculation on KASLR memory randomization x86, kasan, ftrace: Put APIC interrupt handlers into .irqentry.text