Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 13013 Details for
Bug 19695
no designated way to add static routes in gentoo(/etc/conf.d/local.start is kludgy)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch adds possibility to define static routes to net.ethN
gentoo_sr.patch (text/plain), 767 bytes, created by
Jukka Salmi
on 2003-06-09 16:16:27 UTC
(
hide
)
Description:
patch adds possibility to define static routes to net.ethN
Filename:
MIME Type:
Creator:
Jukka Salmi
Created:
2003-06-09 16:16:27 UTC
Size:
767 bytes
patch
obsolete
>--- /etc/init.d/net.eth.orig 2003-05-21 10:59:15.000000000 +0200 >+++ /etc/init.d/net.eth0 2003-05-21 16:26:04.000000000 +0200 >@@ -107,6 +107,25 @@ > eend 0 > fi > >+ # Set up static routes (if any) >+ if eval [ \"\${stroutes_$IFACE}\" ]; then >+ ebegin " Setting static routes" >+ local route= target= mask= gw= ttype= >+ for route in $(eval echo \${stroutes_$IFACE}); do >+ target=${route%%_*} >+ mask=${target##*/} >+ gw=${route##*_} >+ if [ -z "$mask" -o "$mask" = '32' ]; then >+ ttype=host >+ else >+ ttype=net >+ fi >+ /sbin/route add -$ttype $target gw $gw dev $IFACE >+ retval=$? >+ done >+ eend $retval >+ fi >+ > # Enabling rp_filter causes wacky packets to be auto-dropped by > # the kernel > if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
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 19695
:
11196
|
13013
|
19219
|
19220
|
27047