EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Functions | Variables
protobuf_middleware.h File Reference

File containing the definition of the protobuf middleware utilities. More...

#include "../../middleware.h"
Include dependency graph for protobuf_middleware.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int pipe_protobuf_tuple_packet (const char *path, int *fd, struct tuple_packet *p)
 pipe the serialised protobuf tuple packets More...
 
int pipe_protobuf_packets (const char *path, int *fd, UT_array *packets)
 pipe the serialised protobuf packets More...
 

Variables

struct capture_middleware protobuf_middleware
 protobuf Capture Middleware. The protobuf capture middleware generates protobuf messages from caprtured traffic. More...
 

Detailed Description

File containing the definition of the protobuf middleware utilities.

Author
Alexandru Mereacre
Date
2022

Function Documentation

◆ pipe_protobuf_packets()

int pipe_protobuf_packets ( const char *  path,
int *  fd,
UT_array *  packets 
)

pipe the serialised protobuf packets

Parameters
path[in]The pipe file path
fd[in]The pipe file descriptor
packets[in]The array of packets
Returns
0 on success, -1 otherwise

◆ pipe_protobuf_tuple_packet()

int pipe_protobuf_tuple_packet ( const char *  path,
int *  fd,
struct tuple_packet p 
)

pipe the serialised protobuf tuple packets

Parameters
path[in]The pipe file path
fd[in,out]The pipe file descriptor. If 0, this will be set to a new fd pointing to path.
p[in]The tuple packet
Returns
0 on success, -1 otherwise

Variable Documentation

◆ protobuf_middleware

struct capture_middleware protobuf_middleware
extern

protobuf Capture Middleware. The protobuf capture middleware generates protobuf messages from caprtured traffic.

Authors
Alexandru Mereacre