[Xorp-hackers] obtaining ospfV2 link state database

Ben Greear greearb at candelatech.com
Fri Jun 20 12:27:50 PDT 2008


Selçuk Cevher wrote:
> Hi All,
>  
> I want to obtain the entire link state database (_db) from ospfV2 at one 
> shot rather than getting LSAs individually.
>  
> I guess that I should add a new interface to ospfv2.xif to return the 
> database which is supposed to be a vector<Lsa::LsaRef>.
>  
> However, as far as I know, we can only use a few built-in types to 
> create .xif files.
>  
> To be able to create an .xif method which returns a pointer to a 
> vector<Lsa::LsaRef>, which xorp source files should I modify ?
>  
> Or is there any other way of doing this without creating a new return type ?

You could do some horrible hack like encode the struct with something
similar to uuencode and send it across as a string...

Not pretty, but has been known to work :)

Ben

>  
> Thanks,
> Selcuk
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list