dlt_opts.def 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. flag = {
  2. name = skipl2broadcast;
  3. descrip = "Skip rewriting broadcast/multicast Layer 2 addresses";
  4. doc = <<- EOText
  5. By default, editing Layer 2 addresses will rewrite
  6. broadcast and multicast MAC addresses. Setting this flag
  7. will keep broadcast/multicast MAC addresses from being rewritten.
  8. EOText;
  9. };
  10. /*
  11. * Allow user to specify output DLT. The values for this should
  12. * match the argument name prefix of your plugin. For example:
  13. * DLT_EN10MB is ethernet, so I called the prefix "enet":
  14. * (--enet-src, --enet-dst, --enet-proto)
  15. * so the string I should look for here is "enet" too. It's important
  16. * that the prefix you use here is also used as the "name" in the
  17. * tcpeditdlt_plugin_t structure.
  18. */
  19. flag = {
  20. name = dlt;
  21. descrip = "Override output DLT encapsulation";
  22. arg-type = string;
  23. max = 1;
  24. doc = <<- EO_DLT_DOC
  25. By default, no DLT (data link type) conversion will be made.
  26. To change the DLT type of the output pcap, select one of the following values:
  27. @table @bullet
  28. @item
  29. @var{enet}
  30. Ethernet aka DLT_EN10MB
  31. @item
  32. @var{hdlc}
  33. Cisco HDLC aka DLT_C_HDLC
  34. @item
  35. @var{jnpr_ether}
  36. Juniper Ethernet DLT_C_JNPR_ETHER
  37. @item
  38. @var{pppserial}
  39. PPP Serial aka DLT_PPP_SERIAL
  40. @item
  41. @var{user}
  42. User specified Layer 2 header and DLT type
  43. @end table
  44. EO_DLT_DOC;
  45. };