bypass_watchdog_example.c

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.15
Napatech Software Suite: examples/bypass/watchdog/bypass_watchdog_example.c File Reference
bypass_watchdog_example.c File Reference
#include <nt.h>
#include <unistd.h>
#include <signal.h>
#include <stdatomic.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.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 atomic_int appRunning = 1
 
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
int portNo = -1
static
int watchdogTimeoutMsec = -1
static
Examples:
bypass/watchdog/bypass_watchdog_example.c.

Definition at line 132 of file bypass_watchdog_example.c.

Referenced by main().

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

Definition at line 133 of file bypass_watchdog_example.c.

Referenced by main().

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 138 of file bypass_watchdog_example.c.