Tor
0.4.7.0-alpha-dev
|
Compact node-family structure. More...
#include "orconfig.h"
#include "ht.h"
Go to the source code of this file.
Data Structures | |
struct | nodefamily_t |
Macros | |
#define | NODEFAMILY_MEMBER_LEN (1+DIGEST_LEN) |
#define | NODEFAMILY_BY_RSA_ID 0 |
#define | NODEFAMILY_BY_NICKNAME 1 |
#define | NODEFAMILY_ARRAY_SIZE(n) ((n) * NODEFAMILY_MEMBER_LEN) |
#define | NODEFAMILY_MEMBER_PTR(nf, i) (&((nf)->family_members[(i) * NODEFAMILY_MEMBER_LEN])) |
Compact node-family structure.
Definition in file nodefamily_st.h.
#define NODEFAMILY_ARRAY_SIZE | ( | n | ) | ((n) * NODEFAMILY_MEMBER_LEN) |
Number of bytes to allocate in the array for a nodefamily_t with N members.
Definition at line 44 of file nodefamily_st.h.
#define NODEFAMILY_BY_NICKNAME 1 |
Tag byte, indicates that the following bytes are a NUL-padded nickname.
Definition at line 39 of file nodefamily_st.h.
#define NODEFAMILY_BY_RSA_ID 0 |
Tag byte, indicates that the following bytes are a RSA1024 SHA1 ID.
Definition at line 36 of file nodefamily_st.h.
#define NODEFAMILY_MEMBER_PTR | ( | nf, | |
i | |||
) | (&((nf)->family_members[(i) * NODEFAMILY_MEMBER_LEN])) |
Pointer to the i'th member of nf, as encoded.
Definition at line 50 of file nodefamily_st.h.