bypass_watchdog_example.c

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: examples/bypass/watchdog/bypass_watchdog_example.c File Reference
bypass_watchdog_example.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <argparse.h>
#include "nt.h"

Go to the source code of this file.

Functions

static void StopApplication (int sig)
 
int main (int argc, const char *argv[])
 

Variables

static const char * usageText []
 
static volatile bool stopApplication = false
 
static int adapterNo = -1
 
static int portNo = -1
 
static int watchdogTimeoutMsec = -1
 
static int watchdogDelayMsec = -1
 
struct argparse_option arg_options []
 

Function Documentation

int main ( int  argc,
const char *  argv[] 
)

Definition at line 170 of file bypass_watchdog_example.c.

Variable Documentation

const char* usageText[]
static
Initial value:
=
{
"USAGE: bypass_watchdog_example [-a <adapter> | -p <port>] -t <watchdogTimeoutMsec> -s <watchdogDelayMsec>\n",
}
Examples:
bypass/watchdog/bypass_watchdog_example.c, net/capfileconvert/capfileconvert_example.c, net/ipfdemo/ipfdemo_example.c, net/readcapfile/readcapfile_example.c, net/replayGS/replayGS_example.c, net/transmit_multifunction/transmit_multifunction_example.c, and statUsage/statUsage_example.c.

Definition at line 121 of file bypass_watchdog_example.c.

Referenced by main().

volatile bool stopApplication = false
static

Definition at line 130 of file bypass_watchdog_example.c.

Referenced by main(), and StopApplication().

int portNo = -1
static
Examples:
bypass/watchdog/bypass_watchdog_example.c, and net/vlandemo/vlandemo_example.c.

Definition at line 151 of file bypass_watchdog_example.c.

Referenced by Is4GATxSupported(), and main().

int watchdogTimeoutMsec = -1
static
Examples:
bypass/watchdog/bypass_watchdog_example.c.

Definition at line 152 of file bypass_watchdog_example.c.

Referenced by main().

int watchdogDelayMsec = -1
static
Examples:
bypass/watchdog/bypass_watchdog_example.c.

Definition at line 153 of file bypass_watchdog_example.c.

struct argparse_option arg_options[]
Initial value:
= {
OPT_INTEGER('a', NULL, &adapterNo, "Adapter Number", NULL, 0, 0, "adapter number"),
OPT_INTEGER('p', NULL, &portNo, "Port Number", NULL, 0, 0, "port number"),
OPT_INTEGER('t', NULL, &watchdogTimeoutMsec, "Watchdog Timeout in msec", NULL, 0, 0, "msec"),
OPT_INTEGER('s', NULL, &watchdogDelayMsec, "Watchdog Delay in msec", NULL, 0, 0, "msec"),
}

Table of valid options.

Definition at line 158 of file bypass_watchdog_example.c.