BGPLite/BGPLite.Routing/AllowAllFilter.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

11 lines
313 B
C#

using BGPLite.Configuration;
namespace BGPLite.Routing;
public sealed class AllowAllFilter : IRouteFilter
{
public static AllowAllFilter Instance { get; } = new();
public bool AcceptIncoming(Route route, PeerConfig peer) => true;
public bool AcceptOutgoing(Route route, PeerConfig peer) => true;
}