Remove dependency on kernel headers
authorBenjamin Poirier <benjamin.poirier@polymtl.ca>
Fri, 29 Jan 2010 17:20:43 +0000 (12:20 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 2 Feb 2010 21:59:39 +0000 (16:59 -0500)
Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
lttv/lttv/sync/event_processing_lttng_standard.c

index c3b4da23d4c3ca97942c98f9783ecd4b0a8d302d..876dac0858c501838e3c108b88af9194c094f527 100644 (file)
@@ -22,7 +22,6 @@
 #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, ...);
This page took 0.02407 seconds and 4 git commands to generate.