Skip to content

Commit

Permalink
[fpmsyncd]: Add support for SRv6
Browse files Browse the repository at this point in the history
* Extend fpmsyncd to process SRv6 routes and local SIDs received from FRR
* Add test cases to verify SRv6 functionality

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
  • Loading branch information
cscarpitta committed May 28, 2024
1 parent 353ab92 commit 98225dc
Show file tree
Hide file tree
Showing 10 changed files with 2,366 additions and 5 deletions.
5 changes: 5 additions & 0 deletions fpmsyncd/fpmlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ bool FpmLink::isRawProcessing(struct nlmsghdr *h)

rtm = (struct rtmsg *)NLMSG_DATA(h);

if (h->nlmsg_type == RTM_NEWSRV6LOCALSID || h->nlmsg_type == RTM_DELSRV6LOCALSID)
{
return true;
}

if (h->nlmsg_type != RTM_NEWROUTE && h->nlmsg_type != RTM_DELROUTE)
{
return false;
Expand Down
3 changes: 3 additions & 0 deletions fpmsyncd/fpmlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#include "fpmsyncd/fpminterface.h"
#include "fpmsyncd/routesync.h"

#define RTM_NEWSRV6LOCALSID 1000
#define RTM_DELSRV6LOCALSID 1001

namespace swss {

class FpmLink : public FpmInterface {
Expand Down
Loading

0 comments on commit 98225dc

Please sign in to comment.