Tor  0.4.7.0-alpha-dev
Functions
proto_control0.c File Reference

Code to detect the obsolete v0 control protocol. More...

#include "core/or/or.h"
#include "lib/buf/buffers.h"
#include "core/proto/proto_control0.h"

Go to the source code of this file.

Functions

int peek_buf_has_control0_command (buf_t *buf)
 

Detailed Description

Code to detect the obsolete v0 control protocol.

Definition in file proto_control0.c.

Function Documentation

◆ peek_buf_has_control0_command()

int peek_buf_has_control0_command ( buf_t *  buf)

Return 1 iff buf looks more like it has an (obsolete) v0 controller command on it than any valid v1 controller command.

Definition at line 19 of file proto_control0.c.

Referenced by peek_connection_has_control0_command().