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 ...+> }