#include <config.h>
#endif
-#include <linux/if_ether.h>
#include <math.h>
#include <netinet/in.h>
#include <stdarg.h>
#include "event_processing_lttng_standard.h"
+/* IPv4 Ethertype, taken from <linux/if_ether.h>, unlikely to change as it's
+ * defined by IANA: http://www.iana.org/assignments/ethernet-numbers
+ */
+#define ETH_P_IP 0x0800
+
// Functions common to all processing modules
static void initProcessingLTTVStandard(SyncState* const syncState, ...);
syncState, const unsigned int i, const unsigned int j);
// Functions specific to this module
-static void registerProcessingLTTVStandard() __attribute__((constructor (102)));
static gboolean processEventLTTVStandard(void* hookData, void* callData);
static void partialDestroyProcessingLTTVStandard(SyncState* const syncState);
/*
* Processing Module registering function
*/
-static void registerProcessingLTTVStandard()
+void registerProcessingLTTVStandard()
{
g_queue_push_tail(&processingModules, &processingModuleLTTVStandard);