dpm-mgmt_config.h File Reference

Relating to loading the configuration data. More...

#include <jnx/patricia.h>
#include <sync/dpm_ipc.h>

Go to the source code of this file.

Data Structures

struct  policer_s
struct  int_def_s
struct  subscriber_s
struct  login_sub_s
struct  login_class_s

Typedefs

typedef policer_s policer_t
typedef int_def_s int_def_t
typedef subscriber_s subscriber_t
typedef login_sub_s login_sub_t
typedef login_class_s login_class_t

Functions

typedef TAILQ_HEAD (cl_list_s, login_class_s) class_list_t
 list typedef
void init_config (void)
void clear_config (void)
void clear_logins (void)
void send_configuration (void)
void subscriber_login (char *s_name, char *c_name)
void subscriber_logout (char *s_name, char *c_name)
int dpm_config_read (int check)


Detailed Description

Relating to loading the configuration data.

These functions will parse and load the configuration data.

Definition in file dpm-mgmt_config.h.


Typedef Documentation

typedef struct int_def_s int_def_t

The structure we use to bundle the list pointers with the data to store for each interface default

typedef struct login_class_s login_class_t

The structure we use to bundle the patricia-tree node with the data to store for each subscriber

typedef struct login_sub_s login_sub_t

The structure we use to bundle the patricia-tree node with the data to store for each subscriber

typedef struct policer_s policer_t

The structure we use to bundle the patricia-tree node with the data to store for each policer

typedef struct subscriber_s subscriber_t

The structure we use to bundle the patricia-tree node with the data to store for each subscriber


Function Documentation

void clear_config ( void   ) 

Clear and reset the entire configuration, freeing all memory.

Definition at line 424 of file dpm-mgmt_config.c.

References classic_filters, clear_logins(), LOG, subscriber_s::node, policer_s::node, pol_conf, and sub_conf.

Referenced by dpm_config_read(), dpm_init(), and dpm_shutdown().

void clear_logins ( void   ) 

Clear status of all logins

Definition at line 465 of file dpm-mgmt_config.c.

Referenced by clear_config(), and mspic_offline().

int dpm_config_read ( int  check  ) 

Read daemon configuration from the database

Parameters:
[in] check 1 if this function being invoked because of a commit check
Returns:
SUCCESS (0) successfully loaded, EFAIL if not
Note:
Do not use ERRMSG/LOG during config check normally.

Definition at line 618 of file dpm-mgmt_config.c.

References classic_filters, clear_config(), dpm_config, parse_int_default(), parse_policer(), and send_configuration().

Referenced by main().

void init_config ( void   ) 

Init the data structures that will store configuration info

Definition at line 409 of file dpm-mgmt_config.c.

References classic_filters, MAX_POL_NAME, MAX_SUB_NAME, pol_conf, and sub_conf.

Referenced by dpm_init().

void send_configuration ( void   ) 

Send the entire configuration to the ctrl component

Definition at line 487 of file dpm-mgmt_config.c.

References classic_filters, LOG, match_ifl(), subscriber_s::node, policer_s::node, notify_configuration_complete(), notify_configuration_reset(), notify_policy_add(), notify_subscriber_add(), pol_conf, policer_s::policer, sub_conf, and subscriber_s::subscriber.

Referenced by dpm_config_read(), and receive_connection().

void subscriber_login ( char *  s_name,
char *  c_name 
)

Record the subscriber login

Parameters:
[in] s_name subscriber name
[in] c_name subscriber's class name

Definition at line 526 of file dpm-mgmt_config.c.

References login_class_s::class, and login_sub_s::name.

Referenced by receive_message().

void subscriber_logout ( char *  s_name,
char *  c_name 
)

Remove the record of the previous subscriber login

Parameters:
[in] s_name subscriber name
[in] c_name subscriber's class name

Definition at line 572 of file dpm-mgmt_config.c.

References login_class_s::class, and login_sub_s::name.

Referenced by receive_message().


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