#include "meshlink_internal.h"
#include "sockaddr.h"
#include "sptps.h"
-#include "utcp.h"
typedef struct node_status_t {
uint16_t validkey: 1; /* 1 if we currently have a valid key for him */
// Private member variables
node_status_t status;
- uint16_t minmtu; /* Probed minimum MTU */
dev_class_t devclass;
- // Used for packet I/O
uint32_t session_id; /* Unique ID for this node's currently running process */
- sptps_t sptps;
-
- struct utcp *utcp;
-
- // Traffic counters
- uint64_t in_packets;
- uint64_t in_bytes;
- uint64_t out_packets;
- uint64_t out_bytes;
-
- // MTU probes
- timeout_t mtutimeout; /* Probe event */
- int mtuprobes; /* Number of probes */
- uint16_t mtu; /* Maximum size of packets to send to this node */
- uint16_t maxmtu; /* Probed maximum MTU */
// Used for meta-connection I/O, timeouts
struct meshlink_handle *mesh; /* The mesh this node belongs to */
- time_t last_req_key;
-
struct ecdsa *ecdsa; /* His public ECDSA key */
struct connection_t *connection; /* Connection associated with this node (if a direct connection exists) */