]> git.meshlink.io Git - meshlink/commitdiff
Adding ports and seqno to packet header
authorSaverio Proto <zioproto@gmail.com>
Sat, 28 Jun 2014 09:38:40 +0000 (11:38 +0200)
committerSaverio Proto <zioproto@gmail.com>
Sat, 28 Jun 2014 09:38:40 +0000 (11:38 +0200)
src/meshlink_internal.h

index 5279a63dd0a332ede229b795f97670fde2d0faff..8700b94e5a1ef2f3a898ce026e6987a032b2416a 100644 (file)
@@ -133,6 +133,9 @@ struct meshlink_node {
 typedef struct meshlink_packethdr {
        uint8_t destination[16];
        uint8_t source[16];
+       uint16_t dport;
+       uint16_t sport;
+       uint16_t seqno;
 } __attribute__ ((__packed__)) meshlink_packethdr_t;
 
 extern void meshlink_send_from_queue(event_loop_t* el,meshlink_handle_t *mesh);