summaryrefslogtreecommitdiffstats
path: root/src/dlist.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-16 18:33:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-16 18:33:51 +0200
commit118ebb9d65b44fb734aee3ebd31ecdaffd38c615 (patch)
treecfb4e9f8ad1364dbfe411e6c6dc6c5139b08016c /src/dlist.h
parent4c188ac86175422bc44e88e037b01acaba781cb7 (diff)
downloadfastd-118ebb9d65b44fb734aee3ebd31ecdaffd38c615.tar
fastd-118ebb9d65b44fb734aee3ebd31ecdaffd38c615.zip
Initiate handshake when a packet can't be sent because the local address is invalid
Diffstat (limited to 'src/dlist.h')
-rw-r--r--src/dlist.h4
1 files changed, 4 insertions, 0 deletions
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;