Tor  0.4.3.0-alpha-dev
Data Structures | Macros
routerinfo_st.h File Reference

Router descriptor structure. More...

#include "feature/nodelist/signed_descriptor_st.h"

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

#define ROUTER_PURPOSE_BRIDGE   2

Tor should use this router only for bridge positions in circuits: we got it via a directory request from the bridge itself, or a bridge authority.

Definition at line 108 of file routerinfo_st.h.

◆ 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 104 of file routerinfo_st.h.

◆ ROUTER_PURPOSE_GENERAL

#define ROUTER_PURPOSE_GENERAL   0

Tor can use this router for general positions in circuits; we got it from a directory server as usual, or we're an authority and a server uploaded it.

Definition at line 100 of file routerinfo_st.h.

◆ 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 111 of file routerinfo_st.h.