packetproc-data_main.c File Reference

Contains main entry point. More...

#include "packetproc-data.h"

Go to the source code of this file.


static void packetproc_idle (evContext ctx UNUSED, void *uap UNUSED, struct timespec due UNUSED, struct timespec inter UNUSED)
static void packetproc_data_quit (int signo __unused)
static int packetproc_data_init (evContext ctx)
int main (int argc, char **argv)


packet_thread_t packet_thrd []
static evTimerID packetproc_idle_timer

Detailed Description

Contains main entry point.

Contains the main entry point and registers the application as a MultiServices PIC daemon.

Definition in file packetproc-data_main.c.

Function Documentation

int main ( int  argc,
char **  argv 

Initializes environment for packetproc-data.

[in] argc Number of command line arguments
[in] argv String array of command line arguments
0 upon successful exit of the application (should not happen) or 1 upon failure

Definition at line 160 of file packetproc-data_main.c.

References packetproc_data_init().

static int packetproc_data_init ( evContext  ctx  )  [static]

Callback for the first initialization of the SDK application.

[in] ctx Newly created event context
0 upon successful completion

Definition at line 105 of file packetproc-data_main.c.

References init_packet_loop(), packet_thrd, packetproc_data_quit(), packetproc_idle(), and packetproc_idle_timer.

Referenced by main().

static void packetproc_data_quit ( int signo  __unused  )  [static]

This function quits the application by calling the exit function.

Definition at line 68 of file packetproc-data_main.c.

References packet_thrd, and packet_thread_s::thrd_tid.

Referenced by packetproc_data_init().

static void packetproc_idle ( evContext ctx  UNUSED,
void *uap  UNUSED,
struct timespec due  UNUSED,
struct timespec inter  UNUSED 
) [static]

Idle function, does nothing.

Definition at line 57 of file packetproc-data_main.c.

Referenced by packetproc_data_init().

Variable Documentation

packet_thread_t packet_thrd[]

Packet thread data.

Definition at line 36 of file packetproc-data_packet.c.

Referenced by init_packet_loop(), packet_loop(), packetproc_data_init(), and packetproc_data_quit().

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