Example #1
0
 public NetfilterSystem(ISystemFactory system, INetfilterAdapter tableAdapter, IpSetBinaryAdapter setAdapter = null)
 {
     _system       = system;
     _tableAdapter = tableAdapter;
     if (setAdapter == null)
     {
         setAdapter = new IpSetBinaryAdapter(system);
     }
     _setAdapter = setAdapter;
 }
Example #2
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;
 }
Example #3
0
 public IpTablesSystem(ISystemFactory system, IIPTablesAdapter tableAdapter, IpSetBinaryAdapter setAdapter = null)
     : base(system, tableAdapter, setAdapter)
 {
 }