From 118ebb9d65b44fb734aee3ebd31ecdaffd38c615 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 16 Oct 2013 18:33:51 +0200 Subject: Initiate handshake when a packet can't be sent because the local address is invalid --- src/dlist.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dlist.h') diff --git a/src/dlist.h b/src/dlist.h index 98b7fd3..d689ad3 100644 --- a/src/dlist.h +++ b/src/dlist.h @@ -40,6 +40,10 @@ struct fastd_dlist_head { }; +static inline bool fastd_dlist_linked(fastd_dlist_head_t *elem) { + return elem->prev; +} + static inline void fastd_dlist_insert(fastd_dlist_head_t *list, fastd_dlist_head_t *elem) { elem->prev = list; elem->next = list->next; -- cgit v1.2.3