[ipfilter-cvs] ipfilter/tools ipnat_y.y,
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2014-06-17 11:53:38
|
Update of /cvsroot/ipfilter/ipfilter/tools In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28460/tools Modified Files: 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.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** ipnat_y.y 9 Jun 2014 15:51:22 -0000 1.37 --- ipnat_y.y 17 Jun 2014 11:53:36 -0000 1.38 *************** *** 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) { |