Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 251115 Details for
Bug 265531
net-misc/dhcp-3.1.1: dhclient ignores nogateway option and installs a gateway regardless
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for version 4.1.0
dhclient-script-4.1.0.patch (text/plain), 1.69 KB, created by
Laszlo Valko
on 2010-10-18 11:57:43 UTC
(
hide
)
Description:
patch for version 4.1.0
Filename:
MIME Type:
Creator:
Laszlo Valko
Created:
2010-10-18 11:57:43 UTC
Size:
1.69 KB
patch
obsolete
>diff -Naur dhcp-4.1.0.orig/work/dhcp-4.1.0/client/scripts/linux dhcp-4.1.0/work/dhcp-4.1.0/client/scripts/linux >--- dhcp-4.1.0.orig/work/dhcp-4.1.0/client/scripts/linux 2010-10-18 13:45:26.161101541 +0200 >+++ dhcp-4.1.0/work/dhcp-4.1.0/client/scripts/linux 2010-10-18 13:52:26.561101580 +0200 >@@ -193,12 +193,14 @@ > route add -net $new_network_number $new_subnet_arg $metric_arg \ > dev $interface > fi >- for router in $new_routers; do >- if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then >- route add -host $router $metric_arg dev $interface >- fi >- route add default gw $router $metric_arg dev $interface >- done >+ if [ x$PEER_ROUTERS = x ] || [ x$PEER_ROUTERS = xyes ]; then >+ for router in $new_routers; do >+ if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then >+ route add -host $router $metric_arg dev $interface >+ fi >+ route add default gw $router $metric_arg dev $interface >+ done >+ fi > fi > if [ x$new_ip_address != x$alias_ip_address ] && [ x$alias_ip_address != x ]; > then >@@ -244,12 +246,14 @@ > ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] ); then > route add -net $new_network_number > fi >- for router in $new_routers; do >- if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then >- route add -host $router dev $interface >- fi >- route add default gw $router >- done >+ if [ x$PEER_ROUTERS = x ] || [ x$PEER_ROUTERS = xyes ]; then >+ for router in $new_routers; do >+ if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then >+ route add -host $router dev $interface >+ fi >+ route add default gw $router >+ done >+ fi > make_resolv_conf > exit_with_hooks 0 > fi
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 265531
:
215873
|
251113
| 251115