+ if (olsr_cnf->smart_gw_active) {
+ char procfile[FILENAME_MAX];
+
+ /* Generate the procfile name */
+ snprintf(procfile, sizeof(procfile), PROC_IF_SPOOF, TUNNEL_ENDPOINT_IF);
+ if (writeToProc(procfile, &orig_tunnel_rp_filter, '0')) {
+ OLSR_PRINTF(0, "WARNING! Could not disable the IP spoof filter for tunnel!\n"
+ "you should mannually ensure that IP spoof filtering is disabled!\n\n");
+
+ olsr_startup_sleep(3);
+ }
+
+ if (olsr_cnf->ip_version == AF_INET6) {
+ snprintf(procfile, sizeof(procfile), PROC_IF_SPOOF, TUNNEL_ENDPOINT_IF6);
+ if (writeToProc(procfile, &orig_tunnel6_rp_filter, '0')) {
+ OLSR_PRINTF(0, "WARNING! Could not disable the IP spoof filter for tunnel6!\n"
+ "you should mannually ensure that IP spoof filtering is disabled!\n\n");
+
+ olsr_startup_sleep(3);
+ }
+ }
+ }
+