Andreas Granig writes:
Wouldn't it be sufficient for supporting classification to let the user optionally just pass the grp_id to load_gws() and from_gw() and extend the db query and the src-addr check to take that id into account?
db_query cannot be made more complex than what it already is. someone reported that even the current query takes too much mysql time and therefore caching was developed.
like i did, i would prefer to leave gw selection as it is and write introduce new peer functions. those could very well take a class as argument.
-- juha