[Xorp-hackers] RIB serialization

Canini Marco marco.canini at epfl.ch
Mon Aug 31 08:13:03 PDT 2009


Hi all,

I'm working on a research project for which we'd like to be able to dump the RIB at arbitrary checkpoint instants.

To do that, I've tried to apply a library called boost serialization that offers some support to write objects to file.
I've got to the point where I need to serialize the class OriginTable.
Such class has a class member of type Trie<A, const IPRouteEntry<A>*>.
Because of the constness of the Trie Payload type, I'm getting into some troubles with boost serialization.
How harmful is it if I remove the const there?
I'm aware that such a small change is going to require many other changes to basically remove the const attribute in lots of places.
Thanks for your advices.

Marco Canini, Ph.D.
EPFL, Networked Systems Laboratory





More information about the Xorp-hackers mailing list