#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) |
Functions for connecting to SSD stricly for adding and deleting service routes and next hops
Definition in file ped_service_route.h.
void add_pfd_service_route | ( | char * | interface_name | ) |
Adds a default service route in the pfd_forwarding routing instance
[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
[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
[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
[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
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
[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 | ) |