monitube2-data_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: monitube2-data_config.h 347265 2009-11-19 13:55:39Z kdickman $
00003  *
00004  * This code is provided as is by Juniper Networks SDK Developer Support.
00005  * It is provided with no warranties or guarantees, and Juniper Networks
00006  * will not provide support or maintenance of this code in any fashion.
00007  * The code is provided only to help a developer better understand how
00008  * the SDK can be used.
00009  *
00010  * Copyright (c) 2009, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013 
00023 #ifndef __MONITUBE2_DATA_CONFIG_H__
00024 #define __MONITUBE2_DATA_CONFIG_H__
00025 
00026 
00027 /*** Constants ***/
00028 
00029 
00030 /*** Data structures ***/
00031 
00032 
00033 /*** GLOBAL/EXTERNAL Functions ***/
00034 
00040 void
00041 init_config(void);
00042 
00043 
00050 time_t
00051 get_current_time(void);
00052 
00053 
00057 void
00058 clear_config(void);
00059 
00060 
00073 void
00074 update_rule(char * name, uint32_t rate, in_addr_t redirect);
00075 
00076 
00085 int
00086 delete_rule(char * name);
00087 
00088 
00101 void
00102 add_address(char * name, in_addr_t addr, in_addr_t mask);
00103 
00104 
00117 void
00118 delete_address(char * name, in_addr_t addr, in_addr_t mask);
00119 
00120 
00136 void
00137 apply_rule(char * name, uint16_t ssid, uint32_t gennum, uint32_t svcid);
00138 
00139 
00155 void
00156 remove_rule(char * name, uint16_t ssid, uint32_t gennum, uint32_t svcid);
00157 
00158 
00165 void
00166 delete_serviceset(uint16_t ssid, uint32_t gennum, uint32_t svcid);
00167 
00168 
00190 int
00191 get_monitored_rule_info(uint16_t ssid,
00192                                 uint32_t svc_id,
00193                                 in_addr_t address,
00194                                 uint32_t * rate,
00195                                 uint32_t * redirect_addr);
00196 #endif

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:09 2010 for SDK Your Net Corporation Monitube2 IPTV Monitoring Example: monitube2-plugin 1.0 by Doxygen 1.5.1