Changeset 40ba6ad
- Timestamp:
- 08/03/05 14:50:06 (16 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 7d69878
- Parents:
- dd22d84
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcap.c
rdd22d84 r40ba6ad 258 258 259 259 static void pcap_help() { 260 printf("pcap format module: $Id$\n"); 261 printf("Supported input URIs:\n"); 262 printf("\tpcap:/path/to/file\n"); 263 printf("\n"); 264 printf("\te.g.: pcap:/tmp/trace.pcap\n"); 265 printf("Supported output URIs:\n"); 266 printf("\tnone\n"); 260 267 } 261 268 static void pcapint_help() { 269 printf("pcapint format module: $Id$\n"); 270 printf("Supported input URIs:\n"); 271 printf("\tpcapint:interface\n"); 272 printf("\n"); 273 printf("\te.g.: pcapint:eth0\n"); 274 printf("Supported output URIs:\n"); 275 printf("\tnone\n"); 262 276 } 263 277 static struct format_t pcap = { -
lib/libtrace.h
r91ebc50 r40ba6ad 187 187 188 188 189 /** Prints help information for libtrace 190 * 191 * Function prints out some basic help information regarding libtrace, 192 * and then prints out the help() function registered with each input module 193 */ 194 void trace_help(); 189 195 190 196 -
lib/trace.c
r91ebc50 r40ba6ad 173 173 format_list[nformats] = f; 174 174 nformats++; 175 } 176 177 /** Prints help information for libtrace 178 * 179 * Function prints out some basic help information regarding libtrace, 180 * and then prints out the help() function registered with each input module 181 */ 182 void trace_help() { 183 int i = 0; 184 printf("libtrace .... \n"); 185 for (i = 0; i < nformats; i++) { 186 if (format_list[i]->help) { 187 format_list[i]->help(); 188 } 189 } 175 190 } 176 191
Note: See TracChangeset
for help on using the changeset viewer.