misc/88721: FreeBSD 6.0 /etc/pccard_ether doesn't set route correctly

Jürgen Lesny x at 123.org
Wed Nov 9 05:10:12 PST 2005


>Number:         88721
>Category:       misc
>Synopsis:       FreeBSD 6.0 /etc/pccard_ether doesn't set route correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 09 13:10:10 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jürgen Lesny
>Release:        6.0
>Organization:
123.org
>Environment:
FreeBSD laprbg7.informatik.tu-muenchen.de 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I configure my WLAN-Card with following /etc/start_if.wi0

ifconfig_wi0="192.168.1.99 channel 13 ssid ABC wepmode on weptxkey 1 wepkey 1:0x0123456789 stationname ZYX"
defaultrouter="192.168.1.1"

when I plug my Card, the interface is set correctly, but the route is missing

After debugging /etc/pccard_ether, I noticed that /etc/start_if.$ifn is not included for the routing Subroutines
I added the function ifscript_up from /etc/network.subr and it worked fine

>How-To-Repeat:
1. configure your Interface manually with /etc/start_if.XX
2a. plug your Ethernet/WLAN Card
2b. or do   ifconfig XX delete ; /etc/pccard_ether XX start 

>Fix:
Use this patch:


*** pccard_ether.orig   Wed Nov  9 13:05:19 2005
--- pccard_ether        Wed Nov  9 13:19:07 2005
***************
*** 70,75 ****
--- 70,76 ----

  case ${startstop} in
  [Ss][Tt][Aa][Rr][Tt] | '')
+       ifscript_up $ifn
        if [ -x /usr/bin/grep ]; then
                if ifconfig $ifn | grep -s netmask > /dev/null 2>&1; then
                    # Interface is already up, so ignore it.
***************
*** 95,100 ****
--- 96,102 ----

  # Stop the interface
  [Ss][Tt][Oo][Pp])
+       ifscript_down $ifn
        if [ -n "`ifconfig_getargs $ifn`" ]; then
                if ! dhcpif $ifn; then
                        remove_routes

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list