Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Macros | Functions | Variables
hicn_vpp_comm.h File Reference

This file contains binary api to connect to the VPP. More...

#include <sysrepo.h>
#include <sysrepo/values.h>
#include <vapi/vapi.h>
Include dependency graph for hicn_vpp_comm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HICN_THIS_FUNC   __func__
 
#define VPP_INTFC_NAME_LEN   64
 This macro is interface.c to communicate with vpp.
 
#define VPP_MAC_ADDRESS_LEN   8
 
#define VPP_IP6_ADDRESS_LEN   16
 
#define ARG_CHECK(retval, arg)
 This macro checks the arg is NULL or not, if the arg is NULL it returns retval. More...
 
#define ARG_CHECK2(retval, arg1, arg2)
 Please check ARG_CHECK. More...
 
#define ARG_CHECK5(retval, arg1, arg2, arg3, arg4, arg5)
 This Macro is the multiple check of ARG_CHECK. More...
 

Functions

int hicn_connect_vpp ()
 This function is used to connect to the vpp.
 
int hicn_disconnect_vpp ()
 This function is used to close the connection of the vpp.
 

Variables

vapi_ctx_t g_vapi_ctx_instance
 This is the context to connect to the vpp.
 

Detailed Description

This file contains binary api to connect to the VPP.

Macro Definition Documentation

◆ ARG_CHECK

#define ARG_CHECK (   retval,
  arg 
)
Value:
do { \
if (NULL == (arg)) { \
SRP_LOG_DBGMSG("NULL pointer passed."); \
return (retval); \
} \
} while (0)

This macro checks the arg is NULL or not, if the arg is NULL it returns retval.

◆ ARG_CHECK2

#define ARG_CHECK2 (   retval,
  arg1,
  arg2 
)
Value:
ARG_CHECK(retval, arg1); \
ARG_CHECK(retval, arg2)

Please check ARG_CHECK.

◆ ARG_CHECK5

#define ARG_CHECK5 (   retval,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)
Value:
ARG_CHECK(retval, arg1); \
ARG_CHECK(retval, arg2); \
ARG_CHECK(retval, arg3); \
ARG_CHECK(retval, arg4); \
ARG_CHECK(retval, arg5)

This Macro is the multiple check of ARG_CHECK.

ARG_CHECK
#define ARG_CHECK(retval, arg)
This macro checks the arg is NULL or not, if the arg is NULL it returns retval.
Definition: hicn_vpp_comm.h:56