+typedef struct
+{
+ int state; // current state (bundlestate enum)
+ uint32_t seq_num_t; // Sequence Number (transmission)
+ uint32_t timeout; // Session-Timeout for bundle
+ uint32_t max_seq; // Max value of sequence number field
+ uint8_t num_of_links; // Number of links joint to this bundle
+ uint32_t online_time; // The time this bundle is online
+ clockt last_check; // Last time the timeout is checked
+ uint32_t mrru; // Multilink Max-Receive-Reconstructed-Unit
+ uint8_t mssf; // Multilink Short Sequence Number Header Format
+ epdist epdis; // Multilink Endpoint Discriminator
+ char user[MAXUSER]; // Needed for matching member links
+ sessionidt current_ses; // Current session to use for sending (used in RR load-balancing)
+ sessionidt members[MAXBUNDLESES]; // Array for member links sessions
+}
+bundlet;
+
+typedef struct
+{
+ fragmentt fragment[MAXFRAGNUM];
+ uint8_t reassembled_frame[MAXETHER]; // The reassembled frame
+ uint16_t re_frame_len; // The reassembled frame length
+ uint16_t re_frame_begin_index, re_frame_end_index; // reassembled frame begin index, end index respectively
+ uint16_t start_index, end_index; // start and end sequence numbers available on the fragments array respectively
+ uint32_t M; // Minumum frame sequence number received over all bundle members
+ uint32_t start_seq; // Last received frame sequence number (bearing B bit)
+}
+fragmentationt;
+