/* Create the named pipe that we will be communicating with wireshark through.  */
static void named_pipe_create(char *name)
/* Create the named pipe that we will be communicating with wireshark through.  */
static void named_pipe_create(char *name)
{
    int rv = 0;
    rv = mkfifo(name, 0666);
    if ((rv == -1) && (errno != EEXIST)) 
    {
        perror("Error creating named pipe");
        exit(1);
    }
    FD_pipe = open(name, O_WRONLY);
    if (FD_pipe == -1) 
    {
        perror("Error connecting to named pipe");
        exit(1);
    }
}