Skip to content

Commit

Permalink
Add additional logging
Browse files Browse the repository at this point in the history
KitL authored and gizmoguy committed Jan 28, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ead4011 commit c441d83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rfclient/FlowTable.cc
Original file line number Diff line number Diff line change
@@ -433,6 +433,7 @@ void FlowTable::updateRouteTable( struct rtnl_route *route,
memset(intf, 0, IF_NAMESIZE + 1);

if (rtnl_route_get_table(route) != RT_TABLE_MAIN) {
syslog(LOG_DEBUG, "received route with invalid table, ignoring");
return;
}

@@ -444,6 +445,7 @@ void FlowTable::updateRouteTable( struct rtnl_route *route,
family = IPV6;
break;
default:
syslog(LOG_DEBUG, "received route with invalid family, ignoring");
return;
}

@@ -469,10 +471,12 @@ void FlowTable::updateRouteTable( struct rtnl_route *route,
rtnl_link_i2name(link_cache, ifindex, intf, sizeof(intf));

if (strcmp(intf, DEFAULT_RFCLIENT_INTERFACE) == 0) {
syslog(LOG_DEBUG, "received route for rfclient interface, ignoring");
return;
}

if (getInterface(intf, "route", &rentry->interface) != 0) {
syslog(LOG_DEBUG, "unable to retrieve interface for route, ignoring");
return;
}

@@ -501,6 +505,8 @@ void FlowTable::updateRouteTable( struct rtnl_route *route,
net.c_str(), mask.c_str(), gw.c_str());
this->pendingRoutes.push(PendingRoute(RMT_DELETE, *rentry));
break;
default:
syslog(LOG_DEBUG, "route with invalid action, ignoring");
}

return;

0 comments on commit c441d83

Please sign in to comment.