33 lines
845 B
C#
33 lines
845 B
C#
namespace LibNftables;
|
|
|
|
/// <summary>
|
|
/// Represents a typed nftables table definition.
|
|
/// </summary>
|
|
public sealed class NftTable
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the nftables family for the table.
|
|
/// </summary>
|
|
public NftFamily Family { get; set; } = NftFamily.Inet;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the table name.
|
|
/// </summary>
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the sets declared in this table.
|
|
/// </summary>
|
|
public IList<NftSet> Sets { get; } = new List<NftSet>();
|
|
|
|
/// <summary>
|
|
/// Gets the maps declared in this table.
|
|
/// </summary>
|
|
public IList<NftMap> Maps { get; } = new List<NftMap>();
|
|
|
|
/// <summary>
|
|
/// Gets the chains declared in this table.
|
|
/// </summary>
|
|
public IList<NftChain> Chains { get; } = new List<NftChain>();
|
|
}
|