📄 nat_configuration.h
字号:
/* nat_configuration.h *//* Copyright 2000-2003 Wind River Systems, Inc. *//* @format.tab-size 4, @format.use-tabs true, @format.new-line lf *//*modification history--------------------01a,24apr03,zhu updated copyrightDate Init Comment052501 tk Fix SPR#67128, add parameter to allow user to configure the starting global IP in Basic NAT mode.*/#ifndef __INCnat_configurationh#define __INCnat_configurationh#include <vnvrmstr.h> /* CONFIGURATION_TABLE definition */CONFIGURATION_TABLE nat_configuration_table ={ TRUE,/* _____________________________________________________________________________________________ */ { /* NAT Configuration parameters *//* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_enum_enable, NULL, "NAT =", (ULONG) offsetof (NAT_CLASS, enabled), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_enum_enable, NULL, "NAT Single Global Address =", (ULONG) offsetof (NAT_CLASS, single_global_address_enabled), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value, NULL, "NAT Global Address Pool Size =", /* in bits */ (ULONG) offsetof (NAT_CLASS, natg.global_address_pool_size), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_enum_enable, NULL, "NAT Unknown Protocol Filter =", (ULONG) offsetof (NAT_CLASS, filter_unknown_protocols), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ip_address, NULL, "NAT ICMP Default Address =", (ULONG) offsetof (NAT_CLASS, nats.icmp_default_entry.local_address), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ushort_decimal_value, NULL, "NAT IP Entry Timer =", (ULONG) offsetof (NAT_CLASS, ip_translation_entry_timer), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ip_address, NULL, "NAT IP global address =", (ULONG) offsetof (NAT_CLASS, global_address), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ip_address, NULL, "NAT IP global address mask =", (ULONG) offsetof (NAT_CLASS, global_address_mask), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_enum_enable, NULL, "NAT Dynamic Global Address =", (ULONG) offsetof (NAT_CLASS, dynamic_global_address), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ip_address, NULL, "NAT Starting Basic NAT Global Address =", (ULONG) offsetof (NAT_CLASS, starting_global_address), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_variable_port_and_enable, NULL, "NAT IP Port Enable =", (ULONG) offsetof (NAT_CLASS, port[0].enabled), (ULONG) &nat, sizeof (NAT_IP_PORT_CLASS) },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_variable_port_and_enable, NULL, "NAT IP Port Default Translate Enable =", (ULONG) offsetof (NAT_CLASS, port[0].default_translate_enabled), (ULONG) &nat, sizeof (NAT_IP_PORT_CLASS) },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_variable_port_and_string, NULL, "NAT IP Port Type =", (ULONG) offsetof (NAT_CLASS, port[0].type_string[0]), (ULONG) &nat, sizeof (NAT_IP_PORT_CLASS) },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_variable_port_and_string, NULL, "NAT IP Port Interface =", (ULONG) offsetof (NAT_CLASS, port[0].ifname[0]), (ULONG) &nat, sizeof (NAT_IP_PORT_CLASS) },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_variable_port_and_ip_address, NULL, "NAT IP Port Address =", (ULONG) offsetof (NAT_CLASS, port[0].address), (ULONG) &nat, sizeof (NAT_IP_PORT_CLASS) },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_variable_port_and_ip_address, NULL, "NAT IP Port Mask =", (ULONG) offsetof (NAT_CLASS, port[0].mask), (ULONG) &nat, sizeof (NAT_IP_PORT_CLASS) },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value, NULL, "NAT TCP Connecting Timer =", (ULONG) offsetof (NAT_CLASS, tcp_connecting_timer), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value, NULL, "NAT TCP Connected Timer =", (ULONG) offsetof (NAT_CLASS, tcp_connected_timer), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value, NULL, "NAT TCP Closing Timer =", (ULONG) offsetof (NAT_CLASS, tcp_closing_timer), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value, NULL, "NAT TCP Disconnected Timer =", (ULONG) offsetof (NAT_CLASS, tcp_disconnected_timer), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value, NULL, "NAT TCP Sequence Delta Timer =", (ULONG) offsetof (NAT_CLASS, sequence_entry_timer), (ULONG) &nat, (ULONG) NULL },/* _____________________________________________________________________________________________ */ { (void (*) (char *cptr_start_of_configuration_string,ULONG parameter_1,ULONG ulptr_parameter_2,ULONG parameter_3)) set_ulong_decimal_value,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -