Changeset 6826

Show
Ignore:
Timestamp:
01/29/11 23:47:40 (2 years ago)
Author:
jow
Message:

libs/sys: fix ip6tables parsing issue

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/sys/luasrc/sys/iptparser.lua

    r6825 r6826  
    216216 
    217217 
     218--- Find the names of all tables. 
     219-- @return      Table of table names. 
     220function IptParser.tables( self ) 
     221    return self._tables 
     222end 
     223 
     224 
    218225--- Find the names of all chains within the given table name. 
    219226-- @param table String containing the table name 
     
    305312                    if rule:match("^%d+%s+%d+%s+%d+%s%s") then 
    306313                        table.insert(rule_parts, 4, nil) 
     314                    end 
     315 
     316                    -- ip6tables opt column is usually zero-width 
     317                    if self._family == 6 then 
     318                        table.insert(rule_parts, 6, "--") 
    307319                    end 
    308320