Skip to content

Commit

Permalink
Removing un-used code
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorekunal01 committed Nov 3, 2020
1 parent 67187a4 commit b7c6a32
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions fpmsyncd/routesync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,7 @@ void RouteSync::onRouteMsg(int nlmsg_type, struct nl_object *obj, char *vrf)

dip = rtnl_route_get_dst(route_obj);
nl_addr2str(dip, destipprefix + strlen(destipprefix), MAX_ADDR_SIZE);
#if 0
/* Full mask route append prefix length, or else resync cannot match. */
if (nl_addr_get_prefixlen(dip) == (8 * nl_addr_get_len(dip)))
{
snprintf(destipprefix + strlen(destipprefix), sizeof(destipprefix) - strlen(destipprefix), "/%u", nl_addr_get_prefixlen(dip));
}
SWSS_LOG_DEBUG("Receive new route message dest ip prefix: %s", destipprefix);
#endif

/*
* Upon arrival of a delete msg we could either push the change right away,
* or we could opt to defer it if we are going through a warm-reboot cycle.
Expand Down

0 comments on commit b7c6a32

Please sign in to comment.