Struct PacketSniFilterResult
- Namespace
- VpnHood.Core.Filtering.DomainFiltering
- Assembly
- VpnHood.Core.Filtering.DomainFiltering.dll
Represents the domain filter's answer for a packet, which may hold the packet back, or release packets of its flow held before.
public readonly struct PacketSniFilterResult
- Inherited Members
Properties
Action
Gets the verdict for the packet and for Packets. With NeedMore, it is Block, which no packet is to get then: the service holds the packet.
public FilterAction Action { get; }
Property Value
DomainName
Gets the flow's domain name, or null when none was found.
public string? DomainName { get; }
Property Value
IsNewFlow
Gets a value indicating whether this result is the one in which the flow's name was found and its verdict first decided.
public bool IsNewFlow { get; }
Property Value
NeedMore
Gets a value indicating whether the service holds the packet until more of the flow arrives to find its name: route nothing then.
public bool NeedMore { get; }
Property Value
Packets
Gets the flow's packets the service held before this one, released now: route them, under Action, before the packet. They are the caller's to dispose. Empty when no held packet is released, and null in a default instance.
public IReadOnlyList<IpPacket> Packets { get; init; }