… | |
… | |
41 | enum { |
41 | enum { |
42 | PROT_UDPv4 = 1, // udp over ipv4 |
42 | PROT_UDPv4 = 1, // udp over ipv4 |
43 | PROT_IPv4 = 2, // generic ip protocol |
43 | PROT_IPv4 = 2, // generic ip protocol |
44 | PROT_TCPv4 = 4, // tcp over ipv4 (NYI) |
44 | PROT_TCPv4 = 4, // tcp over ipv4 (NYI) |
45 | }; |
45 | }; |
|
|
46 | |
|
|
47 | // select the "best" protocol of the available ones |
|
|
48 | u8 best_protocol (u8 protset); |
|
|
49 | const char *strprotocol (u8 protocol); |
46 | |
50 | |
47 | struct conf_node { |
51 | struct conf_node { |
48 | int id; // the id of this node, a 12-bit-number |
52 | int id; // the id of this node, a 12-bit-number |
49 | |
53 | |
50 | RSA *rsa_key; // his public key |
54 | RSA *rsa_key; // his public key |