summaryrefslogtreecommitdiff
path: root/patches/0074-netdevice-mtu-range-ifdefs.cocci
blob: 5689f4382714659b2d6251dde27717c90a6929fe (plain)
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
@@
expression ndevexp;
expression E;
identifier func;
@@
func(...) {
	<+...
+#if LINUX_VERSION_IS_GEQ(4,10,0)
	ndevexp->min_mtu = E;
+#endif
	...+>
}

@@
expression ndevexp;
expression E;
identifier func;
@@
func(...) {
	<+...
+#if LINUX_VERSION_IS_GEQ(4,10,0)
	ndevexp->max_mtu = E;
+#endif
	...+>
}