#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <isc/eventlib.h>
#include <sys/queue.h>
#include <jnx/ssd_ipc_msg.h>
#include <jnx/junos_kcom.h>
#include <jnx/junos_trace.h>
#include "route-manager.h"
Go to the source code of this file.
Functions | |
int | kcom_ifl_get_idx_by_name (char *name) |
Get IFL index by IFL name. | |
int | kcom_client_id_save (int id) |
Save SSD client ID as GENCFG blob. | |
int | kcom_client_id_restore (void) |
Restore SSD client ID from GENCFG blob. | |
static int | kcom_gencfg_async_hdlr (junos_kcom_gencfg_t *gencfg) |
GENCFG notification handler (does nothing). | |
void | kcom_close (void) |
Close KCOM. | |
int | kcom_init (evContext ev_ctx) |
Initialize KCOM. |
Definition in file route-manager_kcom.c.
int kcom_client_id_restore | ( | void | ) |
Restore SSD client ID from GENCFG blob.
Definition at line 106 of file route-manager_kcom.c.
References RM_BLOB_ID_CLIENT_ID, RM_LOG, and RM_TRACE.
Referenced by ssd_open().
int kcom_client_id_save | ( | int | id | ) |
Save SSD client ID as GENCFG blob.
[in] | id | SSD client ID |
Definition at line 77 of file route-manager_kcom.c.
References RM_BLOB_ID_CLIENT_ID, RM_LOG, and RM_TRACE.
Referenced by ssd_client_msg_hdlr().
static int kcom_gencfg_async_hdlr | ( | junos_kcom_gencfg_t * | gencfg | ) | [static] |
GENCFG notification handler (does nothing).
[in] | gencfg | GENCFG message |
Definition at line 141 of file route-manager_kcom.c.
Referenced by kcom_init().
int kcom_ifl_get_idx_by_name | ( | char * | name | ) |
Get IFL index by IFL name.
[in] | name | IFL name |
Definition at line 43 of file route-manager_kcom.c.
Referenced by ssd_nh_add().
int kcom_init | ( | evContext | ev_ctx | ) |
Initialize KCOM.
[in] | ev_ctx | Event context |
Definition at line 178 of file route-manager_kcom.c.
References kcom_gencfg_async_hdlr(), and RM_LOG.
Referenced by main_init().