FreeBSD Bugzilla – Attachment 130331 Details for
Bug 174225
[network.subr] [patch] add support for ipv6_addrs_IF style aliases to rc.conf(5)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1008 bytes, created by
Kimmo Paasiala
on 2012-12-06 11:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Kimmo Paasiala
Created:
2012-12-06 11:20:00 UTC
Size:
1008 bytes
patch
obsolete
>--- network.subr.orig 2012-12-04 16:36:54.777519679 +0200 >+++ network.subr 2012-12-04 16:37:15.578523530 +0200 >@@ -562,6 +562,7 @@ > fi > > ifalias_up ${_if} inet6 && _ret=0 >+ ipv6_addrs_common ${_if} alias && _ret=0 > ipv6_prefix_hostid_addr_common ${_if} alias && _ret=0 > ipv6_accept_rtadv_up ${_if} && _ret=0 > >@@ -684,6 +685,31 @@ > return $_ret > } > >+ >+ipv6_addrs_common() >+{ >+ local _ret _if _action _ip6prefix _ip6prefixes >+ local _ip6addr _prefixlen >+ _ret=1 >+ _if=$1 >+ _action=$2 >+ >+# get the prefixes from ipv6_addrs_IF variable >+ _ip6prefixes=`get_if_var $_if ipv6_addrs_IF` >+ for _ip6prefix in ${_ip6prefixes}; do >+ _ip6addr=${_ip6prefix%%/*} >+ _prefixlen=${_ip6prefix##*/} >+ if [ "${_action}" = "-alias" ]; then >+ _prefixlen="" >+ else >+ _prefixlen="prefixlen $_prefixlen" >+ fi >+ eval "ifconfig ${_if} inet6 ${_action} ${_ip6addr} ${_prefixlen}" >+ done >+} >+ >+ >+ > # ifalias_up if af > # Configure aliases for network interface $if. > # It returns 0 if at least one alias was configured or
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 174225
:
130331
|
130332
|
130333