BGPLite/BGPLite.Protocol/PathAttribute.cs
Mikhail Movchan 9a6c0af00b feat: initial commit — BGPLite BGP route server
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>
2026-06-05 19:30:18 +03:00

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;
}