Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Macros | Functions
/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/sync_pipe.h File Reference

Go to the source code of this file.

Macros

#define SP_MAX_MSG_LEN   4096
 
#define SP_DECISIZE   20
 
#define SP_FILE   'F' /* the name of the recently opened file */
 
#define SP_ERROR_MSG   'E' /* error message */
 
#define SP_BAD_FILTER   'B' /* error message for bad capture filter */
 
#define SP_PACKET_COUNT   'P' /* count of packets captured since last message */
 
#define SP_DROPS   'D' /* count of packets dropped in capture */
 
#define SP_SUCCESS   'S' /* success indication, no extra data */
 
#define SP_TOOLBAR_CTRL   'T' /* interface toolbar control packet */
 
#define SP_QUIT   'Q' /* "gracefully" capture quit message (SIGUSR1) */
 
#define SIGNAL_PIPE_CTRL_ID_NONE   "none"
 

Functions

ssize_t pipe_write_header (int pipe_fd, char indicator, int length)
 
void pipe_write_block (int pipe_fd, char indicator, const char *msg)
 
void sync_pipe_errmsg_to_parent (int pipe_fd, const char *error_msg, const char *secondary_error_msg)
 

Detailed Description

Low-level sync pipe interfaces.

Macro Definition Documentation

#define SIGNAL_PIPE_CTRL_ID_NONE   "none"

Has the parent signalled the child to stop?

Function Documentation

void sync_pipe_errmsg_to_parent ( int  pipe_fd,
const char *  error_msg,
const char *  secondary_error_msg 
)

the child encountered an error, notify the parent