Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 19695 | Differences between
and this patch

Collapse All | Expand All

(-)/etc/init.d/net.eth.orig (+19 lines)
Lines 107-112 Link Here
107
		eend 0
107
		eend 0
108
	fi
108
	fi
109
109
110
	# Set up static routes (if any)
111
	if eval [ \"\${stroutes_$IFACE}\" ]; then
112
		ebegin "  Setting static routes"
113
		local route= target= mask= gw= ttype=
114
		for route in $(eval echo \${stroutes_$IFACE}); do
115
			target=${route%%_*}
116
			mask=${target##*/}
117
			gw=${route##*_}
118
			if [ -z "$mask" -o "$mask" = '32' ]; then
119
				ttype=host
120
			else
121
				ttype=net
122
			fi
123
			/sbin/route add -$ttype $target gw $gw dev $IFACE
124
			retval=$?
125
		done
126
		eend $retval
127
	fi
128
110
	# Enabling rp_filter causes wacky packets to be auto-dropped by
129
	# Enabling rp_filter causes wacky packets to be auto-dropped by
111
	# the kernel
130
	# the kernel
112
	if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
131
	if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]

Return to bug 19695