Staging: batman-adv: layer2 unicast packet fragmentation
[firefly-linux-kernel-4.4.55.git] / drivers / staging / batman-adv / unicast.h
index dd00703103fde15c6c81927c2df40f02c357dfb2..1d5cbeb6733f47de7c8727176ca4210d61567148 100644 (file)
 #ifndef _NET_BATMAN_ADV_UNICAST_H_
 #define _NET_BATMAN_ADV_UNICAST_H_
 
+#define FRAG_TIMEOUT 10000     /* purge frag list entrys after time in ms */
+#define FRAG_BUFFER_SIZE 6     /* number of list elements in buffer */
+
+struct sk_buff *merge_frag_packet(struct list_head *head,
+       struct frag_packet_list_entry *tfp,
+       struct sk_buff *skb);
+
+void create_frag_entry(struct list_head *head, struct sk_buff *skb);
+void create_frag_buffer(struct list_head *head);
+struct frag_packet_list_entry *search_frag_packet(struct list_head *head,
+       struct unicast_frag_packet *up);
+void frag_list_free(struct list_head *head);
 int unicast_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv);
 
 #endif /* _NET_BATMAN_ADV_UNICAST_H_ */