Hi Guys,

freebsd-rc did not react, so I'm just checking on -net too.

I found after upgrading that vlan handling broke. I tried the following:

vlans_bce1="6"
ipv4_addrs_bce1_6="inet 10.239.100.2/24"
ifconfig_bce1_6_aliases="inet 10.239.100.2/24"
ifconfig_bce1_6_alias0="inet 10.239.100.2/24"

I traced it down to ifalias_af_common_handler being called with the
mangled interfcace name _if and it then calls ifconfig with it. Here
is my fix. Any reason not to commit it? My diff is against 10-stable,
but head looks the same.

#################
--- /etc/network.subr.orig      2014-06-01 17:30:38.000000000 +0000
+++ /etc/network.subr   2014-06-01 18:03:08.030175024 +0000
@@ -1151,7 +1151,7 @@
                inet|inet6|ipx|link|ether)
                        case $_tmpargs in
                        ${_af}\ *)
-                               eval ifalias_af_common_handler $_if $_af 
$_action $_tmpargs && _ret=0
+                               eval ifalias_af_common_handler $1 $_af $_action 
$_tmpargs && _ret=0
                        ;;
                        esac
                        _tmpargs=$_c
@@ -1163,7 +1163,7 @@
        # Process the last component
        case $_tmpargs in
        ${_af}\ *)
-               ifalias_af_common_handler $_if $_af $_action $_tmpargs && _ret=0
+               ifalias_af_common_handler $1 $_af $_action $_tmpargs && _ret=0
        ;;
        esac
 
#################

While looking through the code I saw that ltr is called with different
styling. Is there a reason for it? Which is the prefered style?

        ltr ${_if} "${_punct}" '_' _if
        ltr "$_if" "$_punct" "_" _if

My own preference would be the first.

Regards

John
-- 
John Hay -- j...@meraka.csir.co.za / j...@meraka.org.za
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to