[ipfilter-cvs] ipfilter/tools ipnat_y.y,v5-1-RELEASE
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2014-06-17 11:53:47
|
Update of /cvsroot/ipfilter/ipfilter/tools In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28471/tools Modified Files: Tag: v5-1-RELEASE ipnat_y.y Log Message: #552 destination port not zero after parsing nat rule Index: ipnat_y.y =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/tools/ipnat_y.y,v retrieving revision 1.19.2.16 retrieving revision 1.19.2.17 diff -C2 -d -r1.19.2.16 -r1.19.2.17 *** ipnat_y.y 9 Jun 2014 15:51:27 -0000 1.19.2.16 --- ipnat_y.y 17 Jun 2014 11:53:44 -0000 1.19.2.17 *************** *** 1057,1061 **** portstuff: ! compare portspec { $$.pc = $1; $$.p1 = $2; } | portspec range portspec { $$.pc = $2; $$.p1 = $1; $$.p2 = $3; } ; --- 1057,1061 ---- portstuff: ! compare portspec { $$.pc = $1; $$.p1 = $2; $$.p2 = 0; } | portspec range portspec { $$.pc = $2; $$.p1 = $1; $$.p2 = $3; } ; *************** *** 1150,1154 **** free($1); if ($$ == -1) ! yyerror("unknwon protocol"); if ($$ != IPPROTO_TCP && $$ != IPPROTO_UDP) --- 1150,1154 ---- free($1); if ($$ == -1) ! yyerror("unknown protocol"); if ($$ != IPPROTO_TCP && $$ != IPPROTO_UDP) *************** *** 1172,1175 **** --- 1172,1176 ---- family = AF_INET; bzero(&$$, sizeof($$)); + bzero(&addr, sizeof(addr)); $$.f = family; if (gethost(family, $1, *************** *** 1510,1514 **** if (opts & OPT_DEBUG) ! binprint(ipn, sizeof(*ipn)); if ((opts & OPT_ZERORULEST) != 0) { --- 1511,1515 ---- if (opts & OPT_DEBUG) ! binprint(ipn, ipn->in_size); if ((opts & OPT_ZERORULEST) != 0) { |