MCPcopy Create free account
hub / github.com/F-Stack/f-stack / usage

Function usage

dpdk/app/dumpcap/main.c:109–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107} dumpcap_out_t;
108
109static void usage(void)
110{
111 printf("Usage: %s [options] ...\n\n", progname);
112 printf("Capture Interface:\n"
113 " -i <interface>, --interface <interface>\n"
114 " name or port index of interface\n"
115 " -f <capture filter> packet filter in libpcap filter syntax\n");
116 printf(" --ifname <name> name to use in the capture file\n");
117 printf(" --ifdescr <description>\n");
118 printf(" description to use in the capture file\n");
119 printf(" -s <snaplen>, --snapshot-length <snaplen>\n"
120 " packet snapshot length (def: %u)\n",
121 RTE_MBUF_DEFAULT_BUF_SIZE);
122 printf(" -p, --no-promiscuous-mode\n"
123 " don't capture in promiscuous mode\n"
124 " -D, --list-interfaces print list of interfaces and exit\n"
125 " -d print generated BPF code for capture filter\n"
126 " -S print statistics for each interface once per second\n"
127 "\n"
128 "Stop conditions:\n"
129 " -c <packet count> stop after n packets (def: infinite)\n"
130 " -a <autostop cond.> ..., --autostop <autostop cond.> ...\n"
131 " duration:NUM - stop after NUM seconds\n"
132 " filesize:NUM - stop this file after NUM kB\n"
133 " packets:NUM - stop after NUM packets\n"
134 "Output (files):\n"
135 " -w <filename> name of file to save (def: tempfile)\n"
136 " -g enable group read access on the output file(s)\n"
137 " -n use pcapng format instead of pcap (default)\n"
138 " -P use libpcap format instead of pcapng\n"
139 " --capture-comment <comment>\n"
140 " add a capture comment to the output file\n"
141 " --temp-dir <directory> write temporary files to this directory\n"
142 " (default: /tmp)\n"
143 "\n"
144 "Miscellaneous:\n"
145 " --file-prefix=<prefix> prefix to use for multi-process\n"
146 " -q don't report packet capture counts\n"
147 " -v, --version print version information and exit\n"
148 " -h, --help display this help and exit\n"
149 "\n"
150 "Use Ctrl-C to stop capturing at any time.\n");
151}
152
153static const char *version(void)
154{

Callers 1

parse_optsFunction · 0.70

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected