public NetfilterSystem(ISystemFactory system, INetfilterAdapter tableAdapter, IpSetBinaryAdapter setAdapter = null) { _system = system; _tableAdapter4 = tableAdapter == null ? null : tableAdapter.GetClient(this, 4); _tableAdapter6 = tableAdapter == null ? null : tableAdapter.GetClient(this, 6); if (setAdapter == null) { setAdapter = new IpSetBinaryAdapter(system); } _setAdapter = setAdapter; }
public INetfilterAdapterClient GetTableAdapter(int version) { return(_tableAdapter.GetClient(this, version)); }