|
@@ -39,6 +39,9 @@ static int protocol_list_contains(const smartlist_t *protos,
|
|
|
static const struct {
|
|
|
protocol_type_t protover_type;
|
|
|
const char *name;
|
|
|
+/* If you add a new protocol here, you probably also want to add
|
|
|
+ * parsing for it in routerstatus_parse_entry_from_string() so that
|
|
|
+ * it is set in routerstatus_t */
|
|
|
} PROTOCOL_NAMES[] = {
|
|
|
{ PRT_LINK, "Link" },
|
|
|
{ PRT_LINKAUTH, "LinkAuth" },
|
|
@@ -49,6 +52,7 @@ static const struct {
|
|
|
{ PRT_HSREND, "HSRend" },
|
|
|
{ PRT_DESC, "Desc" },
|
|
|
{ PRT_MICRODESC, "Microdesc"},
|
|
|
+ { PRT_PADDING, "Padding"},
|
|
|
{ PRT_CONS, "Cons" }
|
|
|
};
|
|
|
|
|
@@ -396,7 +400,8 @@ protover_get_supported_protocols(void)
|
|
|
"LinkAuth=3 "
|
|
|
#endif
|
|
|
"Microdesc=1-2 "
|
|
|
- "Relay=1-2";
|
|
|
+ "Relay=1-2 "
|
|
|
+ "Padding=1";
|
|
|
}
|
|
|
|
|
|
/** The protocols from protover_get_supported_protocols(), as parsed into a
|