tcpcapinfo_opts.def 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* $Id:$ */
  2. /*
  3. * Copyright (c) 2001-2010 Aaron Turner <aturner at synfin dot net>
  4. * Copyright (c) 2013-2022 Fred Klassen <tcpreplay at appneta dot com> - AppNeta
  5. *
  6. * The Tcpreplay Suite of tools is free software: you can redistribute it
  7. * and/or modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation, either version 3 of the
  9. * License, or with the authors permission any later version.
  10. *
  11. * The Tcpreplay Suite is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with the Tcpreplay Suite. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. autogen definitions options;
  20. copyright = {
  21. date = "2000-2012";
  22. owner = "Aaron Turner and Fred Klassen";
  23. eaddr = "tcpreplay-users@lists.sourceforge.net";
  24. type = gpl;
  25. author = <<- EOText
  26. Copyright 2000-2012 Aaron Turner
  27. Copyright 2013 Fred Klassen - AppNeta
  28. For support please use the tcpreplay-users@lists.sourceforge.net mailing list.
  29. The latest version of this software is always available from:
  30. http://tcpreplay.appneta.com/
  31. EOText;
  32. };
  33. package = "Tcpreplay Suite";
  34. prog-name = "tcpcapinfo";
  35. prog-title = "Pcap file dissector for debugging broken pcap files";
  36. long-opts;
  37. gnu-usage;
  38. help-value = "H";
  39. no-save-opts;
  40. no-load-opts;
  41. config-header = "config.h";
  42. argument = "<pcap_file(s)>";
  43. include = "#include \"defines.h\"\n"
  44. "#include \"common.h\"\n"
  45. "#include \"config.h\"\n";
  46. explain = <<- EOText
  47. tcpcapinfo is a tool for decoding the structure of a pcap(3) file with
  48. a focus on finding broken pcap files and determining how two related
  49. pcap files might differ.
  50. EOText;
  51. detail = <<- EOText
  52. tcpcapinfo will first print out the pcap_file_header_t in human
  53. readable form followed by a per-packet summary including the pcap_pkthdr_t
  54. and simple checksum value of the packet.
  55. EOText;
  56. man-doc = <<-EOText
  57. .SH "SEE ALSO"
  58. tcpdump(1), tcpprep(1), tcprewrite(1), tcpreplay(1), tcpbridge(1), pcap(3)
  59. EOText;
  60. /*
  61. * Debugging
  62. */
  63. flag = {
  64. ifdef = DEBUG;
  65. name = dbug;
  66. value = d;
  67. arg-type = number;
  68. max = 1;
  69. immediate;
  70. arg-range = "0->5";
  71. arg-default = 0;
  72. descrip = "Enable debugging output";
  73. doc = <<- EOText
  74. If configured with --enable-debug, then you can specify a verbosity
  75. level for debugging output. Higher numbers increase verbosity.
  76. EOText;
  77. };
  78. flag = {
  79. name = version;
  80. value = V;
  81. descrip = "Print version information";
  82. flag-code = <<- EOVersion
  83. fprintf(stderr, "tcpcapinfo version: %s (build %s)", VERSION, git_version());
  84. #ifdef DEBUG
  85. fprintf(stderr, " (debug)");
  86. #endif
  87. fprintf(stderr, "\n");
  88. fprintf(stderr, "Copyright 2013-2022 by Fred Klassen <tcpreplay at appneta dot com> - AppNeta\n");
  89. fprintf(stderr, "Copyright 2000-2010 by Aaron Turner <aturner at synfin dot net>\n");
  90. fprintf(stderr, "The entire Tcpreplay Suite is licensed under the GPLv3\n");
  91. exit(0);
  92. EOVersion;
  93. doc = "";
  94. };