monitube-data_ha.h

Go to the documentation of this file.
00001 /*
00002  * $Id: monitube-data_ha.h 346460 2009-11-14 05:06:47Z ssiano $
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) 2008, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013 
00023 #ifndef __MONITUBE_DATA_HA_H__
00024 #define __MONITUBE_DATA_HA_H__
00025 
00026 #include "monitube-data_rtp.h"
00027 
00028 /*** Constants ***/
00029 
00030 #define MAX_MON_NAME_LEN  256     
00031 
00032 
00033 /*** Data structures ***/
00034 
00038 typedef struct replication_data_s {
00039     
00040     // flow table and identifier info:
00041     uint32_t  bucket;    
00042     in_addr_t daddr;     
00043     uint16_t  dport;     
00044     
00045     // general:
00046     time_t    age_ts;    
00047     
00048     // MDI media loss rate related:
00049     uint32_t  ssrc;      
00050     source_t  source;    
00051     
00052     // MDI delay factor related:
00053     uint32_t  rate;      
00054     
00055     // monitor and mirror configuration applied to flow:
00056     in_addr_t maddr;     
00057     uint32_t  m_vrf;     
00058     char      mon[MAX_MON_NAME_LEN];   
00059 } replication_data_t;
00060 
00061 
00065 typedef struct delete_replication_data_s {
00066     
00067     // flow table and identifier info:
00068     uint16_t  dport;     
00069     in_addr_t daddr;     
00070     uint32_t  bucket;    
00071 
00072 } delete_replication_data_t;
00073 
00074 
00075 /*** GLOBAL/EXTERNAL Functions ***/
00076 
00077 
00090 status_t
00091 init_replication(in_addr_t master_address, evContext ev_ctx);
00092 
00093 
00100 void
00101 update_replication_entry(replication_data_t * data);
00102 
00103 
00110 void
00111 delete_replication_entry(delete_replication_data_t * data);
00112 
00113 
00117 void
00118 stop_replication(void);
00119 
00120 
00121 #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:02 2010 for SDK Your Net Corporation Monitube IPTV Monitoring Example: monitube-data 1.0 by Doxygen 1.5.1