packetproc-data.h

Go to the documentation of this file.
00001 /*
00002  * $Id: packetproc-data.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) 2007-2008, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013 
00020 #ifndef __PACKETPROC_DATA_H__
00021 #define __PACKETPROC_DATA_H__
00022 
00023 #include <stdio.h>
00024 #include <stdlib.h>
00025 #include <sys/types.h>
00026 #include <string.h>
00027 #include <unistd.h>
00028 #include <isc/eventlib.h>
00029 #include <signal.h>
00030 #include <sys/socket.h>
00031 #include <netinet/in.h>
00032 #include <netinet/in_systm.h>
00033 #include <netinet/ip.h>
00034 #include <arpa/inet.h>
00035 #include <pthread.h>
00036 #include <jnx/bits.h>
00037 #include <jnx/jnx_types.h>
00038 #include <jnx/aux_types.h>
00039 #include <jnx/mpsdk.h>
00040 #include <jnx/trace.h>
00041 #include <sys/jnx/jbuf.h>
00042 #include <jnx/vrf_util_pub.h>
00043 
00045 typedef struct packet_thread_s {
00046     msp_data_handle_t thrd_data_hdl;  
00047     msp_fifo_handle_t thrd_fifo_hdl;  
00048     int               thrd_cpu;       
00049     int               thrd_user_data; 
00050     pthread_t         thrd_tid;       
00051     uint32_t          thrd_counter;   
00052 } packet_thread_t;
00053 
00058 int init_packet_loop(void);
00059 
00060 #endif
00061 

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:04 2010 for SDK Your Net Corporation Simple Packet Processing Example 1.0 by Doxygen 1.5.1