Lightweight BGP route server with TCP session management, route table, community-based filtering, management HTTP API, and SQLite peer store. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
12 lines
431 B
C#
12 lines
431 B
C#
namespace BGPLite.Protocol;
|
|
|
|
public sealed class PathAttribute
|
|
{
|
|
public byte Flags { get; init; }
|
|
public byte TypeCode { get; init; }
|
|
public byte[] Data { get; init; } = [];
|
|
|
|
public bool Optional => (Flags & BgpConstants.Attribute.FlagOptional) != 0;
|
|
public bool Transitive => (Flags & BgpConstants.Attribute.FlagTransitive) != 0;
|
|
public bool Partial => (Flags & BgpConstants.Attribute.FlagPartial) != 0;
|
|
}
|