user_opts.def 844 B

1234567891011121314151617181920212223242526272829303132
  1. /* Add the flag definitions for your plugin here */
  2. flag = {
  3. name = user-dlt;
  4. arg-type = "number";
  5. max = 1;
  6. descrip = "Set output file DLT type";
  7. range = "0->65535";
  8. doc = <<- EOText
  9. Set the DLT value of the output pcap file.
  10. EOText;
  11. };
  12. flag = {
  13. name = user-dlink;
  14. arg-type = string;
  15. max = 2;
  16. stack-arg;
  17. descrip = "Rewrite Data-Link layer with user specified data";
  18. doc = <<- EOText
  19. Provide a series of comma deliminated hex values which will be
  20. used to rewrite or create the Layer 2 header of the packets.
  21. The first instance of this argument will rewrite both server
  22. and client traffic, but if this argument is specified a second
  23. time, it will be used for the client traffic.
  24. Example:
  25. @example
  26. --user-dlink=01,02,03,04,05,06,00,1A,2B,3C,4D,5E,6F,08,00
  27. @end example
  28. EOText;
  29. };