dpm-mgmt_conn.h File Reference

Relating to managing the connections. More...

Go to the source code of this file.

Functions

status_t init_conn_server (evContext ctx)
void shutdown_conn_server (void)
void mspic_offline (const char *name)
void notify_configuration_reset (boolean use_classic)
void notify_configuration_complete (void)
void notify_policy_add (policer_info_t *pol)
void notify_interface_add (char *int_name, if_subunit_t ifl_subunit, int_def_t *interface, ifl_idx_t ifl_index)
void notify_subscriber_add (sub_info_t *sub)


Detailed Description

Relating to managing the connections.

These functions and types will manage the connections.

Definition in file dpm-mgmt_conn.h.


Function Documentation

status_t init_conn_server ( evContext  ctx  ) 

Initialize the server socket connection

Parameters:
[in] ctx Newly created event context
Returns:
SUCCESS if successful; otherwise EFAIL with an error message.

Definition at line 210 of file dpm-mgmt_conn.c.

References ctrl_info, ctrl_session, DPM_MGMT_SERVER_MAX_CONN, DPM_PORT_NUM, LOG, m_ctx, mgmt_server, receive_connection(), and receive_message().

Referenced by dpm_init().

void mspic_offline ( const char *  name  ) 

Notification about an MS-PIC interface going down

Parameters:
[in] name name of interface that has gone down

Definition at line 277 of file dpm-mgmt_conn.c.

References clear_logins(), ctrl_info, and ctrl_session.

Referenced by ifd_down_async_handler().

void notify_configuration_complete ( void   ) 

Send a message to the ctrl component that configuration is complete

Definition at line 333 of file dpm-mgmt_conn.c.

References ctrl_session, LOG, and MSG_CONF_COMP.

Referenced by send_configuration().

void notify_configuration_reset ( boolean  use_classic  ) 

Send a message to the ctrl component about a configuration reset

Parameters:
[in] use_classic Use classic filters

Definition at line 309 of file dpm-mgmt_conn.c.

References ctrl_session, LOG, MSG_CONF_RESET, and reset_info_s::use_classic_filters.

Referenced by send_configuration().

void notify_interface_add ( char *  int_name,
if_subunit_t  ifl_subunit,
int_def_t interface,
ifl_idx_t  ifl_index 
)

Send a message to the ctrl component about a default interface configuration

Parameters:
[in] int_name The interface name
[in] ifl_subunit The interface IFL subunit
[in] interface The interface default policy info
[in] ifl_index The interface IFL index

Definition at line 416 of file dpm-mgmt_conn.c.

References ctrl_session, int_info_s::index, int_def_s::input_pol, int_info_s::input_pol, LOG, MSG_INTERFACE, int_info_s::name, int_def_s::output_pol, int_info_s::output_pol, and int_info_s::subunit.

Referenced by match_ifl().

void notify_policy_add ( policer_info_t pol  ) 

Send a message to the ctrl component about a policer configuration

Parameters:
[in] pol The policer configuration to send

Definition at line 357 of file dpm-mgmt_conn.c.

References pol_conf_s::bandwidth_limit, pol_conf_s::bandwidth_percent, pol_conf_s::burst_size_limit, pol_conf_s::bw_in_percent, pol_conf_s::bw_u, ctrl_session, policer_info_s::if_exceeding, LOG, and MSG_POLICER.

Referenced by send_configuration().

void notify_subscriber_add ( sub_info_t sub  ) 

Send a message to the ctrl component about a subscriber configuration

Parameters:
[in] sub The subscriber configuration to send

Definition at line 453 of file dpm-mgmt_conn.c.

References ctrl_session, LOG, and MSG_SUBSCRIBER.

Referenced by send_configuration().

void shutdown_conn_server ( void   ) 

Close existing connections and shutdown server

Definition at line 247 of file dpm-mgmt_conn.c.

References ctrl_info, ctrl_session, DPM_PORT_NUM, and mgmt_server.

Referenced by dpm_init(), and dpm_shutdown().


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:26:55 2010 for SDK Your Net Corporation Dynamic Policy Manager Example: dpm-mgmt 1.0 by Doxygen 1.5.1