ipprobe-mt_ui.c File Reference

Relating to the user interface (commands). More...

#include <string.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <isc/eventlib.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/ip_icmp.h>
#include <arpa/inet.h>
#include <jnx/aux_types.h>
#include <jnx/bits.h>
#include <jnx/patricia.h>
#include <jnx/pconn.h>
#include <jnx/junos_trace.h>
#include <jnx/mgmt_sock_pub.h>
#include <jnx/ms_parse.h>
#include <jnx/parse_ip.h>
#include <junoscript/xmllib_pub.h>
#include <junoscript/xmlrpc.h>
#include <junoscript/xmlstr.h>
#include "ipprobe-mt.h"

Go to the source code of this file.

Functions

static int32_t show_probe (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed)
 Displays the probe report.
static int32_t start_probe (mgmt_sock_t *msp UNUSED, parse_status_t *csb UNUSED, char *unparsed)
 Request to start a probe.
static int32_t stop_probe (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed)
 Request to stop a probe.
static int32_t clear_probe (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed)
 Clear the probe result.

Variables

static const parse_menu_t request_sync_probe_menu []
static const parse_menu_t request_sync_menu []
static const parse_menu_t request_menu []
static const parse_menu_t show_sync_menu []
static const parse_menu_t show_menu []
static const parse_menu_t clear_sync_menu []
static const parse_menu_t clear_menu []
const parse_menu_t master_menu []


Detailed Description

Relating to the user interface (commands).

Contains callback functions that get executed by commands on the router

Definition in file ipprobe-mt_ui.c.


Function Documentation

static int32_t clear_probe ( mgmt_sock_t *  msp,
parse_status_t *csb  UNUSED,
char *  unparsed 
) [static]

Clear the probe result.

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0 if no error; 1 to terminate connection

Definition at line 235 of file ipprobe-mt_ui.c.

References probe_mngr_probe_clear().

static int32_t show_probe ( mgmt_sock_t *  msp,
parse_status_t *csb  UNUSED,
char *  unparsed 
) [static]

Displays the probe report.

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0 if no error; 1 to terminate connection

Definition at line 60 of file ipprobe-mt_ui.c.

References probe_result_t::delay_ds_average, probe_result_t::delay_ds_max, probe_result_t::delay_rr_average, probe_result_t::delay_rr_max, probe_result_t::delay_sd_average, probe_result_t::delay_sd_max, probe_dst_t::dst_addr, probe_result_t::jitter_ds_average, probe_result_t::jitter_ds_max, probe_result_t::jitter_rr_average, probe_result_t::jitter_rr_max, probe_result_t::jitter_sd_average, probe_result_t::jitter_sd_max, probe_params_s::name, probe_params_s::pkt_count, probe_params_s::pkt_interval, probe_params_s::pkt_size, probe_mngr_probe_result_get(), probe_params_get(), and probe_dst_t::result.

static int32_t start_probe ( mgmt_sock_t *msp  UNUSED,
parse_status_t *csb  UNUSED,
char *  unparsed 
) [static]

Request to start a probe.

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0 if no error; 1 to terminate connection

Definition at line 151 of file ipprobe-mt_ui.c.

References probe_mngr_probe_start().

static int32_t stop_probe ( mgmt_sock_t *  msp,
parse_status_t *csb  UNUSED,
char *  unparsed 
) [static]

Request to stop a probe.

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0 if no error; 1 to terminate connection

Definition at line 209 of file ipprobe-mt_ui.c.

References probe_mngr_probe_stop().


Variable Documentation

const parse_menu_t clear_menu[] [static]

Initial value:

 {
    { "sync", NULL, 0, clear_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 300 of file ipprobe-mt_ui.c.

const parse_menu_t clear_sync_menu[] [static]

Initial value:

 {
    { "ipprobe-mt", NULL, 0, NULL, clear_probe },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 294 of file ipprobe-mt_ui.c.

const parse_menu_t master_menu[]

Initial value:

 {
    { "show", NULL, 0, show_menu, NULL }, 
    { "request", NULL, 0, request_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 306 of file ipprobe-mt_ui.c.

Referenced by main().

const parse_menu_t request_menu[] [static]

Initial value:

 {
    { "sync", NULL, 0, request_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 276 of file ipprobe-mt_ui.c.

const parse_menu_t request_sync_menu[] [static]

Initial value:

 {
    { "ipprobe-mt", NULL, 0, request_sync_probe_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 270 of file ipprobe-mt_ui.c.

const parse_menu_t request_sync_probe_menu[] [static]

Initial value:

 {
    { "start", NULL, 0, NULL, start_probe },
    { "stop", NULL, 0, NULL, stop_probe },
    { "clear", NULL, 0, NULL, clear_probe },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 262 of file ipprobe-mt_ui.c.

const parse_menu_t show_menu[] [static]

Initial value:

 {
    { "sync", NULL, 0, show_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 288 of file ipprobe-mt_ui.c.

const parse_menu_t show_sync_menu[] [static]

Initial value:

 {
    { "ipprobe-mt", NULL, 0, NULL, show_probe },
    { NULL, NULL, 0, NULL, NULL }
}

Definition at line 282 of file ipprobe-mt_ui.c.


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:00 2010 for SDK Your Net Corporation IP Probe MT: ipprobe-mt 1.0 by Doxygen 1.5.1