tcpreplay_edit_opts.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. /* -*- buffer-read-only: t -*- vi: set ro:
  2. *
  3. * DO NOT EDIT THIS FILE (tcpreplay_edit_opts.h)
  4. *
  5. * It has been AutoGen-ed
  6. * From the definitions ../../src/tcpreplay_opts.def
  7. * and the template file options
  8. *
  9. * Generated from AutoOpts 42:1:17 templates.
  10. *
  11. * AutoOpts is a copyrighted work. This header file is not encumbered
  12. * by AutoOpts licensing, but is provided under the licensing terms chosen
  13. * by the tcpreplay author or copyright holder. AutoOpts is
  14. * licensed under the terms of the LGPL. The redistributable library
  15. * (``libopts'') is licensed under the terms of either the LGPL or, at the
  16. * users discretion, the BSD license. See the AutoOpts and/or libopts sources
  17. * for details.
  18. *
  19. * The tcpreplay program is copyrighted and licensed
  20. * under the following terms:
  21. *
  22. * Copyright (C) 2000-2024 Aaron Turner and Fred Klassen, all rights reserved.
  23. * This is free software. It is licensed for use, modification and
  24. * redistribution under the terms of the GNU General Public License,
  25. * version 3 or later <http://gnu.org/licenses/gpl.html>
  26. *
  27. * tcpreplay is free software: you can redistribute it and/or modify it
  28. * under the terms of the GNU General Public License as published by the
  29. * Free Software Foundation, either version 3 of the License, or
  30. * (at your option) any later version.
  31. *
  32. * tcpreplay is distributed in the hope that it will be useful, but
  33. * WITHOUT ANY WARRANTY; without even the implied warranty of
  34. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  35. * See the GNU General Public License for more details.
  36. *
  37. * You should have received a copy of the GNU General Public License along
  38. * with this program. If not, see <http://www.gnu.org/licenses/>.
  39. */
  40. /**
  41. * This file contains the programmatic interface to the Automated
  42. * Options generated for the tcpreplay program.
  43. * These macros are documented in the AutoGen info file in the
  44. * "AutoOpts" chapter. Please refer to that doc for usage help.
  45. */
  46. #ifndef AUTOOPTS_TCPREPLAY_EDIT_OPTS_H_GUARD
  47. #define AUTOOPTS_TCPREPLAY_EDIT_OPTS_H_GUARD 1
  48. #include "config.h"
  49. #include <autoopts/options.h>
  50. #include <stdarg.h>
  51. #include <stdnoreturn.h>
  52. /**
  53. * Ensure that the library used for compiling this generated header is at
  54. * least as new as the version current when the header template was released
  55. * (not counting patch version increments). Also ensure that the oldest
  56. * tolerable version is at least as old as what was current when the header
  57. * template was released.
  58. */
  59. #define AO_TEMPLATE_VERSION 172033
  60. #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  61. || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
  62. # error option template version mismatches autoopts/options.h header
  63. Choke Me.
  64. #endif
  65. #if GCC_VERSION > 40400
  66. #define NOT_REACHED __builtin_unreachable();
  67. #else
  68. #define NOT_REACHED
  69. #endif
  70. /**
  71. * Enumeration of each option type for tcpreplay
  72. */
  73. typedef enum {
  74. INDEX_OPT_PORTMAP = 1,
  75. INDEX_OPT_SEED = 2,
  76. INDEX_OPT_PNAT = 3,
  77. INDEX_OPT_SRCIPMAP = 4,
  78. INDEX_OPT_DSTIPMAP = 5,
  79. INDEX_OPT_ENDPOINTS = 6,
  80. INDEX_OPT_TCP_SEQUENCE = 7,
  81. INDEX_OPT_SKIPBROADCAST = 8,
  82. INDEX_OPT_FIXCSUM = 9,
  83. INDEX_OPT_FIXHDRLEN = 10,
  84. INDEX_OPT_MTU = 11,
  85. INDEX_OPT_MTU_TRUNC = 12,
  86. INDEX_OPT_EFCS = 13,
  87. INDEX_OPT_TTL = 14,
  88. INDEX_OPT_TOS = 15,
  89. INDEX_OPT_TCLASS = 16,
  90. INDEX_OPT_FLOWLABEL = 17,
  91. INDEX_OPT_FIXLEN = 18,
  92. INDEX_OPT_FUZZ_SEED = 19,
  93. INDEX_OPT_FUZZ_FACTOR = 20,
  94. INDEX_OPT_SKIPL2BROADCAST = 21,
  95. INDEX_OPT_DLT = 22,
  96. INDEX_OPT_ENET_DMAC = 23,
  97. INDEX_OPT_ENET_SMAC = 24,
  98. INDEX_OPT_ENET_SUBSMAC = 25,
  99. INDEX_OPT_ENET_MAC_SEED = 26,
  100. INDEX_OPT_ENET_MAC_SEED_KEEP_BYTES = 27,
  101. INDEX_OPT_ENET_VLAN = 28,
  102. INDEX_OPT_ENET_VLAN_TAG = 29,
  103. INDEX_OPT_ENET_VLAN_CFI = 30,
  104. INDEX_OPT_ENET_VLAN_PRI = 31,
  105. INDEX_OPT_ENET_VLAN_PROTO = 32,
  106. INDEX_OPT_HDLC_CONTROL = 33,
  107. INDEX_OPT_HDLC_ADDRESS = 34,
  108. INDEX_OPT_USER_DLT = 35,
  109. INDEX_OPT_USER_DLINK = 36,
  110. INDEX_OPT_DBUG = 37,
  111. INDEX_OPT_QUIET = 38,
  112. INDEX_OPT_TIMER = 39,
  113. INDEX_OPT_MAXSLEEP = 40,
  114. INDEX_OPT_VERBOSE = 41,
  115. INDEX_OPT_DECODE = 42,
  116. INDEX_OPT_PRELOAD_PCAP = 43,
  117. INDEX_OPT_CACHEFILE = 44,
  118. INDEX_OPT_DUALFILE = 45,
  119. INDEX_OPT_INTF1 = 46,
  120. INDEX_OPT_INTF2 = 47,
  121. INDEX_OPT_WRITE = 48,
  122. INDEX_OPT_INCLUDE = 49,
  123. INDEX_OPT_EXCLUDE = 50,
  124. INDEX_OPT_LISTNICS = 51,
  125. INDEX_OPT_LOOP = 52,
  126. INDEX_OPT_LOOPDELAY_MS = 53,
  127. INDEX_OPT_LOOPDELAY_NS = 54,
  128. INDEX_OPT_PKTLEN = 55,
  129. INDEX_OPT_LIMIT = 56,
  130. INDEX_OPT_DURATION = 57,
  131. INDEX_OPT_MULTIPLIER = 58,
  132. INDEX_OPT_PPS = 59,
  133. INDEX_OPT_MBPS = 60,
  134. INDEX_OPT_TOPSPEED = 61,
  135. INDEX_OPT_ONEATATIME = 62,
  136. INDEX_OPT_PPS_MULTI = 63,
  137. INDEX_OPT_UNIQUE_IP = 64,
  138. INDEX_OPT_UNIQUE_IP_LOOPS = 65,
  139. INDEX_OPT_NETMAP = 66,
  140. INDEX_OPT_NM_DELAY = 67,
  141. INDEX_OPT_NO_FLOW_STATS = 68,
  142. INDEX_OPT_FLOW_EXPIRY = 69,
  143. INDEX_OPT_PID = 70,
  144. INDEX_OPT_STATS = 71,
  145. INDEX_OPT_SUPPRESS_WARNINGS = 72,
  146. INDEX_OPT_XDP = 73,
  147. INDEX_OPT_XDP_BATCH_SIZE = 74,
  148. INDEX_OPT_VERSION = 75,
  149. INDEX_OPT_LESS_HELP = 76,
  150. INDEX_OPT_HELP = 77,
  151. INDEX_OPT_MORE_HELP = 78,
  152. INDEX_OPT_SAVE_OPTS = 79,
  153. INDEX_OPT_LOAD_OPTS = 80
  154. } teOptIndex;
  155. /** count of all options for tcpreplay */
  156. #define OPTION_CT 81
  157. /**
  158. * Interface defines for all options. Replace "n" with the UPPER_CASED
  159. * option name (as in the teOptIndex enumeration above).
  160. * e.g. HAVE_OPT(TCPEDIT)
  161. */
  162. #define DESC(n) (tcpreplayOptions.pOptDesc[INDEX_OPT_## n])
  163. /** 'true' if an option has been specified in any way */
  164. #define HAVE_OPT(n) (! UNUSED_OPT(& DESC(n)))
  165. /** The string argument to an option. The argument type must be \"string\". */
  166. #define OPT_ARG(n) (DESC(n).optArg.argString)
  167. /** Mask the option state revealing how an option was specified.
  168. * It will be one and only one of \a OPTST_SET, \a OPTST_PRESET,
  169. * \a OPTST_DEFINED, \a OPTST_RESET or zero.
  170. */
  171. #define STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
  172. /** Count of option's occurrances *on the command line*. */
  173. #define COUNT_OPT(n) (DESC(n).optOccCt)
  174. /** mask of \a OPTST_SET and \a OPTST_DEFINED. */
  175. #define ISSEL_OPT(n) (SELECTED_OPT(&DESC(n)))
  176. /** 'true' if \a HAVE_OPT would yield 'false'. */
  177. #define ISUNUSED_OPT(n) (UNUSED_OPT(& DESC(n)))
  178. /** 'true' if OPTST_DISABLED bit not set. */
  179. #define ENABLED_OPT(n) (! DISABLED_OPT(& DESC(n)))
  180. /** number of stacked option arguments.
  181. * Valid only for stacked option arguments. */
  182. #define STACKCT_OPT(n) (((tArgList*)(DESC(n).optCookie))->useCt)
  183. /** stacked argument vector.
  184. * Valid only for stacked option arguments. */
  185. #define STACKLST_OPT(n) (((tArgList*)(DESC(n).optCookie))->apzArgs)
  186. /** Reset an option. */
  187. #define CLEAR_OPT(n) STMTS( \
  188. DESC(n).fOptState &= OPTST_PERSISTENT_MASK; \
  189. if ((DESC(n).fOptState & OPTST_INITENABLED) == 0) \
  190. DESC(n).fOptState |= OPTST_DISABLED; \
  191. DESC(n).optCookie = NULL )
  192. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  193. /**
  194. * Enumeration of tcpreplay exit codes
  195. */
  196. typedef enum {
  197. TCPREPLAY_EXIT_SUCCESS = 0,
  198. TCPREPLAY_EXIT_FAILURE = 1,
  199. TCPREPLAY_EXIT_USAGE_ERROR = 64,
  200. TCPREPLAY_EXIT_NO_CONFIG_INPUT = 66,
  201. TCPREPLAY_EXIT_LIBOPTS_FAILURE = 70
  202. } tcpreplay_exit_code_t;
  203. /**
  204. * Interface defines for specific options.
  205. * @{
  206. */
  207. #define VALUE_OPT_PORTMAP 'r'
  208. #define VALUE_OPT_SEED 's'
  209. #define OPT_VALUE_SEED (DESC(SEED).optArg.argInt)
  210. #define VALUE_OPT_PNAT 'N'
  211. #define VALUE_OPT_SRCIPMAP 'S'
  212. #define VALUE_OPT_DSTIPMAP 'D'
  213. #define VALUE_OPT_ENDPOINTS 'e'
  214. #define VALUE_OPT_TCP_SEQUENCE 0x1001
  215. #define OPT_VALUE_TCP_SEQUENCE (DESC(TCP_SEQUENCE).optArg.argInt)
  216. #define VALUE_OPT_SKIPBROADCAST 'b'
  217. #define VALUE_OPT_FIXCSUM 'C'
  218. #define VALUE_OPT_FIXHDRLEN 0x1002
  219. #define VALUE_OPT_MTU 'm'
  220. #define OPT_VALUE_MTU (DESC(MTU).optArg.argInt)
  221. #define VALUE_OPT_MTU_TRUNC 0x1003
  222. #define VALUE_OPT_EFCS 'E'
  223. #define VALUE_OPT_TTL 0x1004
  224. #define VALUE_OPT_TOS 0x1005
  225. #define OPT_VALUE_TOS (DESC(TOS).optArg.argInt)
  226. #define VALUE_OPT_TCLASS 0x1006
  227. #define OPT_VALUE_TCLASS (DESC(TCLASS).optArg.argInt)
  228. #define VALUE_OPT_FLOWLABEL 0x1007
  229. #define OPT_VALUE_FLOWLABEL (DESC(FLOWLABEL).optArg.argInt)
  230. #define VALUE_OPT_FIXLEN 'F'
  231. #define VALUE_OPT_FUZZ_SEED 0x1008
  232. #define OPT_VALUE_FUZZ_SEED (DESC(FUZZ_SEED).optArg.argInt)
  233. #define VALUE_OPT_FUZZ_FACTOR 0x1009
  234. #define OPT_VALUE_FUZZ_FACTOR (DESC(FUZZ_FACTOR).optArg.argInt)
  235. #define VALUE_OPT_SKIPL2BROADCAST 0x100A
  236. #define VALUE_OPT_DLT 0x100B
  237. #define VALUE_OPT_ENET_DMAC 0x100C
  238. #define VALUE_OPT_ENET_SMAC 0x100D
  239. #define VALUE_OPT_ENET_SUBSMAC 0x100E
  240. #define VALUE_OPT_ENET_MAC_SEED 0x100F
  241. #define OPT_VALUE_ENET_MAC_SEED (DESC(ENET_MAC_SEED).optArg.argInt)
  242. #define VALUE_OPT_ENET_MAC_SEED_KEEP_BYTES 0x1010
  243. #define OPT_VALUE_ENET_MAC_SEED_KEEP_BYTES (DESC(ENET_MAC_SEED_KEEP_BYTES).optArg.argInt)
  244. #define VALUE_OPT_ENET_VLAN 0x1011
  245. #define VALUE_OPT_ENET_VLAN_TAG 0x1012
  246. #define OPT_VALUE_ENET_VLAN_TAG (DESC(ENET_VLAN_TAG).optArg.argInt)
  247. #define VALUE_OPT_ENET_VLAN_CFI 0x1013
  248. #define OPT_VALUE_ENET_VLAN_CFI (DESC(ENET_VLAN_CFI).optArg.argInt)
  249. #define VALUE_OPT_ENET_VLAN_PRI 0x1014
  250. #define OPT_VALUE_ENET_VLAN_PRI (DESC(ENET_VLAN_PRI).optArg.argInt)
  251. #define VALUE_OPT_ENET_VLAN_PROTO 0x1015
  252. #define VALUE_OPT_HDLC_CONTROL 0x1016
  253. #define OPT_VALUE_HDLC_CONTROL (DESC(HDLC_CONTROL).optArg.argInt)
  254. #define VALUE_OPT_HDLC_ADDRESS 0x1017
  255. #define OPT_VALUE_HDLC_ADDRESS (DESC(HDLC_ADDRESS).optArg.argInt)
  256. #define VALUE_OPT_USER_DLT 0x1018
  257. #define OPT_VALUE_USER_DLT (DESC(USER_DLT).optArg.argInt)
  258. #define VALUE_OPT_USER_DLINK 0x1019
  259. #define VALUE_OPT_DBUG 'd'
  260. #ifdef DEBUG
  261. #define OPT_VALUE_DBUG (DESC(DBUG).optArg.argInt)
  262. #endif /* DEBUG */
  263. #define VALUE_OPT_QUIET 'q'
  264. #define VALUE_OPT_TIMER 'T'
  265. #define VALUE_OPT_MAXSLEEP 0x101A
  266. #define OPT_VALUE_MAXSLEEP (DESC(MAXSLEEP).optArg.argInt)
  267. #define VALUE_OPT_VERBOSE 'v'
  268. #ifdef ENABLE_VERBOSE
  269. #define SET_OPT_VERBOSE STMTS( \
  270. DESC(VERBOSE).optActualIndex = 41; \
  271. DESC(VERBOSE).optActualValue = VALUE_OPT_VERBOSE; \
  272. DESC(VERBOSE).fOptState &= OPTST_PERSISTENT_MASK; \
  273. DESC(VERBOSE).fOptState |= OPTST_SET )
  274. #endif /* ENABLE_VERBOSE */
  275. #define VALUE_OPT_DECODE 'A'
  276. #define VALUE_OPT_PRELOAD_PCAP 'K'
  277. #define VALUE_OPT_CACHEFILE 'c'
  278. #define VALUE_OPT_DUALFILE '2'
  279. #define VALUE_OPT_INTF1 'i'
  280. /** Define the option value intf1 is equivalenced to */
  281. #define WHICH_OPT_INTF1 (DESC(INTF1).optActualValue)
  282. /** Define the index of the option intf1 is equivalenced to */
  283. #define WHICH_IDX_INTF1 (DESC(INTF1).optActualIndex)
  284. #define VALUE_OPT_INTF2 'I'
  285. #define VALUE_OPT_WRITE 'w'
  286. #define VALUE_OPT_INCLUDE 0x101B
  287. #define VALUE_OPT_EXCLUDE 0x101C
  288. #define VALUE_OPT_LISTNICS 0x101D
  289. #define VALUE_OPT_LOOP 'l'
  290. #define OPT_VALUE_LOOP (DESC(LOOP).optArg.argInt)
  291. #define VALUE_OPT_LOOPDELAY_MS 0x101E
  292. #define OPT_VALUE_LOOPDELAY_MS (DESC(LOOPDELAY_MS).optArg.argInt)
  293. #define VALUE_OPT_LOOPDELAY_NS 0x101F
  294. #define OPT_VALUE_LOOPDELAY_NS (DESC(LOOPDELAY_NS).optArg.argInt)
  295. #define VALUE_OPT_PKTLEN 0x1020
  296. #define VALUE_OPT_LIMIT 'L'
  297. #define OPT_VALUE_LIMIT (DESC(LIMIT).optArg.argInt)
  298. #define VALUE_OPT_DURATION 0x1021
  299. #define OPT_VALUE_DURATION (DESC(DURATION).optArg.argInt)
  300. #define VALUE_OPT_MULTIPLIER 'x'
  301. #define VALUE_OPT_PPS 'p'
  302. #define VALUE_OPT_MBPS 'M'
  303. #define VALUE_OPT_TOPSPEED 't'
  304. #define VALUE_OPT_ONEATATIME 'o'
  305. #define VALUE_OPT_PPS_MULTI 0x1022
  306. #define OPT_VALUE_PPS_MULTI (DESC(PPS_MULTI).optArg.argInt)
  307. #define VALUE_OPT_UNIQUE_IP 0x1023
  308. #define VALUE_OPT_UNIQUE_IP_LOOPS 0x1024
  309. #define VALUE_OPT_NETMAP 0x1025
  310. #define VALUE_OPT_NM_DELAY 0x1026
  311. #ifdef HAVE_NETMAP
  312. #define OPT_VALUE_NM_DELAY (DESC(NM_DELAY).optArg.argInt)
  313. #endif /* HAVE_NETMAP */
  314. #define VALUE_OPT_NO_FLOW_STATS 0x1027
  315. #define VALUE_OPT_FLOW_EXPIRY 0x1028
  316. #define OPT_VALUE_FLOW_EXPIRY (DESC(FLOW_EXPIRY).optArg.argInt)
  317. #define VALUE_OPT_PID 'P'
  318. #define VALUE_OPT_STATS 0x1029
  319. #define OPT_VALUE_STATS (DESC(STATS).optArg.argInt)
  320. #define VALUE_OPT_SUPPRESS_WARNINGS 'W'
  321. #define SET_OPT_SUPPRESS_WARNINGS STMTS( \
  322. DESC(SUPPRESS_WARNINGS).optActualIndex = 72; \
  323. DESC(SUPPRESS_WARNINGS).optActualValue = VALUE_OPT_SUPPRESS_WARNINGS; \
  324. DESC(SUPPRESS_WARNINGS).fOptState &= OPTST_PERSISTENT_MASK; \
  325. DESC(SUPPRESS_WARNINGS).fOptState |= OPTST_SET )
  326. #define VALUE_OPT_XDP 0x102A
  327. #define VALUE_OPT_XDP_BATCH_SIZE 0x102B
  328. #ifdef HAVE_LIBXDP
  329. #define OPT_VALUE_XDP_BATCH_SIZE (DESC(XDP_BATCH_SIZE).optArg.argInt)
  330. #endif /* HAVE_LIBXDP */
  331. #define VALUE_OPT_VERSION 'V'
  332. #define VALUE_OPT_LESS_HELP 'h'
  333. /** option flag (value) for help-value option */
  334. #define VALUE_OPT_HELP 'H'
  335. /** option flag (value) for more-help-value option */
  336. #define VALUE_OPT_MORE_HELP '!'
  337. /** option flag (value) for save-opts-value option */
  338. #define VALUE_OPT_SAVE_OPTS 0x102C
  339. /** option flag (value) for load-opts-value option */
  340. #define VALUE_OPT_LOAD_OPTS 0x102D
  341. #define SET_OPT_SAVE_OPTS(a) STMTS( \
  342. DESC(SAVE_OPTS).fOptState &= OPTST_PERSISTENT_MASK; \
  343. DESC(SAVE_OPTS).fOptState |= OPTST_SET; \
  344. DESC(SAVE_OPTS).optArg.argString = (char const*)(a))
  345. /*
  346. * Interface defines not associated with particular options
  347. */
  348. #define ERRSKIP_OPTERR STMTS(tcpreplayOptions.fOptSet &= ~OPTPROC_ERRSTOP)
  349. #define ERRSTOP_OPTERR STMTS(tcpreplayOptions.fOptSet |= OPTPROC_ERRSTOP)
  350. #define RESTART_OPT(n) STMTS( \
  351. tcpreplayOptions.curOptIdx = (n); \
  352. tcpreplayOptions.pzCurOpt = NULL )
  353. #define START_OPT RESTART_OPT(1)
  354. #define USAGE(c) (*tcpreplayOptions.pUsageProc)(&tcpreplayOptions, c)
  355. #ifdef __cplusplus
  356. extern "C" {
  357. #endif
  358. /* * * * * *
  359. *
  360. * Declare the tcpreplay option descriptor.
  361. */
  362. extern tOptions tcpreplayOptions;
  363. #if defined(ENABLE_NLS)
  364. # ifndef _
  365. # include <stdio.h>
  366. # ifndef HAVE_GETTEXT
  367. extern char * gettext(char const *);
  368. # else
  369. # include <libintl.h>
  370. # endif
  371. # ifndef ATTRIBUTE_FORMAT_ARG
  372. # define ATTRIBUTE_FORMAT_ARG(_a)
  373. # endif
  374. static inline char* aoGetsText(char const* pz) ATTRIBUTE_FORMAT_ARG(1);
  375. static inline char* aoGetsText(char const* pz) {
  376. if (pz == NULL) return NULL;
  377. return (char*)gettext(pz);
  378. }
  379. # define _(s) aoGetsText(s)
  380. # endif /* _() */
  381. # define OPT_NO_XLAT_CFG_NAMES STMTS(tcpreplayOptions.fOptSet |= \
  382. OPTPROC_NXLAT_OPT_CFG;)
  383. # define OPT_NO_XLAT_OPT_NAMES STMTS(tcpreplayOptions.fOptSet |= \
  384. OPTPROC_NXLAT_OPT|OPTPROC_NXLAT_OPT_CFG;)
  385. # define OPT_XLAT_CFG_NAMES STMTS(tcpreplayOptions.fOptSet &= \
  386. ~(OPTPROC_NXLAT_OPT|OPTPROC_NXLAT_OPT_CFG);)
  387. # define OPT_XLAT_OPT_NAMES STMTS(tcpreplayOptions.fOptSet &= \
  388. ~OPTPROC_NXLAT_OPT;)
  389. #else /* ENABLE_NLS */
  390. # define OPT_NO_XLAT_CFG_NAMES
  391. # define OPT_NO_XLAT_OPT_NAMES
  392. # define OPT_XLAT_CFG_NAMES
  393. # define OPT_XLAT_OPT_NAMES
  394. # ifndef _
  395. # define _(_s) _s
  396. # endif
  397. #endif /* ENABLE_NLS */
  398. #ifdef __cplusplus
  399. }
  400. #endif
  401. #endif /* AUTOOPTS_TCPREPLAY_EDIT_OPTS_H_GUARD */
  402. /* tcpreplay_edit_opts.h ends here */