calc_single_hash.c

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: examples/hashref/calc_single_hash/calc_single_hash.c File Reference
calc_single_hash.c File Reference
#include <string.h>
#include <stdio.h>
#include <arpa/inet.h>
#include "ntutil.h"

Go to the source code of this file.

Functions

static int set_adapter_info (NtHashRefConfig_t *config, enum NtHashRefHashMode_e hash_mode)
 
static int do_2tuple_ipv4 (void)
 
static int do_2tuple_ipv6 (void)
 
static int do_5tuple_ipv4 (void)
 
static int do_5tuple_ipv6 (void)
 
static int do_ipfragmenttuple_ipv4 (void)
 
int main (void)
 

Function Documentation

static int set_adapter_info ( NtHashRefConfig_t config,
enum NtHashRefHashMode_e  hash_mode 
)
static
Examples:
hashref/calc_single_hash/calc_single_hash.c.

Definition at line 79 of file calc_single_hash.c.

Referenced by do_2tuple_ipv4(), do_2tuple_ipv6(), do_5tuple_ipv4(), do_5tuple_ipv6(), and do_ipfragmenttuple_ipv4().

static int do_2tuple_ipv4 ( void  )
static
Examples:
hashref/calc_single_hash/calc_single_hash.c.

Definition at line 98 of file calc_single_hash.c.

Referenced by main().

static int do_2tuple_ipv6 ( void  )
static
Examples:
hashref/calc_single_hash/calc_single_hash.c.

Definition at line 154 of file calc_single_hash.c.

Referenced by main().

static int do_5tuple_ipv4 ( void  )
static
Examples:
hashref/calc_single_hash/calc_single_hash.c.

Definition at line 219 of file calc_single_hash.c.

Referenced by main().

static int do_5tuple_ipv6 ( void  )
static
Examples:
hashref/calc_single_hash/calc_single_hash.c.

Definition at line 282 of file calc_single_hash.c.

Referenced by main().

static int do_ipfragmenttuple_ipv4 ( void  )
static
Examples:
hashref/calc_single_hash/calc_single_hash.c.

Definition at line 353 of file calc_single_hash.c.

Referenced by main().

int main ( void  )

Definition at line 411 of file calc_single_hash.c.