Tor 0.4.9.8
Loading...
Searching...
No Matches
routerinfo_st.h File Reference

Router descriptor structure. More...

Go to the source code of this file.

Data Structures

struct  routerinfo_t
 

Macros

#define ROUTER_PURPOSE_GENERAL   0
 
#define ROUTER_PURPOSE_CONTROLLER   1
 
#define ROUTER_PURPOSE_BRIDGE   2
 
#define ROUTER_PURPOSE_UNKNOWN   255
 

Detailed Description

Router descriptor structure.

Definition in file routerinfo_st.h.

Macro Definition Documentation

◆ ROUTER_PURPOSE_BRIDGE

◆ ROUTER_PURPOSE_CONTROLLER

#define ROUTER_PURPOSE_CONTROLLER   1

Tor should avoid using this router for circuit-building: we got it from a controller. If the controller wants to use it, it'll have to ask for it by identity.

Definition at line 110 of file routerinfo_st.h.

Referenced by router_purpose_from_string(), and router_purpose_to_string().

◆ ROUTER_PURPOSE_GENERAL

◆ ROUTER_PURPOSE_UNKNOWN

#define ROUTER_PURPOSE_UNKNOWN   255

Tor should not use this router; it was marked in cached-descriptors with a purpose we didn't recognize.

Definition at line 117 of file routerinfo_st.h.

Referenced by handle_control_postdescriptor(), networkstatus_getinfo_by_purpose(), router_parse_entry_from_string(), and router_purpose_from_string().