ped_service_route.h File Reference

Routines related to adding and deleting service routes. More...

#include <sync/common.h>

Go to the source code of this file.

Functions

void service_route_init (evContext ctx)
void service_route_shutdown (void)
void pfd_ri_created (void)
boolean get_serviceroute_ready (void)
void add_pfd_service_route (char *interface_name)
void delete_pfd_service_route (char *interface_name)
void add_service_route (char *interface_name, in_addr_t address)
void delete_service_route (char *interface_name, in_addr_t address)
void clean_service_routes (void)


Detailed Description

Routines related to adding and deleting service routes.

Functions for connecting to SSD stricly for adding and deleting service routes and next hops

Definition in file ped_service_route.h.


Function Documentation

void add_pfd_service_route ( char *  interface_name  ) 

Adds a default service route in the pfd_forwarding routing instance

Parameters:
[in] interface_name The name of the interface in the pfd_forwarding routing instance that the PFD uses

Definition at line 768 of file ped_service_route.c.

void add_service_route ( char *  interface_name,
in_addr_t  address 
)

Adds a service route to the default routing instance given the address assuming a /32 mask

Parameters:
[in] interface_name The name of the interface (next-hop) in the route used by the PFD when NAT'ing to CPD
[in] address The IP address used to create the service route with the /32 mask

Definition at line 906 of file ped_service_route.c.

void clean_service_routes ( void   ) 

Clean up all service routes created

Definition at line 1048 of file ped_service_route.c.

References route_info_s::client_ctx, ssd_ready, and ssd_server_fd.

Referenced by ped_config_read().

void delete_pfd_service_route ( char *  interface_name  ) 

Deletes a default service route in the pfd_forwarding routing instance

Parameters:
[in] interface_name The name of the interface in the pfd_forwarding routing instance that the PFD uses

Definition at line 833 of file ped_service_route.c.

void delete_service_route ( char *  interface_name,
in_addr_t  address 
)

Deletes a service route to the default routing instance given the address assuming a /32 mask

Parameters:
[in] interface_name The name of the interface (next-hop) in the route
[in] address The IP address used in the service route with the /32 mask

Definition at line 975 of file ped_service_route.c.

boolean get_serviceroute_ready ( void   ) 

Check the state

Returns:
TRUE if connected to SSD and ready to accept requests, otherwise FALSE

Definition at line 754 of file ped_service_route.c.

References ssd_ready.

Referenced by ped_config_read().

void pfd_ri_created ( void   ) 

If the module is not ready it is liely because the PFD route table doesn't exist and we haven't been able to get its table ID. If another module knows that the RI has been created, then we try getting it again.

Definition at line 723 of file ped_service_route.c.

References client_id, PFD_RT_TBL_NAME, ssd_ready, and ssd_server_fd.

Referenced by ped_config_read().

void service_route_init ( evContext  ctx  ) 

Initialize client

Parameters:
[in] ctx The event context for this application

Definition at line 679 of file ped_service_route.c.

References route_info_s::client_ctx, client_id, client_nexthop_id, connect_ssd(), pfd_rt_tbl_id, RETRY_CONNECT, rt_tbl_id, ssd_server_fd, and timer_id.

Referenced by ped_init().

void service_route_shutdown ( void   ) 

Shutdown client

Definition at line 709 of file ped_service_route.c.

References ssd_server_fd.


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:06 2010 for SDK Your Net Corporation Policy Manager Example: Policy Enforcement Daemon 1.0 by Doxygen 1.5.1