1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 02:37:16 +01:00

simpler lexer configuration to make sure word "object" that appears as a substring in named object name or named address is not interpreted as token OBJECT

This commit is contained in:
Vadim Kurland 2011-04-07 18:21:22 -07:00
parent 4c89a6bc80
commit c1194cced1
9 changed files with 665 additions and 747 deletions

View File

@ -120,6 +120,7 @@ void PIXCfgLexer::initLiterals()
literals["ipinip"] = 20;
literals["standby"] = 144;
literals["crypto"] = 55;
literals["object"] = 28;
literals["pim"] = 25;
literals["secondary"] = 163;
literals["emergencies"] = 108;
@ -182,6 +183,7 @@ void PIXCfgLexer::initLiterals()
literals["source-quench"] = 95;
literals["scopy"] = 147;
literals["protocol"] = 48;
literals["object-group"] = 45;
literals["inactive"] = 114;
literals["multicast"] = 138;
literals["exit"] = 121;
@ -538,9 +540,9 @@ void PIXCfgLexer::mNEWLINE(bool _createToken) {
}
if ( inputState->guessing==0 ) {
#line 2419 "pix.g"
#line 2422 "pix.g"
newline();
#line 544 "PIXCfgLexer.cpp"
#line 546 "PIXCfgLexer.cpp"
}
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
_token = makeToken(_ttype);
@ -662,9 +664,9 @@ void PIXCfgLexer::mWhitespace(bool _createToken) {
}
}
if ( inputState->guessing==0 ) {
#line 2414 "pix.g"
#line 2417 "pix.g"
_ttype = ANTLR_USE_NAMESPACE(antlr)Token::SKIP;
#line 668 "PIXCfgLexer.cpp"
#line 670 "PIXCfgLexer.cpp"
}
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
_token = makeToken(_ttype);
@ -754,141 +756,21 @@ void PIXCfgLexer::mHEXDIGIT(bool _createToken) {
_saveIndex=0;
}
void PIXCfgLexer::mOBJECT(bool _createToken) {
int _ttype; ANTLR_USE_NAMESPACE(antlr)RefToken _token; ANTLR_USE_NAMESPACE(std)string::size_type _begin = text.length();
_ttype = OBJECT;
ANTLR_USE_NAMESPACE(std)string::size_type _saveIndex;
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
_token = makeToken(_ttype);
_token->setText(text.substr(_begin, text.length()-_begin));
}
_returnToken = _token;
_saveIndex=0;
}
void PIXCfgLexer::mOBJECT_GROUP(bool _createToken) {
int _ttype; ANTLR_USE_NAMESPACE(antlr)RefToken _token; ANTLR_USE_NAMESPACE(std)string::size_type _begin = text.length();
_ttype = OBJECT_GROUP;
ANTLR_USE_NAMESPACE(std)string::size_type _saveIndex;
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
_token = makeToken(_ttype);
_token->setText(text.substr(_begin, text.length()-_begin));
}
_returnToken = _token;
_saveIndex=0;
}
void PIXCfgLexer::mNUMBER_ADDRESS_OR_WORD(bool _createToken) {
int _ttype; ANTLR_USE_NAMESPACE(antlr)RefToken _token; ANTLR_USE_NAMESPACE(std)string::size_type _begin = text.length();
_ttype = NUMBER_ADDRESS_OR_WORD;
ANTLR_USE_NAMESPACE(std)string::size_type _saveIndex;
{
bool synPredMatched349 = false;
if (((LA(1) == 0x6f /* 'o' */ ) && (LA(2) == 0x62 /* 'b' */ ) && (LA(3) == 0x6a /* 'j' */ ))) {
int _m349 = mark();
synPredMatched349 = true;
bool synPredMatched337 = false;
if (((_tokenSet_2.member(LA(1))) && (_tokenSet_3.member(LA(2))) && (true))) {
int _m337 = mark();
synPredMatched337 = true;
inputState->guessing++;
try {
{
match("obj");
match("ect");
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched349 = false;
}
rewind(_m349);
inputState->guessing--;
}
if ( synPredMatched349 ) {
{
match("object");
{
if ((LA(1) == 0x2d /* '-' */ )) {
{
match("-gr");
match("oup");
}
if ( inputState->guessing==0 ) {
#line 2472 "pix.g"
_ttype = OBJECT_GROUP;
#line 819 "PIXCfgLexer.cpp"
}
}
else {
match("");
if ( inputState->guessing==0 ) {
#line 2474 "pix.g"
_ttype = OBJECT;
#line 827 "PIXCfgLexer.cpp"
}
}
}
}
}
else {
bool synPredMatched339 = false;
if (((_tokenSet_2.member(LA(1))) && (_tokenSet_3.member(LA(2))) && (true))) {
int _m339 = mark();
synPredMatched339 = true;
inputState->guessing++;
try {
{
{ // ( ... )+
int _cnt338=0;
for (;;) {
switch ( LA(1)) {
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
{
matchRange('a','f');
break;
}
case 0x30 /* '0' */ :
case 0x31 /* '1' */ :
case 0x32 /* '2' */ :
case 0x33 /* '3' */ :
case 0x34 /* '4' */ :
case 0x35 /* '5' */ :
case 0x36 /* '6' */ :
case 0x37 /* '7' */ :
case 0x38 /* '8' */ :
case 0x39 /* '9' */ :
{
matchRange('0','9');
break;
}
default:
{
if ( _cnt338>=1 ) { goto _loop338; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
}
_cnt338++;
}
_loop338:;
} // ( ... )+
mCOLON(false);
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched339 = false;
}
rewind(_m339);
inputState->guessing--;
}
if ( synPredMatched339 ) {
{
{
{ // ( ... )+
int _cnt343=0;
int _cnt336=0;
for (;;) {
switch ( LA(1)) {
case 0x61 /* 'a' */ :
@ -917,357 +799,535 @@ void PIXCfgLexer::mNUMBER_ADDRESS_OR_WORD(bool _createToken) {
}
default:
{
if ( _cnt343>=1 ) { goto _loop343; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt336>=1 ) { goto _loop336; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
}
_cnt343++;
_cnt336++;
}
_loop343:;
_loop336:;
} // ( ... )+
{ // ( ... )+
int _cnt347=0;
for (;;) {
if ((LA(1) == 0x3a /* ':' */ )) {
mCOLON(false);
{ // ( ... )*
for (;;) {
switch ( LA(1)) {
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
{
matchRange('a','f');
break;
}
case 0x30 /* '0' */ :
case 0x31 /* '1' */ :
case 0x32 /* '2' */ :
case 0x33 /* '3' */ :
case 0x34 /* '4' */ :
case 0x35 /* '5' */ :
case 0x36 /* '6' */ :
case 0x37 /* '7' */ :
case 0x38 /* '8' */ :
case 0x39 /* '9' */ :
{
matchRange('0','9');
break;
}
default:
{
goto _loop346;
}
}
}
_loop346:;
} // ( ... )*
}
else {
if ( _cnt347>=1 ) { goto _loop347; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt347++;
}
_loop347:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
#line 2465 "pix.g"
_ttype = IPV6;
#line 981 "PIXCfgLexer.cpp"
}
mCOLON(false);
}
}
else {
bool synPredMatched304 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (true) && (true))) {
int _m304 = mark();
synPredMatched304 = true;
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched337 = false;
}
rewind(_m337);
inputState->guessing--;
}
if ( synPredMatched337 ) {
{
{
{ // ( ... )+
int _cnt341=0;
for (;;) {
switch ( LA(1)) {
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
{
matchRange('a','f');
break;
}
case 0x30 /* '0' */ :
case 0x31 /* '1' */ :
case 0x32 /* '2' */ :
case 0x33 /* '3' */ :
case 0x34 /* '4' */ :
case 0x35 /* '5' */ :
case 0x36 /* '6' */ :
case 0x37 /* '7' */ :
case 0x38 /* '8' */ :
case 0x39 /* '9' */ :
{
matchRange('0','9');
break;
}
default:
{
if ( _cnt341>=1 ) { goto _loop341; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
}
_cnt341++;
}
_loop341:;
} // ( ... )+
{ // ( ... )+
int _cnt345=0;
for (;;) {
if ((LA(1) == 0x3a /* ':' */ )) {
mCOLON(false);
{ // ( ... )*
for (;;) {
switch ( LA(1)) {
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
{
matchRange('a','f');
break;
}
case 0x30 /* '0' */ :
case 0x31 /* '1' */ :
case 0x32 /* '2' */ :
case 0x33 /* '3' */ :
case 0x34 /* '4' */ :
case 0x35 /* '5' */ :
case 0x36 /* '6' */ :
case 0x37 /* '7' */ :
case 0x38 /* '8' */ :
case 0x39 /* '9' */ :
{
matchRange('0','9');
break;
}
default:
{
goto _loop344;
}
}
}
_loop344:;
} // ( ... )*
}
else {
if ( _cnt345>=1 ) { goto _loop345; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt345++;
}
_loop345:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
#line 2463 "pix.g"
_ttype = IPV6;
#line 912 "PIXCfgLexer.cpp"
}
}
}
else {
bool synPredMatched302 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (true) && (true))) {
int _m302 = mark();
synPredMatched302 = true;
inputState->guessing++;
try {
{
mDIGIT(false);
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched302 = false;
}
rewind(_m302);
inputState->guessing--;
}
if ( synPredMatched302 ) {
{
bool synPredMatched311 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (_tokenSet_4.member(LA(2))) && (_tokenSet_4.member(LA(3))))) {
int _m311 = mark();
synPredMatched311 = true;
inputState->guessing++;
try {
{
mDIGIT(false);
{ // ( ... )+
int _cnt306=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt306>=1 ) { goto _loop306; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt306++;
}
_loop306:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt308=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt308>=1 ) { goto _loop308; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt308++;
}
_loop308:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt310=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt310>=1 ) { goto _loop310; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt310++;
}
_loop310:;
} // ( ... )+
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched304 = false;
synPredMatched311 = false;
}
rewind(_m304);
rewind(_m311);
inputState->guessing--;
}
if ( synPredMatched304 ) {
if ( synPredMatched311 ) {
{
bool synPredMatched313 = false;
{ // ( ... )+
int _cnt314=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt314>=1 ) { goto _loop314; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt314++;
}
_loop314:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt316=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt316>=1 ) { goto _loop316; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt316++;
}
_loop316:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt318=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt318>=1 ) { goto _loop318; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt318++;
}
_loop318:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt320=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt320>=1 ) { goto _loop320; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt320++;
}
_loop320:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
#line 2451 "pix.g"
_ttype = IPV4;
#line 1059 "PIXCfgLexer.cpp"
}
}
else {
bool synPredMatched326 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (_tokenSet_4.member(LA(2))) && (_tokenSet_4.member(LA(3))))) {
int _m313 = mark();
synPredMatched313 = true;
int _m326 = mark();
synPredMatched326 = true;
inputState->guessing++;
try {
{
{ // ( ... )+
int _cnt308=0;
int _cnt323=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt308>=1 ) { goto _loop308; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt323>=1 ) { goto _loop323; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt308++;
_cnt323++;
}
_loop308:;
_loop323:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt310=0;
int _cnt325=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt310>=1 ) { goto _loop310; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt325>=1 ) { goto _loop325; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt310++;
_cnt325++;
}
_loop310:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt312=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt312>=1 ) { goto _loop312; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt312++;
}
_loop312:;
_loop325:;
} // ( ... )+
}
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched313 = false;
synPredMatched326 = false;
}
rewind(_m313);
rewind(_m326);
inputState->guessing--;
}
if ( synPredMatched313 ) {
if ( synPredMatched326 ) {
{
{ // ( ... )+
int _cnt316=0;
int _cnt329=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt316>=1 ) { goto _loop316; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt329>=1 ) { goto _loop329; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt316++;
_cnt329++;
}
_loop316:;
_loop329:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt318=0;
int _cnt331=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt318>=1 ) { goto _loop318; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
if ( _cnt331>=1 ) { goto _loop331; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt318++;
_cnt331++;
}
_loop318:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt320=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt320>=1 ) { goto _loop320; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt320++;
}
_loop320:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt322=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt322>=1 ) { goto _loop322; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt322++;
}
_loop322:;
_loop331:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
#line 2453 "pix.g"
_ttype = IPV4;
#line 1128 "PIXCfgLexer.cpp"
#line 2454 "pix.g"
_ttype = NUMBER;
#line 1142 "PIXCfgLexer.cpp"
}
}
else {
bool synPredMatched328 = false;
if ((((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (_tokenSet_4.member(LA(2))) && (_tokenSet_4.member(LA(3))))) {
int _m328 = mark();
synPredMatched328 = true;
inputState->guessing++;
try {
{
{ // ( ... )+
int _cnt325=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt325>=1 ) { goto _loop325; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt325++;
}
_loop325:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt327=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt327>=1 ) { goto _loop327; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt327++;
}
_loop327:;
} // ( ... )+
}
else if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (true) && (true)) {
{ // ( ... )+
int _cnt333=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
catch (ANTLR_USE_NAMESPACE(antlr)RecognitionException& pe) {
synPredMatched328 = false;
else {
if ( _cnt333>=1 ) { goto _loop333; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
rewind(_m328);
inputState->guessing--;
_cnt333++;
}
if ( synPredMatched328 ) {
{
{ // ( ... )+
int _cnt331=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt331>=1 ) { goto _loop331; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt331++;
}
_loop331:;
} // ( ... )+
mDOT(false);
{ // ( ... )+
int _cnt333=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt333>=1 ) { goto _loop333; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt333++;
}
_loop333:;
} // ( ... )+
}
if ( inputState->guessing==0 ) {
_loop333:;
} // ( ... )+
if ( inputState->guessing==0 ) {
#line 2456 "pix.g"
_ttype = NUMBER;
#line 1211 "PIXCfgLexer.cpp"
}
_ttype = INT_CONST;
#line 1163 "PIXCfgLexer.cpp"
}
else if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ )) && (true) && (true)) {
{ // ( ... )+
int _cnt335=0;
for (;;) {
if (((LA(1) >= 0x30 /* '0' */ && LA(1) <= 0x39 /* '9' */ ))) {
mDIGIT(false);
}
else {
if ( _cnt335>=1 ) { goto _loop335; } else {throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
}
_cnt335++;
}
_loop335:;
} // ( ... )+
if ( inputState->guessing==0 ) {
#line 2458 "pix.g"
_ttype = INT_CONST;
#line 1232 "PIXCfgLexer.cpp"
}
}
else {
throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
}
}
}
else {
throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
}
else if ((_tokenSet_5.member(LA(1))) && (true) && (true)) {
{
}
}
}
else if ((_tokenSet_5.member(LA(1))) && (true) && (true)) {
{
switch ( LA(1)) {
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
case 0x67 /* 'g' */ :
case 0x68 /* 'h' */ :
case 0x69 /* 'i' */ :
case 0x6a /* 'j' */ :
case 0x6b /* 'k' */ :
case 0x6c /* 'l' */ :
case 0x6d /* 'm' */ :
case 0x6e /* 'n' */ :
case 0x6f /* 'o' */ :
case 0x70 /* 'p' */ :
case 0x71 /* 'q' */ :
case 0x72 /* 'r' */ :
case 0x73 /* 's' */ :
case 0x74 /* 't' */ :
case 0x75 /* 'u' */ :
case 0x76 /* 'v' */ :
case 0x77 /* 'w' */ :
case 0x78 /* 'x' */ :
case 0x79 /* 'y' */ :
case 0x7a /* 'z' */ :
{
matchRange('a','z');
break;
}
case 0x41 /* 'A' */ :
case 0x42 /* 'B' */ :
case 0x43 /* 'C' */ :
case 0x44 /* 'D' */ :
case 0x45 /* 'E' */ :
case 0x46 /* 'F' */ :
case 0x47 /* 'G' */ :
case 0x48 /* 'H' */ :
case 0x49 /* 'I' */ :
case 0x4a /* 'J' */ :
case 0x4b /* 'K' */ :
case 0x4c /* 'L' */ :
case 0x4d /* 'M' */ :
case 0x4e /* 'N' */ :
case 0x4f /* 'O' */ :
case 0x50 /* 'P' */ :
case 0x51 /* 'Q' */ :
case 0x52 /* 'R' */ :
case 0x53 /* 'S' */ :
case 0x54 /* 'T' */ :
case 0x55 /* 'U' */ :
case 0x56 /* 'V' */ :
case 0x57 /* 'W' */ :
case 0x58 /* 'X' */ :
case 0x59 /* 'Y' */ :
case 0x5a /* 'Z' */ :
{
matchRange('A','Z');
break;
}
case 0x24 /* '$' */ :
{
match('$' /* charlit */ );
break;
}
default:
{
throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
}
}
}
{ // ( ... )*
for (;;) {
switch ( LA(1)) {
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
case 0x67 /* 'g' */ :
case 0x68 /* 'h' */ :
case 0x69 /* 'i' */ :
case 0x6a /* 'j' */ :
case 0x6b /* 'k' */ :
case 0x6c /* 'l' */ :
case 0x6d /* 'm' */ :
case 0x6e /* 'n' */ :
case 0x6f /* 'o' */ :
case 0x70 /* 'p' */ :
case 0x71 /* 'q' */ :
case 0x72 /* 'r' */ :
case 0x73 /* 's' */ :
case 0x74 /* 't' */ :
case 0x75 /* 'u' */ :
case 0x76 /* 'v' */ :
case 0x77 /* 'w' */ :
case 0x78 /* 'x' */ :
case 0x79 /* 'y' */ :
case 0x7a /* 'z' */ :
case 0x21 /* '!' */ :
case 0x22 /* '\"' */ :
case 0x23 /* '#' */ :
case 0x24 /* '$' */ :
case 0x25 /* '%' */ :
case 0x26 /* '&' */ :
case 0x27 /* '\'' */ :
{
matchRange('a','z');
matchRange('!','\'');
break;
}
case 0x2a /* '*' */ :
{
match('*' /* charlit */ );
break;
}
case 0x2b /* '+' */ :
{
match('+' /* charlit */ );
break;
}
case 0x2d /* '-' */ :
{
match('-' /* charlit */ );
break;
}
case 0x2e /* '.' */ :
{
match('.' /* charlit */ );
break;
}
case 0x2f /* '/' */ :
{
match('/' /* charlit */ );
break;
}
case 0x30 /* '0' */ :
case 0x31 /* '1' */ :
case 0x32 /* '2' */ :
case 0x33 /* '3' */ :
case 0x34 /* '4' */ :
case 0x35 /* '5' */ :
case 0x36 /* '6' */ :
case 0x37 /* '7' */ :
case 0x38 /* '8' */ :
case 0x39 /* '9' */ :
{
matchRange('0','9');
break;
}
case 0x3a /* ':' */ :
{
match(':' /* charlit */ );
break;
}
case 0x3b /* ';' */ :
{
match(';' /* charlit */ );
break;
}
case 0x3c /* '<' */ :
{
match('<' /* charlit */ );
break;
}
case 0x3d /* '=' */ :
{
match('=' /* charlit */ );
break;
}
case 0x3e /* '>' */ :
{
match('>' /* charlit */ );
break;
}
case 0x3f /* '?' */ :
{
match('?' /* charlit */ );
break;
}
case 0x40 /* '@' */ :
{
match('@' /* charlit */ );
break;
}
case 0x41 /* 'A' */ :
@ -1300,203 +1360,74 @@ void PIXCfgLexer::mNUMBER_ADDRESS_OR_WORD(bool _createToken) {
matchRange('A','Z');
break;
}
case 0x24 /* '$' */ :
case 0x5c /* '\\' */ :
{
match('$' /* charlit */ );
match('\\' /* charlit */ );
break;
}
case 0x5e /* '^' */ :
{
match('^' /* charlit */ );
break;
}
case 0x5f /* '_' */ :
{
match('_' /* charlit */ );
break;
}
case 0x60 /* '`' */ :
{
match('`' /* charlit */ );
break;
}
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
case 0x67 /* 'g' */ :
case 0x68 /* 'h' */ :
case 0x69 /* 'i' */ :
case 0x6a /* 'j' */ :
case 0x6b /* 'k' */ :
case 0x6c /* 'l' */ :
case 0x6d /* 'm' */ :
case 0x6e /* 'n' */ :
case 0x6f /* 'o' */ :
case 0x70 /* 'p' */ :
case 0x71 /* 'q' */ :
case 0x72 /* 'r' */ :
case 0x73 /* 's' */ :
case 0x74 /* 't' */ :
case 0x75 /* 'u' */ :
case 0x76 /* 'v' */ :
case 0x77 /* 'w' */ :
case 0x78 /* 'x' */ :
case 0x79 /* 'y' */ :
case 0x7a /* 'z' */ :
{
matchRange('a','z');
break;
}
default:
{
throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
goto _loop348;
}
}
}
{ // ( ... )*
for (;;) {
switch ( LA(1)) {
case 0x21 /* '!' */ :
case 0x22 /* '\"' */ :
case 0x23 /* '#' */ :
case 0x24 /* '$' */ :
case 0x25 /* '%' */ :
case 0x26 /* '&' */ :
case 0x27 /* '\'' */ :
{
matchRange('!','\'');
break;
}
case 0x2a /* '*' */ :
{
match('*' /* charlit */ );
break;
}
case 0x2b /* '+' */ :
{
match('+' /* charlit */ );
break;
}
case 0x2d /* '-' */ :
{
match('-' /* charlit */ );
break;
}
case 0x2e /* '.' */ :
{
match('.' /* charlit */ );
break;
}
case 0x2f /* '/' */ :
{
match('/' /* charlit */ );
break;
}
case 0x30 /* '0' */ :
case 0x31 /* '1' */ :
case 0x32 /* '2' */ :
case 0x33 /* '3' */ :
case 0x34 /* '4' */ :
case 0x35 /* '5' */ :
case 0x36 /* '6' */ :
case 0x37 /* '7' */ :
case 0x38 /* '8' */ :
case 0x39 /* '9' */ :
{
matchRange('0','9');
break;
}
case 0x3a /* ':' */ :
{
match(':' /* charlit */ );
break;
}
case 0x3b /* ';' */ :
{
match(';' /* charlit */ );
break;
}
case 0x3c /* '<' */ :
{
match('<' /* charlit */ );
break;
}
case 0x3d /* '=' */ :
{
match('=' /* charlit */ );
break;
}
case 0x3e /* '>' */ :
{
match('>' /* charlit */ );
break;
}
case 0x3f /* '?' */ :
{
match('?' /* charlit */ );
break;
}
case 0x40 /* '@' */ :
{
match('@' /* charlit */ );
break;
}
case 0x41 /* 'A' */ :
case 0x42 /* 'B' */ :
case 0x43 /* 'C' */ :
case 0x44 /* 'D' */ :
case 0x45 /* 'E' */ :
case 0x46 /* 'F' */ :
case 0x47 /* 'G' */ :
case 0x48 /* 'H' */ :
case 0x49 /* 'I' */ :
case 0x4a /* 'J' */ :
case 0x4b /* 'K' */ :
case 0x4c /* 'L' */ :
case 0x4d /* 'M' */ :
case 0x4e /* 'N' */ :
case 0x4f /* 'O' */ :
case 0x50 /* 'P' */ :
case 0x51 /* 'Q' */ :
case 0x52 /* 'R' */ :
case 0x53 /* 'S' */ :
case 0x54 /* 'T' */ :
case 0x55 /* 'U' */ :
case 0x56 /* 'V' */ :
case 0x57 /* 'W' */ :
case 0x58 /* 'X' */ :
case 0x59 /* 'Y' */ :
case 0x5a /* 'Z' */ :
{
matchRange('A','Z');
break;
}
case 0x5c /* '\\' */ :
{
match('\\' /* charlit */ );
break;
}
case 0x5e /* '^' */ :
{
match('^' /* charlit */ );
break;
}
case 0x5f /* '_' */ :
{
match('_' /* charlit */ );
break;
}
case 0x60 /* '`' */ :
{
match('`' /* charlit */ );
break;
}
case 0x61 /* 'a' */ :
case 0x62 /* 'b' */ :
case 0x63 /* 'c' */ :
case 0x64 /* 'd' */ :
case 0x65 /* 'e' */ :
case 0x66 /* 'f' */ :
case 0x67 /* 'g' */ :
case 0x68 /* 'h' */ :
case 0x69 /* 'i' */ :
case 0x6a /* 'j' */ :
case 0x6b /* 'k' */ :
case 0x6c /* 'l' */ :
case 0x6d /* 'm' */ :
case 0x6e /* 'n' */ :
case 0x6f /* 'o' */ :
case 0x70 /* 'p' */ :
case 0x71 /* 'q' */ :
case 0x72 /* 'r' */ :
case 0x73 /* 's' */ :
case 0x74 /* 't' */ :
case 0x75 /* 'u' */ :
case 0x76 /* 'v' */ :
case 0x77 /* 'w' */ :
case 0x78 /* 'x' */ :
case 0x79 /* 'y' */ :
case 0x7a /* 'z' */ :
{
matchRange('a','z');
break;
}
default:
{
goto _loop355;
}
}
}
_loop355:;
} // ( ... )*
if ( inputState->guessing==0 ) {
#line 2483 "pix.g"
_ttype = WORD;
#line 1494 "PIXCfgLexer.cpp"
}
}
_loop348:;
} // ( ... )*
if ( inputState->guessing==0 ) {
#line 2471 "pix.g"
_ttype = WORD;
#line 1425 "PIXCfgLexer.cpp"
}
}
else {
throw ANTLR_USE_NAMESPACE(antlr)NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
}
}}
}
}
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {
_token = makeToken(_ttype);
@ -1532,11 +1463,11 @@ void PIXCfgLexer::mSTRING(bool _createToken) {
matchNot('\"' /* charlit */ );
}
else {
goto _loop358;
goto _loop351;
}
}
_loop358:;
_loop351:;
} // ( ... )*
match('\"' /* charlit */ );
if ( _createToken && _token==ANTLR_USE_NAMESPACE(antlr)nullToken && _ttype!=ANTLR_USE_NAMESPACE(antlr)Token::SKIP ) {

View File

@ -58,8 +58,6 @@ public:
protected: void mNEG_INT_CONST(bool _createToken);
protected: void mDIGIT(bool _createToken);
protected: void mHEXDIGIT(bool _createToken);
protected: void mOBJECT(bool _createToken);
protected: void mOBJECT_GROUP(bool _createToken);
public: void mNUMBER_ADDRESS_OR_WORD(bool _createToken);
public: void mDOT(bool _createToken);
public: void mSTRING(bool _createToken);

View File

@ -7155,7 +7155,7 @@ const char* PIXCfgParser::tokenNames[] = {
"\"pim\"",
"\"pptp\"",
"\"snp\"",
"OBJECT",
"\"object\"",
"\"network\"",
"\"description\"",
"\"host\"",
@ -7172,7 +7172,7 @@ const char* PIXCfgParser::tokenNames[] = {
"\"udp\"",
"\"source\"",
"\"destination\"",
"OBJECT_GROUP",
"\"object-group\"",
"\"group-object\"",
"\"network-object\"",
"\"protocol\"",
@ -7329,8 +7329,8 @@ const unsigned long PIXCfgParser::_tokenSet_0_data_[] = { 2UL, 0UL, 0UL, 0UL, 0U
// EOF
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_0(_tokenSet_0_data_,8);
const unsigned long PIXCfgParser::_tokenSet_1_data_[] = { 268441458UL, 2172657788UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "service"
// "http" "ssh" "telnet" "icmp" OBJECT_GROUP "crypto" "dns" "no" "certificate"
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "service"
// "http" "ssh" "telnet" "icmp" "object-group" "crypto" "dns" "no" "certificate"
// "PIX" "ASA" "hostname" "access-list" "interface" "controller" LINE_COMMENT
// "exit" "nameif" "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_1(_tokenSet_1_data_,12);
@ -7339,17 +7339,17 @@ const unsigned long PIXCfgParser::_tokenSet_2_data_[] = { 0UL, 128UL, 0UL, 46976
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_2(_tokenSet_2_data_,8);
const unsigned long PIXCfgParser::_tokenSet_3_data_[] = { 536854592UL, 10048UL, 512UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// "ip" "ah" "eigrp" "esp" "gre" "igmp" "igrp" "ipinip" "ipsec" "nos" "ospf"
// "pcp" "pim" "pptp" "snp" OBJECT "icmp" "icmp6" "tcp" "udp" OBJECT_GROUP
// "pcp" "pim" "pptp" "snp" "object" "icmp" "icmp6" "tcp" "udp" "object-group"
// "permit"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_3(_tokenSet_3_data_,8);
const unsigned long PIXCfgParser::_tokenSet_4_data_[] = { 536854592UL, 10048UL, 1024UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// "ip" "ah" "eigrp" "esp" "gre" "igmp" "igrp" "ipinip" "ipsec" "nos" "ospf"
// "pcp" "pim" "pptp" "snp" OBJECT "icmp" "icmp6" "tcp" "udp" OBJECT_GROUP
// "pcp" "pim" "pptp" "snp" "object" "icmp" "icmp6" "tcp" "udp" "object-group"
// "deny"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_4(_tokenSet_4_data_,8);
const unsigned long PIXCfgParser::_tokenSet_5_data_[] = { 3489666930UL, 2172657791UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// "host" "range" "subnet" "service" "http" "ssh" "telnet" "icmp" OBJECT_GROUP
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "host" "range" "subnet" "service" "http" "ssh" "telnet" "icmp" "object-group"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "interface" "controller" LINE_COMMENT "exit" "nameif" "access-group"
// COLON_COMMENT "nat" "global" "static"
@ -7362,7 +7362,7 @@ const unsigned long PIXCfgParser::_tokenSet_7_data_[] = { 1073741824UL, 6307840U
// "description" "group-object" "service-object" "port-object"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_7(_tokenSet_7_data_,8);
const unsigned long PIXCfgParser::_tokenSet_8_data_[] = { 2415921168UL, 8192UL, 0UL, 96UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE IPV4 OBJECT "host" OBJECT_GROUP "interface" "any"
// NEWLINE IPV4 "object" "host" "object-group" "interface" "any"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_8(_tokenSet_8_data_,8);
const unsigned long PIXCfgParser::_tokenSet_9_data_[] = { 16UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE
@ -7376,11 +7376,11 @@ const unsigned long PIXCfgParser::_tokenSet_11_data_[] = { 268419136UL, 128UL, 0
// "pcp" "pim" "pptp" "snp" INT_CONST
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_11(_tokenSet_11_data_,8);
const unsigned long PIXCfgParser::_tokenSet_12_data_[] = { 1342183282UL, 2172657788UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// "service" "http" "ssh" "telnet" "icmp" OBJECT_GROUP "crypto" "dns" "no"
// "certificate" "PIX" "ASA" "hostname" "access-list" "interface" "controller"
// LINE_COMMENT "exit" "nameif" "access-group" COLON_COMMENT "nat" "global"
// "static"
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "service" "http" "ssh" "telnet" "icmp" "object-group" "crypto" "dns"
// "no" "certificate" "PIX" "ASA" "hostname" "access-list" "interface"
// "controller" LINE_COMMENT "exit" "nameif" "access-group" COLON_COMMENT
// "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_12(_tokenSet_12_data_,12);
const unsigned long PIXCfgParser::_tokenSet_13_data_[] = { 16UL, 0UL, 0UL, 3146112UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE "log" "log-input" "fragments" "time-range"
@ -7389,40 +7389,40 @@ const unsigned long PIXCfgParser::_tokenSet_14_data_[] = { 16UL, 4097UL, 61440UL
// NEWLINE "range" "destination" "eq" "gt" "lt" "neq"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_14(_tokenSet_14_data_,8);
const unsigned long PIXCfgParser::_tokenSet_15_data_[] = { 2415921168UL, 12289UL, 323584UL, 3146208UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE IPV4 OBJECT "host" "range" "destination" OBJECT_GROUP "eq" "gt"
// "lt" "neq" "established" "interface" "any" "log" "log-input" "fragments"
// NEWLINE IPV4 "object" "host" "range" "destination" "object-group" "eq"
// "gt" "lt" "neq" "established" "interface" "any" "log" "log-input" "fragments"
// "time-range"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_15(_tokenSet_15_data_,8);
const unsigned long PIXCfgParser::_tokenSet_16_data_[] = { 1342183282UL, 2172706940UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// "service" "http" "ssh" "telnet" "icmp" OBJECT_GROUP "group-object" "network-object"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "interface" "controller" LINE_COMMENT "exit" "nameif" "access-group"
// COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_16(_tokenSet_16_data_,12);
const unsigned long PIXCfgParser::_tokenSet_17_data_[] = { 1342183282UL, 2172805244UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// "service" "http" "ssh" "telnet" "icmp" OBJECT_GROUP "group-object" "protocol-object"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "interface" "controller" LINE_COMMENT "exit" "nameif" "access-group"
// COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_17(_tokenSet_17_data_,12);
const unsigned long PIXCfgParser::_tokenSet_18_data_[] = { 1342183282UL, 2172936316UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// "service" "http" "ssh" "telnet" "icmp" OBJECT_GROUP "group-object" "icmp-object"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "interface" "controller" LINE_COMMENT "exit" "nameif" "access-group"
// COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_18(_tokenSet_18_data_,12);
const unsigned long PIXCfgParser::_tokenSet_19_data_[] = { 1342183282UL, 2178965628UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// "service" "http" "ssh" "telnet" "icmp" OBJECT_GROUP "group-object" "service-object"
// "port-object" "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname"
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "service" "http" "ssh" "telnet" "icmp" "object-group" "group-object"
// "network-object" "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname"
// "access-list" "interface" "controller" LINE_COMMENT "exit" "nameif"
// "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_16(_tokenSet_16_data_,12);
const unsigned long PIXCfgParser::_tokenSet_17_data_[] = { 1342183282UL, 2172805244UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "service" "http" "ssh" "telnet" "icmp" "object-group" "group-object"
// "protocol-object" "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname"
// "access-list" "interface" "controller" LINE_COMMENT "exit" "nameif"
// "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_17(_tokenSet_17_data_,12);
const unsigned long PIXCfgParser::_tokenSet_18_data_[] = { 1342183282UL, 2172936316UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "service" "http" "ssh" "telnet" "icmp" "object-group" "group-object"
// "icmp-object" "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname"
// "access-list" "interface" "controller" LINE_COMMENT "exit" "nameif"
// "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_18(_tokenSet_18_data_,12);
const unsigned long PIXCfgParser::_tokenSet_19_data_[] = { 1342183282UL, 2178965628UL, 167UL, 54525984UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "service" "http" "ssh" "telnet" "icmp" "object-group" "group-object"
// "service-object" "port-object" "crypto" "dns" "no" "certificate" "PIX"
// "ASA" "hostname" "access-list" "interface" "controller" LINE_COMMENT
// "exit" "nameif" "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_19(_tokenSet_19_data_,12);
const unsigned long PIXCfgParser::_tokenSet_20_data_[] = { 2415925264UL, 8321UL, 4294832128UL, 11534847UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE IPV4 WORD OBJECT "host" "range" INT_CONST OBJECT_GROUP "eq"
// NEWLINE IPV4 WORD "object" "host" "range" INT_CONST "object-group" "eq"
// "gt" "lt" "neq" "echo" "established" "alternate-address" "conversion-error"
// "echo-reply" "information-reply" "information-request" "mask-reply"
// "mask-request" "mobile-redirect" "parameter-problem" "redirect" "router-advertisement"
@ -7431,7 +7431,7 @@ const unsigned long PIXCfgParser::_tokenSet_20_data_[] = { 2415925264UL, 8321UL,
// "log-input" "fragments" "time-range" "outside"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_20(_tokenSet_20_data_,8);
const unsigned long PIXCfgParser::_tokenSet_21_data_[] = { 2415921152UL, 8192UL, 0UL, 96UL, 0UL, 0UL, 0UL, 0UL };
// IPV4 OBJECT "host" OBJECT_GROUP "interface" "any"
// IPV4 "object" "host" "object-group" "interface" "any"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_21(_tokenSet_21_data_,8);
const unsigned long PIXCfgParser::_tokenSet_22_data_[] = { 16UL, 0UL, 0UL, 1048960UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE "log" "log-input" "fragments"
@ -7440,8 +7440,8 @@ const unsigned long PIXCfgParser::_tokenSet_23_data_[] = { 16UL, 0UL, 0UL, 384UL
// NEWLINE "log" "log-input"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_23(_tokenSet_23_data_,8);
const unsigned long PIXCfgParser::_tokenSet_24_data_[] = { 268441616UL, 8193UL, 323584UL, 11534720UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE IPV4 WORD OBJECT "range" OBJECT_GROUP "eq" "gt" "lt" "neq" "established"
// "log" "log-input" "fragments" "time-range" "outside"
// NEWLINE IPV4 WORD "object" "range" "object-group" "eq" "gt" "lt" "neq"
// "established" "log" "log-input" "fragments" "time-range" "outside"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_24(_tokenSet_24_data_,8);
const unsigned long PIXCfgParser::_tokenSet_25_data_[] = { 0UL, 1UL, 61440UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// "range" "eq" "gt" "lt" "neq"
@ -7450,12 +7450,12 @@ const unsigned long PIXCfgParser::_tokenSet_26_data_[] = { 67112960UL, 176UL, 19
// WORD "pptp" "ssh" "telnet" INT_CONST "hostname" "echo" "rip"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_26(_tokenSet_26_data_,8);
const unsigned long PIXCfgParser::_tokenSet_27_data_[] = { 268435472UL, 8193UL, 323584UL, 3146112UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE OBJECT "range" OBJECT_GROUP "eq" "gt" "lt" "neq" "established"
// NEWLINE "object" "range" "object-group" "eq" "gt" "lt" "neq" "established"
// "log" "log-input" "fragments" "time-range"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_27(_tokenSet_27_data_,8);
const unsigned long PIXCfgParser::_tokenSet_28_data_[] = { 335550322UL, 2172657917UL, 520359UL, 58720160UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "pptp" OBJECT
// "range" "service" "http" "ssh" "telnet" "icmp" INT_CONST OBJECT_GROUP
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "pptp" "object"
// "range" "service" "http" "ssh" "telnet" "icmp" INT_CONST "object-group"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "eq" "gt" "lt" "neq" "echo" "rip" "established" "interface" "log" "log-input"
// "alerts" "critical" "debugging" "emergencies" "errors" "informational"
@ -7464,8 +7464,8 @@ const unsigned long PIXCfgParser::_tokenSet_28_data_[] = { 335550322UL, 21726579
// COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_28(_tokenSet_28_data_,12);
const unsigned long PIXCfgParser::_tokenSet_29_data_[] = { 335550322UL, 2172657916UL, 196775UL, 58720160UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "pptp" OBJECT
// "service" "http" "ssh" "telnet" "icmp" INT_CONST OBJECT_GROUP "crypto"
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "pptp" "object"
// "service" "http" "ssh" "telnet" "icmp" INT_CONST "object-group" "crypto"
// "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list" "echo"
// "rip" "interface" "log" "log-input" "alerts" "critical" "debugging"
// "emergencies" "errors" "informational" "notifications" "warnings" "disable"
@ -7473,23 +7473,23 @@ const unsigned long PIXCfgParser::_tokenSet_29_data_[] = { 335550322UL, 21726579
// "exit" "nameif" "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_29(_tokenSet_29_data_,12);
const unsigned long PIXCfgParser::_tokenSet_30_data_[] = { 2415921152UL, 8193UL, 61440UL, 96UL, 0UL, 0UL, 0UL, 0UL };
// IPV4 OBJECT "host" "range" OBJECT_GROUP "eq" "gt" "lt" "neq" "interface"
// IPV4 "object" "host" "range" "object-group" "eq" "gt" "lt" "neq" "interface"
// "any"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_30(_tokenSet_30_data_,8);
const unsigned long PIXCfgParser::_tokenSet_31_data_[] = { 335550480UL, 8369UL, 520224UL, 11534720UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE IPV4 WORD "pptp" OBJECT "range" "ssh" "telnet" INT_CONST OBJECT_GROUP
// NEWLINE IPV4 WORD "pptp" "object" "range" "ssh" "telnet" INT_CONST "object-group"
// "hostname" "eq" "gt" "lt" "neq" "echo" "rip" "established" "log" "log-input"
// "fragments" "time-range" "outside"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_31(_tokenSet_31_data_,8);
const unsigned long PIXCfgParser::_tokenSet_32_data_[] = { 2483042320UL, 16791217UL, 520352UL, 3146208UL, 0UL, 5UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// NEWLINE IPV4 WORD IPV6 "pptp" OBJECT "host" "range" "ssh" "telnet" INT_CONST
// "tcp" "udp" "destination" OBJECT_GROUP "dns" "hostname" "access-list"
// "eq" "gt" "lt" "neq" "echo" "rip" "established" "interface" "any" "log"
// "log-input" "fragments" "time-range" "netmask" "norandomseq"
// NEWLINE IPV4 WORD IPV6 "pptp" "object" "host" "range" "ssh" "telnet"
// INT_CONST "tcp" "udp" "destination" "object-group" "dns" "hostname"
// "access-list" "eq" "gt" "lt" "neq" "echo" "rip" "established" "interface"
// "any" "log" "log-input" "fragments" "time-range" "netmask" "norandomseq"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_32(_tokenSet_32_data_,12);
const unsigned long PIXCfgParser::_tokenSet_33_data_[] = { 2415927154UL, 2172657917UL, 4294832295UL, 66060799UL, 1996488705UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" IPV4 WORD OBJECT "host"
// "range" "service" "http" "ssh" "telnet" "icmp" INT_CONST OBJECT_GROUP
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" IPV4 WORD "object"
// "host" "range" "service" "http" "ssh" "telnet" "icmp" INT_CONST "object-group"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "eq" "gt" "lt" "neq" "echo" "established" "alternate-address" "conversion-error"
// "echo-reply" "information-reply" "information-request" "mask-reply"
@ -7520,9 +7520,9 @@ const unsigned long PIXCfgParser::_tokenSet_38_data_[] = { 16UL, 16778880UL, 0UL
// NEWLINE INT_CONST "tcp" "udp" "dns" "outside"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_38(_tokenSet_38_data_,8);
const unsigned long PIXCfgParser::_tokenSet_39_data_[] = { 3489666930UL, 2172659455UL, 167UL, 62914592UL, 1191182337UL, 2UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD OBJECT "description"
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" WORD "object" "description"
// "host" "range" "subnet" "service" "http" "ssh" "telnet" "icmp" INT_CONST
// "tcp" "udp" OBJECT_GROUP "crypto" "dns" "no" "certificate" "PIX" "ASA"
// "tcp" "udp" "object-group" "crypto" "dns" "no" "certificate" "PIX" "ASA"
// "hostname" "access-list" "interface" "controller" "outside" LINE_COMMENT
// "exit" "nameif" "access-group" COLON_COMMENT "nat" "global" "static"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_39(_tokenSet_39_data_,12);
@ -7541,11 +7541,11 @@ const unsigned long PIXCfgParser::_tokenSet_43_data_[] = { 16UL, 16778880UL, 0UL
// NEWLINE INT_CONST "tcp" "udp" "dns" "netmask" "norandomseq"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_43(_tokenSet_43_data_,12);
const unsigned long PIXCfgParser::_tokenSet_44_data_[] = { 268443506UL, 2172659452UL, 167UL, 54525984UL, 1191182337UL, 7UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL };
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" IPV4 WORD OBJECT "service"
// "http" "ssh" "telnet" "icmp" INT_CONST "tcp" "udp" OBJECT_GROUP "crypto"
// "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list" "interface"
// "controller" LINE_COMMENT "exit" "nameif" "access-group" COLON_COMMENT
// "nat" "global" "netmask" "static" "norandomseq"
// EOF NEWLINE "quit" "ip" "timeout" "names" "name" IPV4 WORD "object"
// "service" "http" "ssh" "telnet" "icmp" INT_CONST "tcp" "udp" "object-group"
// "crypto" "dns" "no" "certificate" "PIX" "ASA" "hostname" "access-list"
// "interface" "controller" LINE_COMMENT "exit" "nameif" "access-group"
// COLON_COMMENT "nat" "global" "netmask" "static" "norandomseq"
const ANTLR_USE_NAMESPACE(antlr)BitSet PIXCfgParser::_tokenSet_44(_tokenSet_44_data_,12);

View File

@ -24,7 +24,7 @@ PCP="pcp"=24
PIM="pim"=25
PPTP="pptp"=26
SNP="snp"=27
OBJECT=28
OBJECT="object"=28
NETWORK="network"=29
DESCRIPTION="description"=30
HOST="host"=31
@ -41,7 +41,7 @@ TCP="tcp"=41
UDP="udp"=42
SOURCE="source"=43
DESTINATION="destination"=44
OBJECT_GROUP=45
OBJECT_GROUP="object-group"=45
GROUP_OBJECT="group-object"=46
NETWORK_OBJECT="network-object"=47
PROTOCOL="protocol"=48

View File

@ -2400,6 +2400,9 @@ tokens
NAME = "name";
NAMES = "names";
NAMEIF = "nameif";
OBJECT = "object";
OBJECT_GROUP = "object-group";
}
LINE_COMMENT : "!" (~('\r' | '\n'))* NEWLINE ;
@ -2436,11 +2439,6 @@ DIGIT : '0'..'9' ;
protected
HEXDIGIT : 'a'..'f' ;
protected
OBJECT :;
protected
OBJECT_GROUP :;
@ -2465,16 +2463,6 @@ NUMBER_ADDRESS_OR_WORD :
{ _ttype = IPV6; }
)
|
("obj" "ect") =>
(
"object"
(
("-gr" "oup") { _ttype = OBJECT_GROUP; }
|
"" { _ttype = OBJECT; }
)
)
|
// making sure ',' '(' ')' are not part of WORD
( 'a'..'z' | 'A'..'Z' | '$' )
( '!'..'\'' | '*' | '+' | '-' | '.' | '/' | '0'..'9' | ':' |

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE FWObjectDatabase SYSTEM "fwbuilder.dtd">
<FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/" version="18" lastModified="1302225304" id="root">
<FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/" version="18" lastModified="1302225616" id="root">
<Library id="syslib000" color="#d4f8ff" name="Standard" comment="Standard objects" ro="True">
<AnyNetwork id="sysid0" name="Any" comment="Any Network" ro="False" address="0.0.0.0" netmask="0.0.0.0"/>
<AnyIPService id="sysid1" protocol_num="0" name="Any" comment="Any IP Service" ro="False"/>
@ -432,30 +432,30 @@
<Library id="id0" name="User" comment="" ro="False">
<ObjectGroup id="id1" name="Objects" comment="" ro="False">
<ObjectGroup id="id2" name="Addresses" comment="" ro="False">
<IPv4 id="id3" name="h-192.168.2.240" comment="Created during import of line 50" ro="False" address="192.168.2.240" netmask="255.255.255.255"/>
<IPv4 id="id4" name="h-10.1.1.202" comment="Created during import of line 79" ro="False" address="10.1.1.202" netmask="255.255.255.255"/>
<IPv4 id="id3" name="h-192.168.2.240" comment="Created during import of line 51" ro="False" address="192.168.2.240" netmask="255.255.255.255"/>
<IPv4 id="id4" name="h-10.1.1.202" comment="Created during import of line 80" ro="False" address="10.1.1.202" netmask="255.255.255.255"/>
</ObjectGroup>
<ObjectGroup id="id5" name="DNS Names" comment="" ro="False"/>
<ObjectGroup id="id6" name="Address Tables" comment="" ro="False"/>
<ObjectGroup id="id7" name="Groups" comment="" ro="False">
<ObjectGroup id="id8" name="net_1_group" comment="Created during import of line 43" ro="False">
<ObjectGroup id="id8" name="net_1_group" comment="Created during import of line 44" ro="False">
<ObjectRef ref="id26"/>
<ObjectRef ref="id27"/>
</ObjectGroup>
<ObjectGroup id="id11" name="another_group_net_1" comment="Created during import of line 46" ro="False">
<ObjectGroup id="id11" name="another_group_net_1" comment="Created during import of line 47" ro="False">
<ObjectRef ref="id26"/>
<ObjectRef ref="id28"/>
</ObjectGroup>
<ObjectGroup id="id14" name="host_net_1" comment="Created during import of line 49" ro="False">
<ObjectGroup id="id14" name="host_net_1" comment="Created during import of line 50" ro="False">
<ObjectRef ref="id3"/>
</ObjectGroup>
<ObjectGroup id="id16" name="host_net_2" comment="Created during import of line 52" ro="False">
<ObjectGroup id="id16" name="host_net_2" comment="Created during import of line 53" ro="False">
<ObjectRef ref="id3"/>
</ObjectGroup>
<ObjectGroup id="id18" name="net-1" comment="single network object-group &#10;Created during import of line 56" ro="False">
<ObjectGroup id="id18" name="net-1" comment="single network object-group &#10;Created during import of line 57" ro="False">
<ObjectRef ref="id27"/>
</ObjectGroup>
<ObjectGroup id="id20" name="net-2" comment="multiple network-object object s &#10;Created during import of line 59" ro="False">
<ObjectGroup id="id20" name="net-2" comment="multiple network-object objects &#10;Created during import of line 60" ro="False">
<ObjectRef ref="id29"/>
<ObjectRef ref="id27"/>
<ObjectRef ref="id28"/>
@ -463,30 +463,30 @@
</ObjectGroup>
<ObjectGroup id="id24" name="Hosts" comment="" ro="False"/>
<ObjectGroup id="id25" name="Networks" comment="" ro="False">
<Network id="id26" name="net-192.168.2.240/255.255.255.240" comment="Created during import of line 44" ro="False" address="192.168.2.240" netmask="255.255.255.240"/>
<Network id="id27" name="net-192.168.2.0/255.255.255.0" comment="Created during import of line 45" ro="False" address="192.168.2.0" netmask="255.255.255.0"/>
<Network id="id28" name="net-192.168.3.0/255.255.255.0" comment="Created during import of line 48" ro="False" address="192.168.3.0" netmask="255.255.255.0"/>
<Network id="id29" name="net-192.168.1.0/255.255.255.0" comment="Created during import of line 60" ro="False" address="192.168.1.0" netmask="255.255.255.0"/>
<Network id="id30" name="net-10.1.1.0/255.255.255.0" comment="Created during import of line 87" ro="False" address="10.1.1.0" netmask="255.255.255.0"/>
<Network id="id26" name="net-192.168.2.240/255.255.255.240" comment="Created during import of line 45" ro="False" address="192.168.2.240" netmask="255.255.255.240"/>
<Network id="id27" name="net-192.168.2.0/255.255.255.0" comment="Created during import of line 46" ro="False" address="192.168.2.0" netmask="255.255.255.0"/>
<Network id="id28" name="net-192.168.3.0/255.255.255.0" comment="Created during import of line 49" ro="False" address="192.168.3.0" netmask="255.255.255.0"/>
<Network id="id29" name="net-192.168.1.0/255.255.255.0" comment="Created during import of line 61" ro="False" address="192.168.1.0" netmask="255.255.255.0"/>
<Network id="id30" name="net-10.1.1.0/255.255.255.0" comment="Created during import of line 88" ro="False" address="10.1.1.0" netmask="255.255.255.0"/>
</ObjectGroup>
<ObjectGroup id="id31" name="Address Ranges" comment="" ro="False"/>
</ObjectGroup>
<ServiceGroup id="id32" name="Services" comment="" ro="False">
<ServiceGroup id="id33" name="Groups" comment="" ro="False"/>
<ServiceGroup id="id34" name="ICMP" comment="" ro="False">
<ICMPService id="id35" code="-1" type="8" name="icmp 8/-1" comment="Created during import of line 73" ro="False"/>
<ICMPService id="id36" code="0" type="111" name="icmp 111/0" comment="Created during import of line 74" ro="False"/>
<ICMPService id="id37" code="0" type="11" name="icmp 11/0" comment="Created during import of line 75" ro="False"/>
<ICMPService id="id38" code="0" type="0" name="icmp 0/0" comment="Created during import of line 76" ro="False"/>
<ICMPService id="id39" code="-1" type="3" name="icmp 3/-1" comment="Created during import of line 77" ro="False"/>
<ICMPService id="id40" code="-1" type="-1" name="icmp -1/-1" comment="Created during import of line 78" ro="False"/>
<ICMPService id="id35" code="-1" type="8" name="icmp 8/-1" comment="Created during import of line 74" ro="False"/>
<ICMPService id="id36" code="0" type="111" name="icmp 111/0" comment="Created during import of line 75" ro="False"/>
<ICMPService id="id37" code="0" type="11" name="icmp 11/0" comment="Created during import of line 76" ro="False"/>
<ICMPService id="id38" code="0" type="0" name="icmp 0/0" comment="Created during import of line 77" ro="False"/>
<ICMPService id="id39" code="-1" type="3" name="icmp 3/-1" comment="Created during import of line 78" ro="False"/>
<ICMPService id="id40" code="-1" type="-1" name="icmp -1/-1" comment="Created during import of line 79" ro="False"/>
</ServiceGroup>
<ServiceGroup id="id41" name="IP" comment="" ro="False">
<IPService id="id42" any_opt="False" dscp="" fragm="False" lsrr="False" protocol_num="0" rr="False" rtralt="False" rtralt_value="False" short_fragm="False" ssrr="False" tos="" ts="False" name="ip" comment="Created during import of line 64" ro="False"/>
<IPService id="id42" any_opt="False" dscp="" fragm="False" lsrr="False" protocol_num="0" rr="False" rtralt="False" rtralt_value="False" short_fragm="False" ssrr="False" tos="" ts="False" name="ip" comment="Created during import of line 65" ro="False"/>
</ServiceGroup>
<ServiceGroup id="id43" name="TCP" comment="" ro="False">
<TCPService id="id44" ack_flag="False" ack_flag_mask="False" established="False" fin_flag="False" fin_flag_mask="False" psh_flag="False" psh_flag_mask="False" rst_flag="False" rst_flag_mask="False" syn_flag="False" syn_flag_mask="False" urg_flag="False" urg_flag_mask="False" name="tcp 0:0 / 23:23" comment="Created during import of line 100" ro="False" src_range_start="0" src_range_end="0" dst_range_start="23" dst_range_end="23"/>
<TCPService id="id45" ack_flag="False" ack_flag_mask="False" established="False" fin_flag="False" fin_flag_mask="False" psh_flag="False" psh_flag_mask="False" rst_flag="False" rst_flag_mask="False" syn_flag="False" syn_flag_mask="False" urg_flag="False" urg_flag_mask="False" name="tcp 0:0 / 22:22" comment="Created during import of line 102" ro="False" src_range_start="0" src_range_end="0" dst_range_start="22" dst_range_end="22"/>
<TCPService id="id44" ack_flag="False" ack_flag_mask="False" established="False" fin_flag="False" fin_flag_mask="False" psh_flag="False" psh_flag_mask="False" rst_flag="False" rst_flag_mask="False" syn_flag="False" syn_flag_mask="False" urg_flag="False" urg_flag_mask="False" name="tcp 0:0 / 23:23" comment="Created during import of line 101" ro="False" src_range_start="0" src_range_end="0" dst_range_start="23" dst_range_end="23"/>
<TCPService id="id45" ack_flag="False" ack_flag_mask="False" established="False" fin_flag="False" fin_flag_mask="False" psh_flag="False" psh_flag_mask="False" rst_flag="False" rst_flag_mask="False" syn_flag="False" syn_flag_mask="False" urg_flag="False" urg_flag_mask="False" name="tcp 0:0 / 22:22" comment="Created during import of line 103" ro="False" src_range_start="0" src_range_end="0" dst_range_start="22" dst_range_end="22"/>
</ServiceGroup>
<ServiceGroup id="id46" name="UDP" comment="" ro="False"/>
<ServiceGroup id="id47" name="Users" comment="" ro="False"/>
@ -499,7 +499,7 @@
<RuleSetOptions/>
</NAT>
<Policy id="id53" name="Policy" comment="" ro="False" ipv4_rule_set="False" ipv6_rule_set="False" top_rule_set="True">
<PolicyRule id="id55" disabled="False" group="" log="False" position="0" action="Accept" direction="Inbound" comment="Imported from telnet_commands_inside&#10;Created during import of line 100">
<PolicyRule id="id55" disabled="False" group="" log="False" position="0" action="Accept" direction="Inbound" comment="Imported from telnet_commands_inside&#10;Created during import of line 101">
<Src neg="False">
<ObjectRef ref="id27"/>
</Src>
@ -519,7 +519,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id67" disabled="False" group="" log="False" position="1" action="Accept" direction="Inbound" comment="Imported from ssh_commands_inside&#10;Created during import of line 102">
<PolicyRule id="id67" disabled="False" group="" log="False" position="1" action="Accept" direction="Inbound" comment="Imported from ssh_commands_inside&#10;Created during import of line 103">
<Src neg="False">
<ObjectRef ref="id27"/>
</Src>
@ -539,7 +539,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id79" disabled="False" group="" log="False" position="2" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 73">
<PolicyRule id="id79" disabled="False" group="" log="False" position="2" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 74">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -559,7 +559,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id91" disabled="False" group="" log="False" position="3" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 74">
<PolicyRule id="id91" disabled="False" group="" log="False" position="3" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 75">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -579,7 +579,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id103" disabled="False" group="" log="False" position="4" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 75">
<PolicyRule id="id103" disabled="False" group="" log="False" position="4" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 76">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -599,7 +599,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id115" disabled="False" group="" log="False" position="5" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 76">
<PolicyRule id="id115" disabled="False" group="" log="False" position="5" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 77">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -619,7 +619,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id127" disabled="False" group="" log="False" position="6" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 77">
<PolicyRule id="id127" disabled="False" group="" log="False" position="6" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 78">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -639,7 +639,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id139" disabled="False" group="" log="False" position="7" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 78">
<PolicyRule id="id139" disabled="False" group="" log="False" position="7" action="Accept" direction="Inbound" comment="Imported from icmp_commands_outside&#10;Created during import of line 79">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -659,7 +659,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id151" disabled="False" group="" log="False" position="8" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 79">
<PolicyRule id="id151" disabled="False" group="" log="False" position="8" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 80">
<Src neg="False">
<ObjectRef ref="id4"/>
</Src>
@ -679,7 +679,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id163" disabled="False" group="" log="False" position="9" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 80">
<PolicyRule id="id163" disabled="False" group="" log="False" position="9" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 81">
<Src neg="False">
<ObjectRef ref="id4"/>
</Src>
@ -699,7 +699,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id175" disabled="False" group="" log="False" position="10" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 81">
<PolicyRule id="id175" disabled="False" group="" log="False" position="10" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 82">
<Src neg="False">
<ObjectRef ref="id4"/>
</Src>
@ -719,7 +719,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id187" disabled="False" group="" log="False" position="11" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 82">
<PolicyRule id="id187" disabled="False" group="" log="False" position="11" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 83">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -739,7 +739,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id199" disabled="False" group="" log="False" position="12" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 83">
<PolicyRule id="id199" disabled="False" group="" log="False" position="12" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 84">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -759,7 +759,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id211" disabled="False" group="" log="False" position="13" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 84">
<PolicyRule id="id211" disabled="False" group="" log="False" position="13" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 85">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -779,7 +779,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id223" disabled="False" group="" log="False" position="14" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 85">
<PolicyRule id="id223" disabled="False" group="" log="False" position="14" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 86">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -799,7 +799,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id235" disabled="False" group="" log="False" position="15" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 86">
<PolicyRule id="id235" disabled="False" group="" log="False" position="15" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 87">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -819,7 +819,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id247" disabled="False" group="" log="False" position="16" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 87">
<PolicyRule id="id247" disabled="False" group="" log="False" position="16" action="Accept" direction="Inbound" comment="Imported from icmp_commands_inside&#10;Created during import of line 88">
<Src neg="False">
<ObjectRef ref="id30"/>
</Src>
@ -839,7 +839,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id259" disabled="False" group="" log="False" position="17" action="Accept" direction="Inbound" comment="Imported from inside_in&#10;Created during import of line 64">
<PolicyRule id="id259" disabled="False" group="" log="False" position="17" action="Accept" direction="Inbound" comment="Imported from inside_in&#10;Created during import of line 65">
<Src neg="False">
<ObjectRef ref="id27"/>
</Src>
@ -859,7 +859,7 @@
<Option name="stateless">False</Option>
</PolicyRuleOptions>
</PolicyRule>
<PolicyRule id="id271" disabled="False" group="" log="True" position="18" action="Deny" direction="Inbound" comment="Imported from inside_in&#10;Created during import of line 65">
<PolicyRule id="id271" disabled="False" group="" log="True" position="18" action="Deny" direction="Inbound" comment="Imported from inside_in&#10;Created during import of line 66">
<Src neg="False">
<ObjectRef ref="sysid0"/>
</Src>
@ -885,12 +885,12 @@
<Routing id="id285" name="Routing" comment="" ro="False" ipv4_rule_set="False" ipv6_rule_set="False" top_rule_set="True">
<RuleSetOptions/>
</Routing>
<Interface id="id287" dedicated_failover="False" dyn="False" label="inside" security_level="100" unnum="False" unprotected="False" name="Ethernet0" comment="Created during import of line 13" ro="False">
<IPv4 id="id288" name="pixfirewall:Ethernet0:ip" comment="Created during import of line 15" ro="False" address="192.168.2.221" netmask="255.255.255.0"/>
<Interface id="id287" dedicated_failover="False" dyn="False" label="inside" security_level="100" unnum="False" unprotected="False" name="Ethernet0" comment="Created during import of line 14" ro="False">
<IPv4 id="id288" name="pixfirewall:Ethernet0:ip" comment="Created during import of line 16" ro="False" address="192.168.2.221" netmask="255.255.255.0"/>
<InterfaceOptions/>
</Interface>
<Interface id="id290" dedicated_failover="False" dyn="False" label="outside" security_level="0" unnum="False" unprotected="False" name="Ethernet1" comment="Created during import of line 18" ro="False">
<IPv4 id="id291" name="pixfirewall:Ethernet1:ip" comment="Created during import of line 20" ro="False" address="192.0.2.221" netmask="255.255.255.0"/>
<Interface id="id290" dedicated_failover="False" dyn="False" label="outside" security_level="0" unnum="False" unprotected="False" name="Ethernet1" comment="Created during import of line 19" ro="False">
<IPv4 id="id291" name="pixfirewall:Ethernet1:ip" comment="Created during import of line 21" ro="False" address="192.0.2.221" netmask="255.255.255.0"/>
<InterfaceOptions/>
</Interface>
<FirewallOptions>

View File

@ -1,30 +1,28 @@
3: Version: 8.0
5: Host name: pixfirewall
13: New interface: Ethernet0
13: Interface parameters: inside
13: Interface label: inside
15: Interface address: 192.168.2.221/255.255.255.0
18: New interface: Ethernet1
18: Interface parameters: outside
18: Interface label: outside
20: Interface address: 192.0.2.221/255.255.255.0
23: New interface: Ethernet2
14: New interface: Ethernet0
14: Interface parameters: inside
14: Interface label: inside
16: Interface address: 192.168.2.221/255.255.255.0
19: New interface: Ethernet1
19: Interface parameters: outside
19: Interface label: outside
21: Interface address: 192.0.2.221/255.255.255.0
24: New interface: Ethernet2
Warning: interface Ethernet2 was not imported because it is in "shutdown" mode
29: New interface: Ethernet3
30: New interface: Ethernet3
Warning: interface Ethernet3 was not imported because it is in "shutdown" mode
35: New interface: Ethernet4
36: New interface: Ethernet4
Warning: interface Ethernet4 was not imported because it is in "shutdown" mode
43: Object Group (network) net_1_group
46: Object Group (network) another_group_net_1
49: Object Group (network) host_net_1
52: Object Group (network) host_net_2
55: Object Group (network) net-1
58: Object Group (network) net-2
64: filtering rule: access list inside_in, action permit
65: filtering rule: access list inside_in, action deny
67: Interface Ethernet0 ruleset inside_in direction 'in'
73: Interface Ethernet1 ruleset icmp_commands_outside direction 'in'
73: filtering rule: access list icmp_commands_outside, action permit
44: Object Group (network) net_1_group
47: Object Group (network) another_group_net_1
50: Object Group (network) host_net_1
53: Object Group (network) host_net_2
56: Object Group (network) net-1
59: Object Group (network) net-2
65: filtering rule: access list inside_in, action permit
66: filtering rule: access list inside_in, action deny
68: Interface Ethernet0 ruleset inside_in direction 'in'
74: Interface Ethernet1 ruleset icmp_commands_outside direction 'in'
74: filtering rule: access list icmp_commands_outside, action permit
75: Interface Ethernet1 ruleset icmp_commands_outside direction 'in'
@ -35,8 +33,8 @@ Warning: interface Ethernet4 was not imported because it is in "shutdown" mode
77: filtering rule: access list icmp_commands_outside, action permit
78: Interface Ethernet1 ruleset icmp_commands_outside direction 'in'
78: filtering rule: access list icmp_commands_outside, action permit
79: Interface Ethernet0 ruleset icmp_commands_inside direction 'in'
79: filtering rule: access list icmp_commands_inside, action permit
79: Interface Ethernet1 ruleset icmp_commands_outside direction 'in'
79: filtering rule: access list icmp_commands_outside, action permit
80: Interface Ethernet0 ruleset icmp_commands_inside direction 'in'
80: filtering rule: access list icmp_commands_inside, action permit
81: Interface Ethernet0 ruleset icmp_commands_inside direction 'in'
@ -53,7 +51,9 @@ Warning: interface Ethernet4 was not imported because it is in "shutdown" mode
86: filtering rule: access list icmp_commands_inside, action permit
87: Interface Ethernet0 ruleset icmp_commands_inside direction 'in'
87: filtering rule: access list icmp_commands_inside, action permit
100: Interface Ethernet0 ruleset telnet_commands_inside direction 'in'
100: filtering rule: access list telnet_commands_inside, action permit
102: Interface Ethernet0 ruleset ssh_commands_inside direction 'in'
102: filtering rule: access list ssh_commands_inside, action permit
88: Interface Ethernet0 ruleset icmp_commands_inside direction 'in'
88: filtering rule: access list icmp_commands_inside, action permit
101: Interface Ethernet0 ruleset telnet_commands_inside direction 'in'
101: filtering rule: access list telnet_commands_inside, action permit
103: Interface Ethernet0 ruleset ssh_commands_inside direction 'in'
103: filtering rule: access list ssh_commands_inside, action permit

View File

@ -9,6 +9,7 @@ name 192.168.2.0 inside_network
name 192.168.2.221 inside_ip
name 192.168.2.240 net_1
name 1.1.1.1 named-host-1
name 1.2.3.4 object-1234
!
interface Ethernet0
nameif inside

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE FWObjectDatabase SYSTEM "fwbuilder.dtd">
<FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/" version="18" lastModified="1301451903" id="root">
<FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/" version="18" lastModified="1302225452" id="root">
<Library id="syslib000" color="#d4f8ff" name="Standard" comment="Standard objects" ro="True">
<AnyNetwork id="sysid0" name="Any" comment="Any Network" ro="False" address="0.0.0.0" netmask="0.0.0.0"/>
<AnyIPService id="sysid1" protocol_num="0" name="Any" comment="Any IP Service" ro="False"/>
@ -444,7 +444,7 @@
<ObjectGroup id="id11" name="net-1" comment="single network object-group &#10;Created during import of line 40" ro="False">
<ObjectRef ref="id29"/>
</ObjectGroup>
<ObjectGroup id="id13" name="net-2" comment="multiple network-object object s &#10;Created during import of line 43" ro="False">
<ObjectGroup id="id13" name="net-2" comment="multiple network-object objects &#10;Created during import of line 43" ro="False">
<ObjectRef ref="id30"/>
<ObjectRef ref="id29"/>
<ObjectRef ref="id31"/>
@ -452,7 +452,7 @@
<ObjectGroup id="id17" name="host-1" comment="Created during import of line 47" ro="False">
<ObjectRef ref="id3"/>
</ObjectGroup>
<ObjectGroup id="id19" name="mixed-1" comment="mix of object s network-objects host object s &#10;Created during import of line 50" ro="False">
<ObjectGroup id="id19" name="mixed-1" comment="mix of objects network-objects host objects &#10;Created during import of line 50" ro="False">
<ObjectRef ref="id3"/>
<ObjectRef ref="id32"/>
<ObjectRef ref="id4"/>
@ -479,7 +479,7 @@
<ServiceGroup id="id38" name="tcp-1" comment="Created during import of line 58" ro="False">
<ServiceRef ref="id99"/>
</ServiceGroup>
<ServiceGroup id="id40" name="mixed-service-1" comment="mix of service tcp &amp; udp object s &#10;Created during import of line 61" ro="False">
<ServiceGroup id="id40" name="mixed-service-1" comment="mix of service tcp &amp; udp objects &#10;Created during import of line 61" ro="False">
<ServiceRef ref="id100"/>
<ServiceRef ref="id108"/>
<ServiceRef ref="id101"/>