MAX_ROUTES
if (total_routes < MAX_ROUTES)
if (++total_routes == MAX_ROUTES)
if (nroutes > MAX_ROUTES || nroutes + nservers + nfilters > tcam_size)