1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 11:47:24 +01:00

fixes for named objects descriptions and interface addresses import for pix/asa

This commit is contained in:
Vadim Kurland 2011-03-16 18:27:08 -07:00
parent 35e227fb14
commit 0433111877
4 changed files with 162 additions and 164 deletions

View File

@ -418,11 +418,11 @@ void PIXCfgLexer::mLINE_COMMENT(bool _createToken) {
}
}
else {
goto _loop127;
goto _loop128;
}
}
_loop127:;
_loop128:;
} // ( ... )*
mNEWLINE(false);
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
@ -480,11 +480,11 @@ void PIXCfgLexer::mCOLON_COMMENT(bool _createToken) {
}
}
else {
goto _loop131;
goto _loop132;
}
}
_loop131:;
_loop132:;
} // ( ... )*
mNEWLINE(false);
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
@ -692,125 +692,125 @@ void PIXCfgLexer::mNUMBER(bool _createToken) {
ANTLR_USE_NAMESPACE(std)string::size_type _saveIndex;
{
bool synPredMatched150 = false;
bool synPredMatched151 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (_tokenSet_2.member(LA(2))) && (_tokenSet_2.member(LA(3))) && (_tokenSet_2.member(LA(4))) && (_tokenSet_2.member(LA(5))) && (_tokenSet_2.member(LA(6))) && (_tokenSet_2.member(LA(7))) && (true) && (true) && (true))) {
int _m150 = mark();
synPredMatched150 = true;
int _m151 = mark();
synPredMatched151 = true;
inputState->guessing++;
try {
{
{ // ( ... )+
int _cnt145=0;
int _cnt146=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt145>=1 ) { goto _loop145; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt146>=1 ) { goto _loop146; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt145++;
_cnt146++;
}
_loop145:;
_loop146:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt147=0;
int _cnt148=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt147>=1 ) { goto _loop147; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt148>=1 ) { goto _loop148; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt147++;
_cnt148++;
}
_loop147:;
_loop148:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt149=0;
int _cnt150=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt149>=1 ) { goto _loop149; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt150>=1 ) { goto _loop150; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt149++;
_cnt150++;
}
_loop149:;
_loop150:;
} // ( ... )+
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched150 = false;
synPredMatched151 = false;
}
rewind(_m150);
rewind(_m151);
inputState->guessing--;
}
if ( synPredMatched150 ) {
if ( synPredMatched151 ) {
{
{ // ( ... )+
int _cnt153=0;
int _cnt154=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt153>=1 ) { goto _loop153; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt154>=1 ) { goto _loop154; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt153++;
_cnt154++;
}
_loop153:;
_loop154:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt155=0;
int _cnt156=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt155>=1 ) { goto _loop155; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt156>=1 ) { goto _loop156; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt155++;
_cnt156++;
}
_loop155:;
_loop156:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt157=0;
int _cnt158=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt157>=1 ) { goto _loop157; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt158>=1 ) { goto _loop158; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt157++;
_cnt158++;
}
_loop157:;
_loop158:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt159=0;
int _cnt160=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt159>=1 ) { goto _loop159; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt160>=1 ) { goto _loop160; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt159++;
_cnt160++;
}
_loop159:;
_loop160:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
@ -820,80 +820,80 @@ void PIXCfgLexer::mNUMBER(bool _createToken) {
}
}
else {
bool synPredMatched165 = false;
bool synPredMatched166 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (_tokenSet_2.member(LA(2))) && (_tokenSet_2.member(LA(3))) && (true) && (true) && (true) && (true) && (true) && (true) && (true))) {
int _m165 = mark();
synPredMatched165 = true;
int _m166 = mark();
synPredMatched166 = true;
inputState->guessing++;
try {
{
{ // ( ... )+
int _cnt162=0;
int _cnt163=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt162>=1 ) { goto _loop162; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt163>=1 ) { goto _loop163; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt162++;
_cnt163++;
}
_loop162:;
_loop163:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt164=0;
int _cnt165=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt164>=1 ) { goto _loop164; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt165>=1 ) { goto _loop165; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt164++;
_cnt165++;
}
_loop164:;
_loop165:;
} // ( ... )+
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched165 = false;
synPredMatched166 = false;
}
rewind(_m165);
rewind(_m166);
inputState->guessing--;
}
if ( synPredMatched165 ) {
if ( synPredMatched166 ) {
{
{ // ( ... )+
int _cnt168=0;
int _cnt169=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt168>=1 ) { goto _loop168; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt169>=1 ) { goto _loop169; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt168++;
_cnt169++;
}
_loop168:;
_loop169:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt170=0;
int _cnt171=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt170>=1 ) { goto _loop170; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt171>=1 ) { goto _loop171; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt170++;
_cnt171++;
}
_loop170:;
_loop171:;
} // ( ... )+
}
}
@ -902,18 +902,18 @@ void PIXCfgLexer::mNUMBER(bool _createToken) {
match('0' /* charlit */ );
match('x' /* charlit */ );
{ // ( ... )+
int _cnt175=0;
int _cnt176=0;
for (;;) {
if ((_tokenSet_3.member(LA(1)))) {
mHEXDIGIT(false);
}
else {
if ( _cnt175>=1 ) { goto _loop175; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt176>=1 ) { goto _loop176; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt175++;
_cnt176++;
}
_loop175:;
_loop176:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
@ -924,18 +924,18 @@ void PIXCfgLexer::mNUMBER(bool _createToken) {
}
else if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true) && (true)) {
{ // ( ... )+
int _cnt172=0;
int _cnt173=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt172>=1 ) { goto _loop172; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt173>=1 ) { goto _loop173; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt172++;
_cnt173++;
}
_loop172:;
_loop173:;
} // ( ... )+
if ( inputState->guessing==0 ) {
#line 1093 "pix.g"
@ -1201,11 +1201,11 @@ void PIXCfgLexer::mWORD(bool _createToken) {
}
default:
{
goto _loop179;
goto _loop180;
}
}
}
_loop179:;
_loop180:;
} // ( ... )*
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
_token = makeToken(_ttype);
@ -1227,11 +1227,11 @@ void PIXCfgLexer::mSTRING(bool _createToken) {
matchNot('\"' /* charlit */ );
}
else {
goto _loop182;
goto _loop183;
}
}
_loop182:;
_loop183:;
} // ( ... )*
match('\"' /* charlit */ );
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {

View File

@ -402,7 +402,7 @@ void PIXCfgParser::vlan_interface() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -430,7 +430,7 @@ void PIXCfgParser::switchport() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -454,7 +454,7 @@ void PIXCfgParser::shutdown() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -481,7 +481,7 @@ void PIXCfgParser::sec_level() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -534,7 +534,7 @@ void PIXCfgParser::nameif() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -1489,7 +1489,7 @@ void PIXCfgParser::src_port_spec() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_3);
recover(ex,_tokenSet_4);
} else {
throw;
}
@ -1545,7 +1545,7 @@ void PIXCfgParser::xoperator() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_4);
recover(ex,_tokenSet_5);
} else {
throw;
}
@ -2033,7 +2033,7 @@ void PIXCfgParser::rule_ext() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_5);
recover(ex,_tokenSet_6);
} else {
throw;
}
@ -2073,7 +2073,7 @@ void PIXCfgParser::ip_protocols() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_6);
recover(ex,_tokenSet_7);
} else {
throw;
}
@ -2147,7 +2147,7 @@ void PIXCfgParser::hostaddr_ext() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_7);
recover(ex,_tokenSet_8);
} else {
throw;
}
@ -2173,7 +2173,7 @@ void PIXCfgParser::time_range() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_8);
recover(ex,_tokenSet_9);
} else {
throw;
}
@ -2196,7 +2196,7 @@ void PIXCfgParser::fragments() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_9);
recover(ex,_tokenSet_10);
} else {
throw;
}
@ -2236,7 +2236,7 @@ void PIXCfgParser::log() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_5);
recover(ex,_tokenSet_6);
} else {
throw;
}
@ -2296,7 +2296,7 @@ void PIXCfgParser::icmp_spec() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_10);
recover(ex,_tokenSet_11);
} else {
throw;
}
@ -2319,7 +2319,7 @@ void PIXCfgParser::established() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_10);
recover(ex,_tokenSet_11);
} else {
throw;
}
@ -2370,7 +2370,7 @@ void PIXCfgParser::single_port_op() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_4);
recover(ex,_tokenSet_5);
} else {
throw;
}
@ -2394,7 +2394,7 @@ void PIXCfgParser::port_range() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_4);
recover(ex,_tokenSet_5);
} else {
throw;
}
@ -2434,7 +2434,7 @@ void PIXCfgParser::port_spec() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_4);
recover(ex,_tokenSet_5);
} else {
throw;
}
@ -2505,7 +2505,7 @@ void PIXCfgParser::pair_of_ports_spec() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_4);
recover(ex,_tokenSet_5);
} else {
throw;
}
@ -2588,49 +2588,38 @@ void PIXCfgParser::interface_parameters() {
#line 2590 "PIXCfgParser.cpp"
}
{
switch ( LA(1)) {
case IP:
{
intf_address();
break;
}
case VLAN:
{
vlan_interface();
break;
}
case SEC_LEVEL:
{
sec_level();
break;
}
case NAMEIF:
{
nameif();
break;
}
case DESCRIPTION:
{
interface_description();
break;
}
case SWITCHPORT:
{
switchport();
break;
}
case SHUTDOWN:
{
shutdown();
break;
}
default:
{
throw ANTLR_USE_NAMESPACE(antlr)NoViableAltException(LT(1), getFilename());
}
}
{ // ( ... )+
int _cnt101=0;
for (;;) {
if ((LA(1) == IP) && (LA(2) == ADDRESS)) {
intf_address();
}
else if ((LA(1) == VLAN) && (LA(2) == INT_CONST)) {
vlan_interface();
}
else if ((LA(1) == SEC_LEVEL) && (LA(2) == INT_CONST)) {
sec_level();
}
else if ((LA(1) == NAMEIF) && (LA(2) == WORD)) {
nameif();
}
else if ((LA(1) == DESCRIPTION)) {
interface_description();
}
else if ((LA(1) == SWITCHPORT) && (LA(2) == ACCESS)) {
switchport();
}
else if ((LA(1) == SHUTDOWN) && (_tokenSet_3.member(LA(2)))) {
shutdown();
}
else {
if ( _cnt101>=1 ) { goto _loop101; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltException(LT(1), getFilename());}
}
_cnt101++;
}
_loop101:;
} // ( ... )+
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
@ -2670,7 +2659,7 @@ void PIXCfgParser::intf_address() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2695,13 +2684,13 @@ void PIXCfgParser::interface_description() {
*dbg << " DESCRIPTION " << descr << std::endl;
//consumeUntil(NEWLINE);
#line 2699 "PIXCfgParser.cpp"
#line 2688 "PIXCfgParser.cpp"
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2743,7 +2732,7 @@ void PIXCfgParser::v6_ip_address() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2773,7 +2762,7 @@ void PIXCfgParser::v7_ip_address() {
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2801,13 +2790,13 @@ void PIXCfgParser::v6_dhcp_address() {
// which we do not support
consumeUntil(NEWLINE);
#line 2805 "PIXCfgParser.cpp"
#line 2794 "PIXCfgParser.cpp"
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2838,13 +2827,13 @@ void PIXCfgParser::v6_static_address() {
// in case there are some other parameters after address and netmask
consumeUntil(NEWLINE);
#line 2842 "PIXCfgParser.cpp"
#line 2831 "PIXCfgParser.cpp"
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2866,13 +2855,13 @@ void PIXCfgParser::v7_dhcp_address() {
<< " INTRFACE ADDRESS: " << addr << std::endl;
consumeUntil(NEWLINE);
#line 2870 "PIXCfgParser.cpp"
#line 2859 "PIXCfgParser.cpp"
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2905,6 +2894,7 @@ void PIXCfgParser::v7_static_address() {
case NAME:
case WORD:
case OBJECT:
case DESCRIPTION:
case CRYPTO:
case CERTIFICATE:
case PIX_WORD:
@ -2948,13 +2938,13 @@ void PIXCfgParser::v7_static_address() {
}
consumeUntil(NEWLINE);
#line 2952 "PIXCfgParser.cpp"
#line 2942 "PIXCfgParser.cpp"
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
if( inputState->guessing == 0 ) {
reportError(ex);
recover(ex,_tokenSet_1);
recover(ex,_tokenSet_3);
} else {
throw;
}
@ -2988,7 +2978,7 @@ void PIXCfgParser::access_group_by_name() {
<< " " << intf_label->getText()
<< " " << dir->getText() << std::endl;
#line 2992 "PIXCfgParser.cpp"
#line 2982 "PIXCfgParser.cpp"
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex) {
@ -3121,37 +3111,43 @@ const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_1(_tokenSet_1_dat
const unsigned long PIXCfgParser::_tokenSet_2_data_[] = { 32800UL, 37486592UL, 0UL, 0UL };
// "ip" "description" "vlan" "security-level" "nameif" "shutdown" "switchport"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_2(_tokenSet_2_data_,4);
const unsigned long PIXCfgParser::_tokenSet_3_data_[] = { 2080381810UL, 3795779594UL, 0UL, 0UL };
// EOF NEWLINE "ip" "quit" "names" "name" WORD "object" "destination" "crypto"
const unsigned long PIXCfgParser::_tokenSet_3_data_[] = { 2013305714UL, 3795779594UL, 0UL, 0UL };
// EOF NEWLINE "ip" "quit" "names" "name" WORD "object" "description" "crypto"
// "certificate" "PIX" "ASA" "hostname" "access-list" "controller" "interface"
// "vlan" "security-level" "nameif" "shutdown" "switchport" "exit" LINE_COMMENT
// COLON_COMMENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_3(_tokenSet_3_data_,4);
const unsigned long PIXCfgParser::_tokenSet_4_data_[] = { 2080448370UL, 3795844106UL, 0UL, 0UL };
const unsigned long PIXCfgParser::_tokenSet_4_data_[] = { 2080381810UL, 3795779594UL, 0UL, 0UL };
// EOF NEWLINE "ip" "quit" "names" "name" WORD "object" "destination" "crypto"
// "certificate" "PIX" "ASA" "hostname" "access-list" "controller" "interface"
// "vlan" "security-level" "nameif" "shutdown" "switchport" "exit" LINE_COMMENT
// COLON_COMMENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_4(_tokenSet_4_data_,4);
const unsigned long PIXCfgParser::_tokenSet_5_data_[] = { 2080448370UL, 3795844106UL, 0UL, 0UL };
// EOF NEWLINE "ip" "quit" "names" "name" IPV4 WORD "object" "host" "destination"
// "crypto" "certificate" "PIX" "ASA" "hostname" "access-list" "any" "log"
// "log-input" "established" "fragments" "time-range" "controller" "interface"
// "vlan" "security-level" "nameif" "shutdown" "switchport" "exit" LINE_COMMENT
// COLON_COMMENT
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_4(_tokenSet_4_data_,4);
const unsigned long PIXCfgParser::_tokenSet_5_data_[] = { 16UL, 0UL, 0UL, 0UL };
// NEWLINE
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_5(_tokenSet_5_data_,4);
const unsigned long PIXCfgParser::_tokenSet_6_data_[] = { 66560UL, 1024UL, 0UL, 0UL };
// IPV4 "host" "any"
const unsigned long PIXCfgParser::_tokenSet_6_data_[] = { 16UL, 0UL, 0UL, 0UL };
// NEWLINE
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_6(_tokenSet_6_data_,4);
const unsigned long PIXCfgParser::_tokenSet_7_data_[] = { 2296848UL, 65472UL, 0UL, 0UL };
const unsigned long PIXCfgParser::_tokenSet_7_data_[] = { 66560UL, 1024UL, 0UL, 0UL };
// IPV4 "host" "any"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_7(_tokenSet_7_data_,4);
const unsigned long PIXCfgParser::_tokenSet_8_data_[] = { 2296848UL, 65472UL, 0UL, 0UL };
// NEWLINE IPV4 WORD "host" "range" INT_CONST "eq" "gt" "lt" "neq" "any"
// "log" "log-input" "established" "fragments" "time-range"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_7(_tokenSet_7_data_,4);
const unsigned long PIXCfgParser::_tokenSet_8_data_[] = { 16UL, 22528UL, 0UL, 0UL };
// NEWLINE "log" "log-input" "fragments"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_8(_tokenSet_8_data_,4);
const unsigned long PIXCfgParser::_tokenSet_9_data_[] = { 16UL, 6144UL, 0UL, 0UL };
// NEWLINE "log" "log-input"
const unsigned long PIXCfgParser::_tokenSet_9_data_[] = { 16UL, 22528UL, 0UL, 0UL };
// NEWLINE "log" "log-input" "fragments"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_9(_tokenSet_9_data_,4);
const unsigned long PIXCfgParser::_tokenSet_10_data_[] = { 16UL, 55296UL, 0UL, 0UL };
// NEWLINE "log" "log-input" "fragments" "time-range"
const unsigned long PIXCfgParser::_tokenSet_10_data_[] = { 16UL, 6144UL, 0UL, 0UL };
// NEWLINE "log" "log-input"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_10(_tokenSet_10_data_,4);
const unsigned long PIXCfgParser::_tokenSet_11_data_[] = { 16UL, 55296UL, 0UL, 0UL };
// NEWLINE "log" "log-input" "fragments" "time-range"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_11(_tokenSet_11_data_,4);

View File

@ -170,6 +170,8 @@ private:
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9;
static const unsigned long _tokenSet_10_data_[];
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10;
static const unsigned long _tokenSet_11_data_[];
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11;
};
#endif /*INC_PIXCfgParser_hpp_*/

View File

@ -730,7 +730,7 @@ interface_parameters :
switchport
|
shutdown
)
)+
;
vlan_interface : VLAN vlan_id:INT_CONST