public void AddRule() { using (var client = _system.GetTableAdapter(Chain.IpVersion)) { AddRule(client); } }
public void AddRule() { if (Chain == null) { throw new IpTablesNetException("Unknown Chain"); } _system.GetTableAdapter(Chain.IpVersion).AddRule(this); }
public void Sync(IEnumerable <IpTablesRule> with, INetfilterSync <IpTablesRule> sync) { var tableAdapter = _system.GetTableAdapter(_ipVersion); tableAdapter.StartTransaction(); SyncInternal(with, sync); tableAdapter.EndTransactionCommit(); }