Exemple #1
0
 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;
 }
Exemple #2
0
 public INetfilterAdapterClient GetTableAdapter(int version)
 {
     return(_tableAdapter.GetClient(this, version));
 }