ipprobe-manager.h File Reference

The header file for the IP Probe manager. More...

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netinet/udp.h>
#include <arpa/inet.h>
#include <time.h>
#include <sys/queue.h>
#include <isc/eventlib.h>
#include <ddl/ddl.h>
#include <jnx/aux_types.h>
#include <jnx/ipc.h>
#include <jnx/bits.h>
#include <jnx/trace.h>
#include <jnx/junos_init.h>
#include <jnx/junos_kcom.h>
#include <jnx/junos_trace.h>
#include <jnx/pmon.h>
#include <jnx/junos_stat.h>
#include <jnx/junos_aaa.h>

Data Structures

struct  msg_start_t
struct  responder_s
struct  session_s
struct  manager_s
struct  probe_packet_data_t
struct  probe_packet_t

Defines

#define IP_HEADER_LEN   20
#define PROBE_PACKET_SIZE_MIN   80
#define DEFAULT_MANAGER_PORT   6060
#define MAX_MANAGER_CONNS   16
#define PROBE_MANAGER_PIPE_SIZE   1024
#define PROBE_MANAGER_MSG_TYPE   2000
#define MAX_STR_LEN   64

Typedefs

typedef responder_s responder_t
typedef session_s session_t
typedef manager_s manager_t

Enumerations

enum  msg_type_e { PROBE_MANAGER_MSG_ACK = 1, PROBE_MANAGER_MSG_START }
enum  packet_type_e { PROBE_PACKET_REQ = 1, PROBE_PACKET_REPLY }

Functions

int manager_config_read (int check)
void manager_init (void)
int manager_open (u_short port)
void manager_close (void)
int manager_auth_open (void)
void manager_auth_close (void)


Detailed Description

The header file for the IP Probe manager.

This header file defines all macros and data structures for the probe manager.


Define Documentation

#define DEFAULT_MANAGER_PORT   6060

The default TCP port for probe manager.

#define IP_HEADER_LEN   20

The length of IP header, in byte.

#define MAX_MANAGER_CONNS   16

The maximum concurrent connections to probe manager.

#define MAX_STR_LEN   64

The maximum string length.

#define PROBE_MANAGER_MSG_TYPE   2000

The probe manager primary message type.

#define PROBE_MANAGER_PIPE_SIZE   1024

The probe manager IPC pipe size.

#define PROBE_PACKET_SIZE_MIN   80

The minimum and maximum size of probe packet.


Typedef Documentation

typedef struct manager_s manager_t

The probe manager data structure.

typedef struct responder_s responder_t

The responder data structure.

typedef struct session_s session_t

The probe initiator session data structure.


Enumeration Type Documentation

enum msg_type_e

The sub IPC message type.

Enumerator:
PROBE_MANAGER_MSG_ACK  Acknowledge to the request
PROBE_MANAGER_MSG_START  Request to start a probe

enum packet_type_e

The probe packet type.

Enumerator:
PROBE_PACKET_REQ  Request (probe) packet to the target
PROBE_PACKET_REPLY  Reply packet back to the initiator


Function Documentation

void manager_auth_close ( void   ) 

Close the connection to authd.

int manager_auth_open ( void   ) 

Open connection to authd.

Returns:
0 on success, -1 on failure

void manager_close ( void   ) 

Close the manager and all sessions.

int manager_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:
0 on success, -1 on failure
Note:
Do not use ERRMSG during config check.

void manager_init ( void   ) 

Intializes the manager

int manager_open ( u_short  port  ) 

Open the manager

Parameters:
[in] port Manager TCP port
Returns:
0 on success, -1 on failure


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:59 2010 for SDK Your Net Corporation IP Probe Manager 1.0 by Doxygen 1.5.1