Lines 139-144
Link Here
|
139 |
then |
139 |
then |
140 |
echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter |
140 |
echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter |
141 |
fi |
141 |
fi |
|
|
142 |
|
143 |
# Add static ARP entries from /etc/ethers |
144 |
if [ -s /etc/ethers ] |
145 |
then |
146 |
gawk '{system("arp -s "$2" "$1)}' /etc/ethers |
147 |
fi |
148 |
|
142 |
} |
149 |
} |
143 |
|
150 |
|
144 |
iface_stop() { |
151 |
iface_stop() { |
Lines 150-155
Link Here
|
150 |
|
157 |
|
151 |
ebegin "Bringing ${IFACE} down" |
158 |
ebegin "Bringing ${IFACE} down" |
152 |
|
159 |
|
|
|
160 |
# Remove static entries from ARP cache |
161 |
if [ -s /etc/ethers ] |
162 |
then |
163 |
gawk '{system("arp -d "$2)}' /etc/ethers |
164 |
fi |
165 |
|
153 |
# Also down the inet6 interfaces |
166 |
# Also down the inet6 interfaces |
154 |
if [ -n "${myinet6}" ] |
167 |
if [ -n "${myinet6}" ] |
155 |
then |
168 |
then |