On 6/14/19 9:23 PM, Stefano Brivio wrote: > > 1. we need a way to filter on cached routes > > 2. RTM_F_CLONED, by itself, doesn't specify a filter > > 3. how do we turn that into a filter? NLM_F_MATCH, says RFC 3549 > > 4. but if strict checking is requested, you also turn some attributes > and flags into filters -- so let's make that apply to RTM_F_CLONED > too, I don't see any reason why that should be special >
I guess I am arguing (and Martin seems to agree with end goal) that RTM_F_CLONED is special. There are really 2 "databases" to be dumped here: FIB entries and exceptions. Which one to dump is controlled by RTM_F_CLONED.