- char *name; /* name of this connection */
- int protocol_version; /* used protocol */
- long int options; /* options turned on for this connection */
+ char *name; /* name of this node */
+ long int options; /* options turned on for this node */
+
+ sockaddr_t address; /* his real (internet) ip to send UDP packets to */
+ char *hostname; /* the hostname of its real ip */
+
+ node_status_t status;
+
+ int cipher; /* Cipher type for UDP packets */
+ char *cipherkey; /* Cipher key */
+ int cipherkeylen; /* Cipher key length */
+ int cipherblklen;
+ gcry_cipher_hd_t cipher_ctx; /* Cipher context */
+
+ int digest; /* Digest type for MAC */
+ char *digestkey;
+ int digestlen;
+ int maclength; /* Length of MAC */
+ gcry_md_hd_t digest_ctx;