« Previous | Next » 

Revision 3991d84e

ID3991d84e8fa9118a43149d4d3304726eb786bd46
Parent f8809249
Child dad177d7

Added by Martin Mares over 21 years ago

Changed initialization of protocol list -- now we call proto_build() instead
of calling the protocols manually.

Implemented printing of dynamic attributes in `show route all'.

Each protocol can now register its own attribute class (protocol->attr_class,
set to EAP_xxx) and also a callback for naming and formatting of attributes.
The callback can return one of the following results:

GA_UNKNOWN    Attribute not recognized.
GA_NAME Attribute name recognized and put to the buffer,
generic code should format the value.
GA_FULL Both attribute name and value put to the buffer.

Please update protocols generating dynamic attributes to provide
the attr_class and formatting hook.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences