route-manager_kcom.c File Reference

Relating to KCOM API. More...

#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.


Detailed Description

Relating to KCOM API.

Definition in file route-manager_kcom.c.


Function Documentation

int kcom_client_id_restore ( void   ) 

Restore SSD client ID from GENCFG blob.

Returns:
Client ID on success, -1 on failure

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.

Parameters:
[in] id SSD client ID
Returns:
0 on success, -1 on failure

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).

Parameters:
[in] gencfg GENCFG message
Returns:
KCOM_OK (0) always

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.

Parameters:
[in] name IFL name
Returns:
IFL index on success, -1 on failure

Definition at line 43 of file route-manager_kcom.c.

Referenced by ssd_nh_add().

int kcom_init ( evContext  ev_ctx  ) 

Initialize KCOM.

Parameters:
[in] ev_ctx Event context
Returns:
0 on success, -1 on failure

Definition at line 178 of file route-manager_kcom.c.

References kcom_gencfg_async_hdlr(), and RM_LOG.

Referenced by main_init().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:07 2010 for SDK Your Net Corporation Route Manager: route-manager 1.0 by Doxygen 1.5.1