struct IfMgrIP

Class specialized to provide a way to find IfMgrIPv{4,6}Atom given IPv{4,6} type. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types


Detailed Description

Class specialized to provide a way to find IfMgrIPv{4,6}Atom given IPv{4,6} type. This is useful for code that is solely interested in common attributes and methods of IfMgrIPv4Atom and IfMgrIPv6Atom.

Example usage:


 template <typename A>
 bool addr_exists_and_enabled(IfMgrVifAtom& vif, const A& a)
 {
     const typename IfMgrIP<A>::Atom* a = vif.find_addr(a);
     return a != 0 && a->enabled();
 }

typedef IfMgrIPv4Atom Atom

Atom

typedef IfMgrIPv6Atom Atom

Atom


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:48 2008, using kdoc 2.0a54+XORP.