Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27909 Details for
Bug 45587
/etc/ethers patch for net.eth0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add arp entries to system cache
net.eth0.patch (text/plain), 595 bytes, created by
Bash
on 2004-03-24 04:23:37 UTC
(
hide
)
Description:
add arp entries to system cache
Filename:
MIME Type:
Creator:
Bash
Created:
2004-03-24 04:23:37 UTC
Size:
595 bytes
patch
obsolete
>--- net.eth0.orig 2004-03-18 09:18:51.000000000 +0300 >+++ net.eth0 2004-03-24 15:12:47.778553624 +0300 >@@ -139,6 +139,13 @@ > then > echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter > fi >+ >+ # Add static ARP entries from /etc/ethers >+ if [ -s /etc/ethers ] >+ then >+ gawk '{system("arp -s "$2" "$1)}' /etc/ethers >+ fi >+ > } > > iface_stop() { >@@ -150,6 +157,12 @@ > > ebegin "Bringing ${IFACE} down" > >+ # Remove static entries from ARP cache >+ if [ -s /etc/ethers ] >+ then >+ gawk '{system("arp -d "$2)}' /etc/ethers >+ fi >+ > # Also down the inet6 interfaces > if [ -n "${myinet6}" ] > then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45587
: 27909