Method: Netfilter::InterfaceTable#each

Defined in:
lib/nfnetlink.rb

#eachObject

Enumerator for the list of interfaces.



113
114
115
116
117
118
119
120
121
122
123
# File 'lib/nfnetlink.rb', line 113

def each
    @lock.synchronize {
        update_table
        for index in 1..65535
            iface = get_iface(index)
            next if iface.nil?

            yield(iface)
        end
    }
end