Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 252279 Details for
Bug 342953
net-misc/dhcp: rfc3442 (classless static routes) not supported
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
update routing from $new_rfc3442_classless_static_routes
dhclient-exit-hooks (text/plain), 1.00 KB, created by
Alex Efros
on 2010-10-27 18:40:27 UTC
(
hide
)
Description:
update routing from $new_rfc3442_classless_static_routes
Filename:
MIME Type:
Creator:
Alex Efros
Created:
2010-10-27 18:40:27 UTC
Size:
1.00 KB
patch
obsolete
>#!/bin/sh -x >if [ x"$new_rfc3442_classless_static_routes" != x"" ]; then > > if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ > [ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then > routes=($new_rfc3442_classless_static_routes) > > for(( i=0; i < ${#routes[@]}; )); do > net_length=${routes[$i]} > > ((i++)) > > net_address=(0 0 0 0) > for(( j=0; j < $[$net_length / 8 + ($net_length % 8 ? 1 : 0)]; j++, i++)); do > net_address[$j]=${routes[$i]} > done > > gateway=(0 0 0 0) > for (( j=0; j < 4; j++, i++ )); do > gateway[$j]=${routes[$i]} > done > > old_IFS="$IFS" > IFS='.' > > if [ x"$net_length" == x"32" ]; then > /sbin/route add -host "${net_address[*]}" gw "${gateway[*]}" > else > /sbin/route add -net "${net_address[*]}/$net_length" gw "${gateway[*]}" > fi > IFS="$old_IFS" > > done > > fi >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 Raw
Actions:
View
Attachments on
bug 342953
:
252251
|
252253
| 252279 |
380400