summaryrefslogtreecommitdiffstats
path: root/lib/mgmt_msg.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib: fix coverity CID 1574979Christian Hopps2023-12-301-0/+2
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: msg: make short-circuit connections guaranteedChristian Hopps2023-10-121-0/+4
| | | | | | | 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-1/+1
| | | | | | | | | | `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: add short-circuit operation between same processChristian Hopps2023-05-281-10/+18
| | | | | | | - 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/+44
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: msg: refactor common connection code from mgmtdChristian Hopps2023-05-281-6/+86
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmt msg: add version to messagesChristian Hopps2023-05-281-11/+14
| | | | 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/+0
| | | | 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: new message library for mgmtd client and adaptersChristian Hopps2023-03-221-0/+73
Signed-off-by: Christian Hopps <chopps@labn.net>