summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peer.h b/src/peer.h
index 4d87e3a..12f591d 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -148,6 +148,10 @@ static inline void fastd_peer_unschedule_handshake(fastd_context_t *ctx UNUSED,
fastd_dlist_remove(&peer->handshake_entry);
}
+static inline bool fastd_peer_handshake_scheduled(fastd_context_t *ctx UNUSED, fastd_peer_t *peer) {
+ return fastd_dlist_linked(&peer->handshake_entry);
+}
+
const fastd_eth_addr_t* fastd_get_source_address(const fastd_context_t *ctx, fastd_buffer_t buffer);
const fastd_eth_addr_t* fastd_get_dest_address(const fastd_context_t *ctx, fastd_buffer_t buffer);