]> git.proxmox.com Git - mirror_frr.git/commit - lib/link_state.c
lib: Update Link State Database
authorOlivier Dugeon <olivier.dugeon@orange.com>
Wed, 6 Jan 2021 10:24:07 +0000 (11:24 +0100)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Tue, 23 Mar 2021 14:39:29 +0000 (15:39 +0100)
commitb0c0b43348b12163f88c22e58f87763152942ca4
tree61879953de9679ce4d52f3d30bf535dbd2a18823
parentfd3c7692eb374f8ba55a1f8c871330908e12729d
lib: Update Link State Database

Add new status for Vertex, Edge and Subnet to manage their
respective states in the data base.

Add new functions:
 - to register/unregister server and client
 - to show content of the Database (VTY and Json output)
 - to update and compare subnets
 - to clean vertex and ted from ORPHAN elements
 - to convert message or stream into a Link State Element and update
   Link State Database accordingly to message event

Change Edge and Vertex key computation by using the host order systematically.
This impact mostly key based on IPv4 addresses where `ntohl()` function must
be used when searching a Vertex or Edge by key.

Update the documentation accordingly

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
doc/developer/link-state.rst
lib/link_state.c
lib/link_state.h
lib/zclient.h