bypass_watchdog_example.c

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
Napatech Software Suite: examples/bypass/watchdog/bypass_watchdog_example.c File Reference
bypass_watchdog_example.c File Reference
#include <nt.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <argparse.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 168 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",
NULL
}
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 119 of file bypass_watchdog_example.c.

Referenced by main().

volatile bool stopApplication = false
static

Definition at line 128 of file bypass_watchdog_example.c.

Referenced by main(), and StopApplication().

int portNo = -1
static
int watchdogTimeoutMsec = -1
static
int watchdogDelayMsec = -1
static
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 156 of file bypass_watchdog_example.c.