Experimental code for reading iptables

This commit is contained in:
Brian Candler
2011-05-06 11:41:06 +01:00
parent e07af9a315
commit 0cb1429c62
3 changed files with 114 additions and 27 deletions

View File

@@ -144,7 +144,7 @@ class CStruct
# Apply padding for structure alignment if necessary
size = info[:size] || [default].pack(pattern).bytesize
if align = info[:align]
if align = (opt[:align] || info[:align])
align = size if align == true
field_pad alignto(@bytesize, align) - @bytesize
end