summaryrefslogtreecommitdiff
path: root/zebra/zebra_opaque.c
AgeCommit message (Collapse)Author
2023-06-26zebra: clean up coverity warning in opaque apiMark Stapp
Seems a bit fussy of coverity, but ... don't NULL a variable unnecessarily. Signed-off-by: Mark Stapp <mjs@labn.net>
2023-06-23zebra: support notifications for opaque ZAPI messagesMark Stapp
Allow zapi clients to register to be notified when a server for an opaque message type is present. Zebra maintains these notification registrations in the same data structures that it uses for opaque message handling. Signed-off-by: Mark Stapp <mjs@labn.net>
2023-06-23lib, zebra: include source client zapi info in opaque messagesMark Stapp
Include the sending zapi client info (proto, instance, and session id) in each opaque zapi message. Add opaque 'init' apis for clients who want to encode their opaque data inline, into the zclient's internal stream buffer. Use these init apis in the TE/link-state lib code, instead of hand-coding the zapi opaque header info. Signed-off-by: Mark Stapp <mjs@labn.net>
2023-03-24*: Convert `struct event_master` to `struct event_loop`Donald Sharp
Let's find a better name for it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert struct thread_master to struct event_master and it's ilkDonald Sharp
Convert the `struct thread_master` to `struct event_master` across the code base. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_add_XXX functions to event_add_XXXDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename `struct thread` to `struct event`Donald Sharp
Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-07-20*: frr_with_mutex change to follow our standardDonald Sharp
convert: frr_with_mutex(..) to: frr_with_mutex (..) To make all our code agree with what clang-format is going to produce Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-21zebra: clean up rtadv integrationDavid Lamparter
Move a few things into places they actually belong, and reduce the number of places we have `#ifdev HAVE_RTADV`. Just overall code prettification. ... I had actually done this quite a while ago while doing some other random hacking and thought it more useful to not be sitting on it on my disk... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-23*: Change thread->func to return void instead of intDonald Sharp
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-03-22zebra: kill zebra_memory.h, use MTYPE_STATICDavid Lamparter
This one also needed a bit of shuffling around, but MTYPE_RE is the only one left used across file boundaries now. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-10-13zebra: quiet the zebra opaque message debugsMark Stapp
Put most of the debugs about opaque ZAPI messages under 'detail' to reduce the noise. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-10sharpd,zebra: unicast support for zapi messagesMark Stapp
Distinguish between unicast and broadcast opaque messages in zebra handler code. Add cli and internal api changes to have sharpd send unicast opaque messages. Add opaque cli commands to the sharp user doc. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-10lib,zebra,sharpd: modify opaque zapi message to support unicastMark Stapp
Start modifying the OPAQUE zapi message to include optional unicast destination zapi client info. Add a 'decode' api and opaque msg struct to encapsulate that optional info. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-10lib,zebra: rename opaque decode apiMark Stapp
Change name of an opaque zapi api to 'decode' to align with the other zapi message parsing apis. Missed that in the original opaque commits. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-02zebra: handle OPAQUE registrations and forward messagesMark Stapp
Add initial support to maintain client daemon registrations for OPAQUE messages. Use the registered zapi client info to forward copies of OPAQUE messages sent to zebra. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-06-02zebra: add zebra opaque moduleMark Stapp
Add the zebra_opaque module, designed to offload some opaque zapi message processing to a new, dedicated pthread. Add to the build; also re-sort the lists of zebra files in subdir.am. Start, stop, and clean-up the opaque module, integrate with zebra start and shutdown. Signed-off-by: Mark Stapp <mjs@voltanet.io>