summaryrefslogtreecommitdiff
path: root/lib/librte_ip_frag
diff options
context:
space:
mode:
authorMarc Sune <marc.sune@bisdn.de>2015-01-21 18:00:26 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-01-27 12:32:45 +0100
commit9f516206d9a5fde6f25bae0553c6aa1a32a09b69 (patch)
tree851eb8cd051ccb84a8b5d7bd62530905c63798d8 /lib/librte_ip_frag
parentd10096c69267d2118ba7ecfe13d1b5627dbe538f (diff)
downloaddpdk-9f516206d9a5fde6f25bae0553c6aa1a32a09b69.zip
dpdk-9f516206d9a5fde6f25bae0553c6aa1a32a09b69.tar.gz
dpdk-9f516206d9a5fde6f25bae0553c6aa1a32a09b69.tar.xz
ip_frag: fix header for C++
Add missing extern 'C' decls in rte_ip_frag.h. Fixes: 601e279df074 ("move fragmentation/reassembly headers into a library") Signed-off-by: Marc Sune <marc.sune@bisdn.de> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'lib/librte_ip_frag')
-rw-r--r--lib/librte_ip_frag/rte_ip_frag.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h
index 3989a5a..1083d44 100644
--- a/lib/librte_ip_frag/rte_ip_frag.h
+++ b/lib/librte_ip_frag/rte_ip_frag.h
@@ -41,6 +41,10 @@
* Implementation of IP packet fragmentation and reassembly.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <stdio.h>
@@ -350,4 +354,8 @@ void rte_ip_frag_free_death_row(struct rte_ip_frag_death_row *dr,
void
rte_ip_frag_table_statistics_dump(FILE * f, const struct rte_ip_frag_tbl *tbl);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RTE_IP_FRAG_H_ */