-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathelements_patch1.diff
executable file
·44 lines (43 loc) · 1.34 KB
/
elements_patch1.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- ../click-2.0.1/userlevel/elements.cc 2013-07-27 16:49:32.265234210 -0400
+++ ../click-2.0.1/userlevel/elements.cc 2013-07-29 11:34:13.517309367 -0400
@@ -62,10 +62,10 @@
#include "../elements/analysis/fromnetflowsumdump.hh"
#include "../elements/xia/xiapaintswitch.hh"
#include "../elements/xia/iprandomize.hh"
-+#ifdef CLICK_ANDROID
-+#else
+#ifdef CLICK_ANDROID
+#else
#include "../elements/userlevel/ipflowrawsockets.hh"
-+#endif
+#endif
#include "../elements/standard/hub.hh"
#include "../elements/standard/devirtualizeinfo.hh"
#include <click/standard/alignmentinfo.hh>
@@ -674,10 +674,10 @@ beetlemonkey(uintptr_t heywood)
case 333: return new XIAXIDTypeCounter;
case 334: return new XRoute;
case 335: return new XTRANSPORT;
-+#ifdef CLICK_ANDROID
-+#else
+#ifdef CLICK_ANDROID
+#else
case 336: return new IPFlowRawSockets;
-+#endif
+#endif
default: return 0;
}
}
@@ -1035,10 +1035,10 @@ click_export_elements()
(void) click_add_element_type_stable("XIAXIDTypeCounter", beetlemonkey, 333);
(void) click_add_element_type_stable("XRoute", beetlemonkey, 334);
(void) click_add_element_type_stable("XTRANSPORT", beetlemonkey, 335);
-+#ifdef CLICK_ANDROID
-+#else
+#ifdef CLICK_ANDROID
+#else
(void) click_add_element_type_stable("IPFlowRawSockets", beetlemonkey, 336);
-+#endif
+#endif
CLICK_DMALLOC_REG("nXXX");
}