FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
punt_api.c File Reference
+ Include dependency graph for punt_api.c:

Go to the source code of this file.

Data Structures

struct  punt_socket_send_ctx_t_
 
struct  punt_reason_dump_walk_ctx_t_
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_punt_api_msg
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct punt_socket_send_ctx_t_ punt_socket_send_ctx_t
 
typedef struct punt_reason_dump_walk_ctx_t_ punt_reason_dump_walk_ctx_t
 

Functions

static int vl_api_punt_type_decode (vl_api_punt_type_t in, punt_type_t *out)
 
static vl_api_punt_type_t vl_api_punt_type_encode (punt_type_t in)
 
static int vl_api_punt_l4_decode (const vl_api_punt_l4_t *in, punt_l4_t *out)
 
static int vl_api_punt_ip_proto_decode (const vl_api_punt_ip_proto_t *in, punt_ip_proto_t *out)
 
static int vl_api_punt_exception_decode (const vl_api_punt_exception_t *in, punt_exception_t *out)
 
static int vl_api_punt_decode (const vl_api_punt_t *in, punt_reg_t *out)
 
static void vl_api_punt_l4_encode (const punt_l4_t *in, vl_api_punt_l4_t *out)
 
static void vl_api_punt_ip_proto_encode (const punt_ip_proto_t *in, vl_api_punt_ip_proto_t *out)
 
static void vl_api_punt_exception_encode (const punt_exception_t *in, vl_api_punt_exception_t *out)
 
static void vl_api_punt_encode (const punt_reg_t *in, vl_api_punt_t *out)
 
static void vl_api_set_punt_t_handler (vl_api_set_punt_t *mp)
 
static void vl_api_punt_socket_register_t_handler (vl_api_punt_socket_register_t *mp)
 
static walk_rc_t vl_api_punt_socket_send_details (const punt_client_t *pc, void *args)
 
static void vl_api_punt_socket_dump_t_handler (vl_api_punt_socket_dump_t *mp)
 
static void vl_api_punt_socket_deregister_t_handler (vl_api_punt_socket_deregister_t *mp)
 
static int punt_reason_dump_walk_cb (vlib_punt_reason_t id, const u8 *name, void *args)
 
static void vl_api_punt_reason_dump_t_handler (vl_api_punt_reason_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tpunt_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (punt_api_hookup)
 

Macro Definition Documentation

◆ foreach_punt_api_msg

#define foreach_punt_api_msg
Value:
_(SET_PUNT, set_punt) \
_(PUNT_SOCKET_REGISTER, punt_socket_register) \
_(PUNT_SOCKET_DEREGISTER, punt_socket_deregister) \
_(PUNT_SOCKET_DUMP, punt_socket_dump) \
_(PUNT_REASON_DUMP, punt_reason_dump)

Definition at line 43 of file punt_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 31 of file punt_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 383 of file punt_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 36 of file punt_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 37 of file punt_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 27 of file punt_api.c.

Typedef Documentation

◆ punt_reason_dump_walk_ctx_t

◆ punt_socket_send_ctx_t

Function Documentation

◆ punt_api_hookup()

static clib_error_t* punt_api_hookup ( vlib_main_t vm)
static

Definition at line 396 of file punt_api.c.

+ Here is the call graph for this function:

◆ punt_reason_dump_walk_cb()

static int punt_reason_dump_walk_cb ( vlib_punt_reason_t  id,
const u8 name,
void *  args 
)
static

Definition at line 334 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 388 of file punt_api.c.

+ Here is the caller graph for this function:

◆ vl_api_punt_decode()

static int vl_api_punt_decode ( const vl_api_punt_t *  in,
punt_reg_t out 
)
static

Definition at line 129 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_encode()

static void vl_api_punt_encode ( const punt_reg_t in,
vl_api_punt_t *  out 
)
static

Definition at line 177 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_exception_decode()

static int vl_api_punt_exception_decode ( const vl_api_punt_exception_t *  in,
punt_exception_t out 
)
static

Definition at line 117 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_exception_encode()

static void vl_api_punt_exception_encode ( const punt_exception_t in,
vl_api_punt_exception_t *  out 
)
static

Definition at line 170 of file punt_api.c.

+ Here is the caller graph for this function:

◆ vl_api_punt_ip_proto_decode()

static int vl_api_punt_ip_proto_decode ( const vl_api_punt_ip_proto_t *  in,
punt_ip_proto_t out 
)
static

Definition at line 103 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_ip_proto_encode()

static void vl_api_punt_ip_proto_encode ( const punt_ip_proto_t in,
vl_api_punt_ip_proto_t *  out 
)
static

Definition at line 162 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_l4_decode()

static int vl_api_punt_l4_decode ( const vl_api_punt_l4_t *  in,
punt_l4_t out 
)
static

Definition at line 87 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_l4_encode()

static void vl_api_punt_l4_encode ( const punt_l4_t in,
vl_api_punt_l4_t *  out 
)
static

Definition at line 154 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_reason_dump_t_handler()

static void vl_api_punt_reason_dump_t_handler ( vl_api_punt_reason_dump_t mp)
static

Definition at line 364 of file punt_api.c.

+ Here is the call graph for this function:

◆ vl_api_punt_socket_deregister_t_handler()

static void vl_api_punt_socket_deregister_t_handler ( vl_api_punt_socket_deregister_t mp)
static

Definition at line 302 of file punt_api.c.

+ Here is the call graph for this function:

◆ vl_api_punt_socket_dump_t_handler()

static void vl_api_punt_socket_dump_t_handler ( vl_api_punt_socket_dump_t mp)
static

Definition at line 281 of file punt_api.c.

+ Here is the call graph for this function:

◆ vl_api_punt_socket_register_t_handler()

static void vl_api_punt_socket_register_t_handler ( vl_api_punt_socket_register_t mp)
static

Definition at line 222 of file punt_api.c.

+ Here is the call graph for this function:

◆ vl_api_punt_socket_send_details()

static walk_rc_t vl_api_punt_socket_send_details ( const punt_client_t pc,
void *  args 
)
static

Definition at line 260 of file punt_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_punt_type_decode()

static int vl_api_punt_type_decode ( vl_api_punt_type_t  in,
punt_type_t out 
)
static

Definition at line 51 of file punt_api.c.

+ Here is the caller graph for this function:

◆ vl_api_punt_type_encode()

static vl_api_punt_type_t vl_api_punt_type_encode ( punt_type_t  in)
static

Definition at line 69 of file punt_api.c.

+ Here is the caller graph for this function:

◆ vl_api_set_punt_t_handler()

static void vl_api_set_punt_t_handler ( vl_api_set_punt_t mp)
static

Definition at line 197 of file punt_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( punt_api_hookup  )
+ Here is the caller graph for this function: