summaryrefslogtreecommitdiffstats
path: root/lib/mgmt_msg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #15098 from donaldsharp/lib_zebra_h_cleanup_2Donatas Abraitis2024-01-111-0/+2
|\ | | | | Lib zebra h cleanup 2
| * *: remove sys/stat.h from zebra.hDonald Sharp2024-01-091-0/+2
| | | | | | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* | lib: mgmtd: implement full XPath 1.0 predicate functionalityChristian Hopps2024-01-071-1/+1
|/ | | | | | | | Allow user to specify full YANG compatible XPath 1.0 predicates. This allows for trimming results of generic queries using functions and other non-key predicates from XPath 1.0 Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: fix initializer warning on centos 7.Christian Hopps2024-01-051-1/+1
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: fix coverity CID 1574979Christian Hopps2023-12-301-0/+5
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: add dedicated API functions for native msgsChristian Hopps2023-12-281-1/+1
| | | | | | - reorg native message header Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: add simplified native msg supportChristian Hopps2023-12-261-18/+61
| | | | | | This is intended to replace protobuf use in mgmtd. Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmt_msg: fix a valgrind memleakChristian Hopps2023-10-301-0/+2
| | | | | | - Free the outbound stream on destroy. Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: msg: make short-circuit connections guaranteedChristian Hopps2023-10-121-9/+8
| | | | | | | When short circuiting is requested the caller can count on that being the connection type they get. Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmtd: re-purpose is_short_circuit and fix depth variable inc/decChristian Hopps2023-06-181-4/+8
| | | | | | | | | | `is_short_circuit` now is set to true when a message is being short-circuit handled. `short_circuit_depth` was being inc/dec inside conditional macro, move that out of the macro. Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmtd: improvements in logging and commentaryChristian Hopps2023-06-131-2/+4
| | | | | | | | | | - log names of datastores not numbers - improve logging for mgmt_msg_read - Rather than use a bool, instead store the pending const string name of the command being run that has postponed the CLI. This adds some nice information to the logging when enabled. Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: add short-circuit operation between same processChristian Hopps2023-05-281-4/+115
| | | | | | | - Use a socketpair for connection, and direct (no event loop) message sending and handling. Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmtd: add server-side connection code to mgmt_msgChristian Hopps2023-05-281-6/+144
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: msg: refactor common connection code from mgmtdChristian Hopps2023-05-281-5/+252
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmt msg: add version to messagesChristian Hopps2023-05-281-10/+20
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: remove write-on-off, just requeue to the back of the queueChristian Hopps2023-05-281-1/+1
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* *: Convert event.h to frrevent.hDonald Sharp2023-03-241-1/+1
| | | | | | | We should probably prevent any type of namespace collision with something else. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: Rename thread.[ch] to event.[ch]Donald Sharp2023-03-241-1/+1
| | | | | | | | | | | This is a first in a series of commits, whose goal is to rename the thread system in FRR to an event system. There is a continual problem where people are confusing `struct thread` with a true pthread. In reality, our entire thread.c is an event system. In this commit rename the thread.[ch] files to event.[ch]. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* lib: mgmtd: fix build warnings (as error)Christian Hopps2023-03-221-2/+2
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: new message library for mgmtd client and adaptersChristian Hopps2023-03-221-0/+414
Signed-off-by: Christian Hopps <chopps@labn.net>