summaryrefslogtreecommitdiff
path: root/src/include/link.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/link.h')
-rw-r--r--src/include/link.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/link.h b/src/include/link.h
index a791c2f..908c4a9 100644
--- a/src/include/link.h
+++ b/src/include/link.h
@@ -33,10 +33,19 @@
#include <stdint.h>
#include "if_ether.h"
+/*
+ * Describes an ONET link
+ *
+ * @sockfd: Socket file descriptor
+ * @iface_idx: Interface index in use
+ * @hwaddr: Our hardware address
+ * @last_recv: Hardware address of last received node
+ */
struct onet_link {
int sockfd;
uint32_t iface_idx;
mac_addr_t hwaddr;
+ mac_addr_t last_recv;
};
/*