|
@@ -2,11 +2,11 @@
|
|
|
*
|
|
|
* DO NOT EDIT THIS FILE (tcpbridge_opts.c)
|
|
|
*
|
|
|
- * It has been AutoGen-ed Saturday April 21, 2007 at 06:52:23 PM PDT
|
|
|
+ * It has been AutoGen-ed Thursday July 19, 2007 at 09:17:45 AM PDT
|
|
|
* From the definitions tcpbridge_opts.def
|
|
|
* and the template file options
|
|
|
*
|
|
|
- * Generated from AutoOpts 28:0:3 templates.
|
|
|
+ * Generated from AutoOpts 29:0:4 templates.
|
|
|
*/
|
|
|
|
|
|
/*
|
|
@@ -137,16 +137,48 @@ tSCC zSeed_Name[] = "seed";
|
|
|
| OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
|
|
|
|
|
|
/*
|
|
|
- * Pnat option description:
|
|
|
+ * Pnat option description with
|
|
|
+ * "Must also have options" and "Incompatible options":
|
|
|
*/
|
|
|
tSCC zPnatText[] =
|
|
|
"Rewrite IP addresses using pseudo-NAT";
|
|
|
tSCC zPnat_NAME[] = "PNAT";
|
|
|
tSCC zPnat_Name[] = "pnat";
|
|
|
+static const int
|
|
|
+ aPnatCantList[] = {
|
|
|
+ INDEX_OPT_SRCIPMAP, NO_EQUIVALENT };
|
|
|
#define PNAT_FLAGS (OPTST_DISABLED | OPTST_STACKED \
|
|
|
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
|
|
|
|
|
|
/*
|
|
|
+ * Srcipmap option description with
|
|
|
+ * "Must also have options" and "Incompatible options":
|
|
|
+ */
|
|
|
+tSCC zSrcipmapText[] =
|
|
|
+ "Rewrite source IP addresses using pseudo-NAT";
|
|
|
+tSCC zSrcipmap_NAME[] = "SRCIPMAP";
|
|
|
+tSCC zSrcipmap_Name[] = "srcipmap";
|
|
|
+static const int
|
|
|
+ aSrcipmapCantList[] = {
|
|
|
+ INDEX_OPT_PNAT, NO_EQUIVALENT };
|
|
|
+#define SRCIPMAP_FLAGS (OPTST_DISABLED \
|
|
|
+ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
|
|
|
+
|
|
|
+/*
|
|
|
+ * Dstipmap option description with
|
|
|
+ * "Must also have options" and "Incompatible options":
|
|
|
+ */
|
|
|
+tSCC zDstipmapText[] =
|
|
|
+ "Rewrite destination IP addresses using pseudo-NAT";
|
|
|
+tSCC zDstipmap_NAME[] = "DSTIPMAP";
|
|
|
+tSCC zDstipmap_Name[] = "dstipmap";
|
|
|
+static const int
|
|
|
+ aDstipmapCantList[] = {
|
|
|
+ INDEX_OPT_PNAT, NO_EQUIVALENT };
|
|
|
+#define DSTIPMAP_FLAGS (OPTST_DISABLED \
|
|
|
+ | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
|
|
|
+
|
|
|
+/*
|
|
|
* Endpoints option description with
|
|
|
* "Must also have options" and "Incompatible options":
|
|
|
*/
|
|
@@ -591,13 +623,37 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* opt state flags */ PNAT_FLAGS, 0,
|
|
|
/* last opt argumnt */ { NULL },
|
|
|
/* arg list/cookie */ NULL,
|
|
|
- /* must/cannot opts */ NULL, NULL,
|
|
|
+ /* must/cannot opts */ NULL, aPnatCantList,
|
|
|
/* option proc */ optionStackArg,
|
|
|
/* desc, NAME, name */ zPnatText, zPnat_NAME, zPnat_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 4, VALUE_OPT_ENDPOINTS,
|
|
|
- /* equiv idx, value */ 4, VALUE_OPT_ENDPOINTS,
|
|
|
+ { /* entry idx, value */ 4, VALUE_OPT_SRCIPMAP,
|
|
|
+ /* equiv idx, value */ 4, VALUE_OPT_SRCIPMAP,
|
|
|
+ /* equivalenced to */ NO_EQUIVALENT,
|
|
|
+ /* min, max, act ct */ 0, 1, 0,
|
|
|
+ /* opt state flags */ SRCIPMAP_FLAGS, 0,
|
|
|
+ /* last opt argumnt */ { NULL },
|
|
|
+ /* arg list/cookie */ NULL,
|
|
|
+ /* must/cannot opts */ NULL, aSrcipmapCantList,
|
|
|
+ /* option proc */ NULL,
|
|
|
+ /* desc, NAME, name */ zSrcipmapText, zSrcipmap_NAME, zSrcipmap_Name,
|
|
|
+ /* disablement strs */ NULL, NULL },
|
|
|
+
|
|
|
+ { /* entry idx, value */ 5, VALUE_OPT_DSTIPMAP,
|
|
|
+ /* equiv idx, value */ 5, VALUE_OPT_DSTIPMAP,
|
|
|
+ /* equivalenced to */ NO_EQUIVALENT,
|
|
|
+ /* min, max, act ct */ 0, 1, 0,
|
|
|
+ /* opt state flags */ DSTIPMAP_FLAGS, 0,
|
|
|
+ /* last opt argumnt */ { NULL },
|
|
|
+ /* arg list/cookie */ NULL,
|
|
|
+ /* must/cannot opts */ NULL, aDstipmapCantList,
|
|
|
+ /* option proc */ NULL,
|
|
|
+ /* desc, NAME, name */ zDstipmapText, zDstipmap_NAME, zDstipmap_Name,
|
|
|
+ /* disablement strs */ NULL, NULL },
|
|
|
+
|
|
|
+ { /* entry idx, value */ 6, VALUE_OPT_ENDPOINTS,
|
|
|
+ /* equiv idx, value */ 6, VALUE_OPT_ENDPOINTS,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENDPOINTS_FLAGS, 0,
|
|
@@ -608,8 +664,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEndpointsText, zEndpoints_NAME, zEndpoints_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 5, VALUE_OPT_SKIPBROADCAST,
|
|
|
- /* equiv idx, value */ 5, VALUE_OPT_SKIPBROADCAST,
|
|
|
+ { /* entry idx, value */ 7, VALUE_OPT_SKIPBROADCAST,
|
|
|
+ /* equiv idx, value */ 7, VALUE_OPT_SKIPBROADCAST,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ SKIPBROADCAST_FLAGS, 0,
|
|
@@ -620,8 +676,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zSkipbroadcastText, zSkipbroadcast_NAME, zSkipbroadcast_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 6, VALUE_OPT_FIXCSUM,
|
|
|
- /* equiv idx, value */ 6, VALUE_OPT_FIXCSUM,
|
|
|
+ { /* entry idx, value */ 8, VALUE_OPT_FIXCSUM,
|
|
|
+ /* equiv idx, value */ 8, VALUE_OPT_FIXCSUM,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ FIXCSUM_FLAGS, 0,
|
|
@@ -632,8 +688,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zFixcsumText, zFixcsum_NAME, zFixcsum_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 7, VALUE_OPT_MTU,
|
|
|
- /* equiv idx, value */ 7, VALUE_OPT_MTU,
|
|
|
+ { /* entry idx, value */ 9, VALUE_OPT_MTU,
|
|
|
+ /* equiv idx, value */ 9, VALUE_OPT_MTU,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ MTU_FLAGS, 0,
|
|
@@ -644,8 +700,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zMtuText, zMtu_NAME, zMtu_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 8, VALUE_OPT_EFCS,
|
|
|
- /* equiv idx, value */ 8, VALUE_OPT_EFCS,
|
|
|
+ { /* entry idx, value */ 10, VALUE_OPT_EFCS,
|
|
|
+ /* equiv idx, value */ 10, VALUE_OPT_EFCS,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ EFCS_FLAGS, 0,
|
|
@@ -656,8 +712,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEfcsText, zEfcs_NAME, zEfcs_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 9, VALUE_OPT_FIXLEN,
|
|
|
- /* equiv idx, value */ 9, VALUE_OPT_FIXLEN,
|
|
|
+ { /* entry idx, value */ 11, VALUE_OPT_FIXLEN,
|
|
|
+ /* equiv idx, value */ 11, VALUE_OPT_FIXLEN,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ FIXLEN_FLAGS, 0,
|
|
@@ -668,8 +724,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zFixlenText, zFixlen_NAME, zFixlen_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 10, VALUE_OPT_SKIPL2BROADCAST,
|
|
|
- /* equiv idx, value */ 10, VALUE_OPT_SKIPL2BROADCAST,
|
|
|
+ { /* entry idx, value */ 12, VALUE_OPT_SKIPL2BROADCAST,
|
|
|
+ /* equiv idx, value */ 12, VALUE_OPT_SKIPL2BROADCAST,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ SKIPL2BROADCAST_FLAGS, 0,
|
|
@@ -680,8 +736,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zSkipl2broadcastText, zSkipl2broadcast_NAME, zSkipl2broadcast_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 11, VALUE_OPT_DLT,
|
|
|
- /* equiv idx, value */ 11, VALUE_OPT_DLT,
|
|
|
+ { /* entry idx, value */ 13, VALUE_OPT_DLT,
|
|
|
+ /* equiv idx, value */ 13, VALUE_OPT_DLT,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ DLT_FLAGS, 0,
|
|
@@ -692,8 +748,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zDltText, zDlt_NAME, zDlt_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 12, VALUE_OPT_ENET_DMAC,
|
|
|
- /* equiv idx, value */ 12, VALUE_OPT_ENET_DMAC,
|
|
|
+ { /* entry idx, value */ 14, VALUE_OPT_ENET_DMAC,
|
|
|
+ /* equiv idx, value */ 14, VALUE_OPT_ENET_DMAC,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENET_DMAC_FLAGS, 0,
|
|
@@ -704,8 +760,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEnet_DmacText, zEnet_Dmac_NAME, zEnet_Dmac_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 13, VALUE_OPT_ENET_SMAC,
|
|
|
- /* equiv idx, value */ 13, VALUE_OPT_ENET_SMAC,
|
|
|
+ { /* entry idx, value */ 15, VALUE_OPT_ENET_SMAC,
|
|
|
+ /* equiv idx, value */ 15, VALUE_OPT_ENET_SMAC,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENET_SMAC_FLAGS, 0,
|
|
@@ -716,8 +772,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEnet_SmacText, zEnet_Smac_NAME, zEnet_Smac_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 14, VALUE_OPT_ENET_VLAN,
|
|
|
- /* equiv idx, value */ 14, VALUE_OPT_ENET_VLAN,
|
|
|
+ { /* entry idx, value */ 16, VALUE_OPT_ENET_VLAN,
|
|
|
+ /* equiv idx, value */ 16, VALUE_OPT_ENET_VLAN,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENET_VLAN_FLAGS, 0,
|
|
@@ -728,8 +784,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEnet_VlanText, zEnet_Vlan_NAME, zEnet_Vlan_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 15, VALUE_OPT_ENET_VLAN_TAG,
|
|
|
- /* equiv idx, value */ 15, VALUE_OPT_ENET_VLAN_TAG,
|
|
|
+ { /* entry idx, value */ 17, VALUE_OPT_ENET_VLAN_TAG,
|
|
|
+ /* equiv idx, value */ 17, VALUE_OPT_ENET_VLAN_TAG,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENET_VLAN_TAG_FLAGS, 0,
|
|
@@ -740,8 +796,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEnet_Vlan_TagText, zEnet_Vlan_Tag_NAME, zEnet_Vlan_Tag_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 16, VALUE_OPT_ENET_VLAN_CFI,
|
|
|
- /* equiv idx, value */ 16, VALUE_OPT_ENET_VLAN_CFI,
|
|
|
+ { /* entry idx, value */ 18, VALUE_OPT_ENET_VLAN_CFI,
|
|
|
+ /* equiv idx, value */ 18, VALUE_OPT_ENET_VLAN_CFI,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENET_VLAN_CFI_FLAGS, 0,
|
|
@@ -752,8 +808,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEnet_Vlan_CfiText, zEnet_Vlan_Cfi_NAME, zEnet_Vlan_Cfi_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 17, VALUE_OPT_ENET_VLAN_PRI,
|
|
|
- /* equiv idx, value */ 17, VALUE_OPT_ENET_VLAN_PRI,
|
|
|
+ { /* entry idx, value */ 19, VALUE_OPT_ENET_VLAN_PRI,
|
|
|
+ /* equiv idx, value */ 19, VALUE_OPT_ENET_VLAN_PRI,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ ENET_VLAN_PRI_FLAGS, 0,
|
|
@@ -764,8 +820,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zEnet_Vlan_PriText, zEnet_Vlan_Pri_NAME, zEnet_Vlan_Pri_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 18, VALUE_OPT_HDLC_CONTROL,
|
|
|
- /* equiv idx, value */ 18, VALUE_OPT_HDLC_CONTROL,
|
|
|
+ { /* entry idx, value */ 20, VALUE_OPT_HDLC_CONTROL,
|
|
|
+ /* equiv idx, value */ 20, VALUE_OPT_HDLC_CONTROL,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ HDLC_CONTROL_FLAGS, 0,
|
|
@@ -776,8 +832,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zHdlc_ControlText, zHdlc_Control_NAME, zHdlc_Control_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 19, VALUE_OPT_HDLC_ADDRESS,
|
|
|
- /* equiv idx, value */ 19, VALUE_OPT_HDLC_ADDRESS,
|
|
|
+ { /* entry idx, value */ 21, VALUE_OPT_HDLC_ADDRESS,
|
|
|
+ /* equiv idx, value */ 21, VALUE_OPT_HDLC_ADDRESS,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ HDLC_ADDRESS_FLAGS, 0,
|
|
@@ -788,8 +844,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zHdlc_AddressText, zHdlc_Address_NAME, zHdlc_Address_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 20, VALUE_OPT_USER_DLT,
|
|
|
- /* equiv idx, value */ 20, VALUE_OPT_USER_DLT,
|
|
|
+ { /* entry idx, value */ 22, VALUE_OPT_USER_DLT,
|
|
|
+ /* equiv idx, value */ 22, VALUE_OPT_USER_DLT,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ USER_DLT_FLAGS, 0,
|
|
@@ -800,8 +856,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zUser_DltText, zUser_Dlt_NAME, zUser_Dlt_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 21, VALUE_OPT_USER_DLINK,
|
|
|
- /* equiv idx, value */ 21, VALUE_OPT_USER_DLINK,
|
|
|
+ { /* entry idx, value */ 23, VALUE_OPT_USER_DLINK,
|
|
|
+ /* equiv idx, value */ 23, VALUE_OPT_USER_DLINK,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 2, 0,
|
|
|
/* opt state flags */ USER_DLINK_FLAGS, 0,
|
|
@@ -812,8 +868,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zUser_DlinkText, zUser_Dlink_NAME, zUser_Dlink_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 22, VALUE_OPT_DBUG,
|
|
|
- /* equiv idx, value */ 22, VALUE_OPT_DBUG,
|
|
|
+ { /* entry idx, value */ 24, VALUE_OPT_DBUG,
|
|
|
+ /* equiv idx, value */ 24, VALUE_OPT_DBUG,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ DBUG_FLAGS, 0,
|
|
@@ -824,8 +880,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zDbugText, zDbug_NAME, zDbug_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 23, VALUE_OPT_INTF1,
|
|
|
- /* equiv idx, value */ 23, VALUE_OPT_INTF1,
|
|
|
+ { /* entry idx, value */ 25, VALUE_OPT_INTF1,
|
|
|
+ /* equiv idx, value */ 25, VALUE_OPT_INTF1,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 1, 1, 0,
|
|
|
/* opt state flags */ INTF1_FLAGS, 0,
|
|
@@ -836,8 +892,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zIntf1Text, zIntf1_NAME, zIntf1_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 24, VALUE_OPT_INTF2,
|
|
|
- /* equiv idx, value */ 24, VALUE_OPT_INTF2,
|
|
|
+ { /* entry idx, value */ 26, VALUE_OPT_INTF2,
|
|
|
+ /* equiv idx, value */ 26, VALUE_OPT_INTF2,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ INTF2_FLAGS, 0,
|
|
@@ -848,8 +904,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zIntf2Text, zIntf2_NAME, zIntf2_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 25, VALUE_OPT_UNIDIR,
|
|
|
- /* equiv idx, value */ 25, VALUE_OPT_UNIDIR,
|
|
|
+ { /* entry idx, value */ 27, VALUE_OPT_UNIDIR,
|
|
|
+ /* equiv idx, value */ 27, VALUE_OPT_UNIDIR,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ UNIDIR_FLAGS, 0,
|
|
@@ -860,8 +916,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zUnidirText, zUnidir_NAME, zUnidir_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 26, VALUE_OPT_LIMIT,
|
|
|
- /* equiv idx, value */ 26, VALUE_OPT_LIMIT,
|
|
|
+ { /* entry idx, value */ 28, VALUE_OPT_LIMIT,
|
|
|
+ /* equiv idx, value */ 28, VALUE_OPT_LIMIT,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ LIMIT_FLAGS, 0,
|
|
@@ -872,8 +928,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zLimitText, zLimit_NAME, zLimit_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 27, VALUE_OPT_INCLUDE,
|
|
|
- /* equiv idx, value */ 27, VALUE_OPT_INCLUDE,
|
|
|
+ { /* entry idx, value */ 29, VALUE_OPT_INCLUDE,
|
|
|
+ /* equiv idx, value */ 29, VALUE_OPT_INCLUDE,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ INCLUDE_FLAGS, 0,
|
|
@@ -884,8 +940,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zIncludeText, zInclude_NAME, zInclude_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 28, VALUE_OPT_EXCLUDE,
|
|
|
- /* equiv idx, value */ 28, VALUE_OPT_EXCLUDE,
|
|
|
+ { /* entry idx, value */ 30, VALUE_OPT_EXCLUDE,
|
|
|
+ /* equiv idx, value */ 30, VALUE_OPT_EXCLUDE,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ EXCLUDE_FLAGS, 0,
|
|
@@ -896,8 +952,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zExcludeText, zExclude_NAME, zExclude_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 29, VALUE_OPT_PID,
|
|
|
- /* equiv idx, value */ 29, VALUE_OPT_PID,
|
|
|
+ { /* entry idx, value */ 31, VALUE_OPT_PID,
|
|
|
+ /* equiv idx, value */ 31, VALUE_OPT_PID,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ PID_FLAGS, 0,
|
|
@@ -908,8 +964,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zPidText, zPid_NAME, zPid_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 30, VALUE_OPT_VERBOSE,
|
|
|
- /* equiv idx, value */ 30, VALUE_OPT_VERBOSE,
|
|
|
+ { /* entry idx, value */ 32, VALUE_OPT_VERBOSE,
|
|
|
+ /* equiv idx, value */ 32, VALUE_OPT_VERBOSE,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ VERBOSE_FLAGS, 0,
|
|
@@ -920,8 +976,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zVerboseText, zVerbose_NAME, zVerbose_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 31, VALUE_OPT_DECODE,
|
|
|
- /* equiv idx, value */ 31, VALUE_OPT_DECODE,
|
|
|
+ { /* entry idx, value */ 33, VALUE_OPT_DECODE,
|
|
|
+ /* equiv idx, value */ 33, VALUE_OPT_DECODE,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ DECODE_FLAGS, 0,
|
|
@@ -932,8 +988,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zDecodeText, zDecode_NAME, zDecode_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 32, VALUE_OPT_VERSION,
|
|
|
- /* equiv idx, value */ 32, VALUE_OPT_VERSION,
|
|
|
+ { /* entry idx, value */ 34, VALUE_OPT_VERSION,
|
|
|
+ /* equiv idx, value */ 34, VALUE_OPT_VERSION,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ VERSION_FLAGS, 0,
|
|
@@ -944,8 +1000,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* desc, NAME, name */ zVersionText, zVersion_NAME, zVersion_Name,
|
|
|
/* disablement strs */ NULL, NULL },
|
|
|
|
|
|
- { /* entry idx, value */ 33, VALUE_OPT_LESS_HELP,
|
|
|
- /* equiv idx, value */ 33, VALUE_OPT_LESS_HELP,
|
|
|
+ { /* entry idx, value */ 35, VALUE_OPT_LESS_HELP,
|
|
|
+ /* equiv idx, value */ 35, VALUE_OPT_LESS_HELP,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ LESS_HELP_FLAGS, 0,
|
|
@@ -960,7 +1016,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* equiv idx value */ NO_EQUIVALENT, 0,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
- /* opt state flags */ OPTST_IMM, 0,
|
|
|
+ /* opt state flags */ OPTST_IMM | OPTST_NO_INIT, 0,
|
|
|
/* last opt argumnt */ { NULL },
|
|
|
/* arg list/cookie */ NULL,
|
|
|
/* must/cannot opts */ NULL, NULL,
|
|
@@ -972,7 +1028,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* equiv idx value */ NO_EQUIVALENT, 0,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
- /* opt state flags */ OPTST_IMM, 0,
|
|
|
+ /* opt state flags */ OPTST_IMM | OPTST_NO_INIT, 0,
|
|
|
/* last opt argumnt */ { NULL },
|
|
|
/* arg list/cookie */ NULL,
|
|
|
/* must/cannot opts */ NULL, NULL,
|
|
@@ -985,7 +1041,7 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, 1, 0,
|
|
|
/* opt state flags */ OPTST_SET_ARGTYPE(OPARG_TYPE_STRING)
|
|
|
- | OPTST_ARG_OPTIONAL, 0,
|
|
|
+ | OPTST_ARG_OPTIONAL | OPTST_NO_INIT, 0,
|
|
|
/* last opt argumnt */ { NULL },
|
|
|
/* arg list/cookie */ NULL,
|
|
|
/* must/cannot opts */ NULL, NULL,
|
|
@@ -997,8 +1053,8 @@ static tOptDesc optDesc[ OPTION_CT ] = {
|
|
|
/* equiv idx value */ NO_EQUIVALENT, 0,
|
|
|
/* equivalenced to */ NO_EQUIVALENT,
|
|
|
/* min, max, act ct */ 0, NOLIMIT, 0,
|
|
|
- /* opt state flags */ OPTST_DISABLE_IMM | \
|
|
|
- OPTST_SET_ARGTYPE(OPARG_TYPE_STRING), 0,
|
|
|
+ /* opt state flags */ OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) \
|
|
|
+ | OPTST_DISABLE_IMM, 0,
|
|
|
/* last opt argumnt */ { NULL },
|
|
|
/* arg list/cookie */ NULL,
|
|
|
/* must/cannot opts */ NULL, NULL,
|
|
@@ -1030,9 +1086,9 @@ The basic operation of tcpbridge is to be a network bridge between two\n\
|
|
|
subnets. All packets received on one interface are sent via the other.\n\n\
|
|
|
Optionally, packets can be edited in a variety of ways according to your needs.\n\n\
|
|
|
For more details, please see the Tcpreplay Manual at:\n\
|
|
|
-http://tcpreplay.synfin.net/wiki/manual\n";
|
|
|
+http://tcpreplay.synfin.net/trac/wiki/manual\n";
|
|
|
#define zFullVersion NULL
|
|
|
-/* extracted from /opt/local/share/autogen/optcode.tpl near line 378 */
|
|
|
+/* extracted from /opt/local/share/autogen/optcode.tpl near line 408 */
|
|
|
|
|
|
#if defined(ENABLE_NLS)
|
|
|
# define OPTPROC_BASE OPTPROC_TRANSLATE
|
|
@@ -1068,9 +1124,9 @@ tOptions tcpbridgeOptions = {
|
|
|
{ INDEX_OPT_MORE_HELP,
|
|
|
INDEX_OPT_SAVE_OPTS,
|
|
|
NO_EQUIVALENT /* index of '-#' option */,
|
|
|
- 7 /* index of default opt */
|
|
|
+ 9 /* index of default opt */
|
|
|
},
|
|
|
- OPTION_CT, 34 /* user option count */
|
|
|
+ 40 /* full option count */, 36 /* user option count */
|
|
|
};
|
|
|
|
|
|
/*
|
|
@@ -1509,7 +1565,7 @@ doOptLess_Help(
|
|
|
|
|
|
}
|
|
|
|
|
|
-/* extracted from /opt/local/share/autogen/optcode.tpl near line 475 */
|
|
|
+/* extracted from /opt/local/share/autogen/optcode.tpl near line 514 */
|
|
|
|
|
|
#if ENABLE_NLS
|
|
|
#include <stdio.h>
|