Special keywords in ifconfig_xx varaibles in /etc/rc.conf cannot be escaped. However, some of these keywords may be mandatory in ifconfig arguments, for example, in : ifconfig_ath0="inet 192.168.101.1 netmask 255.255.255.0 ssid Winet channel 9 mode 11g mediaopt hostap media OFDM54 authmode WPA" The "WPA" is used to mounf the interface using WPA, insead of setting the authmode. How-To-Repeat: Configure an interface this way : ifconfig_ath0="inet 192.168.101.1 netmask 255.255.255.0 ssid Winet channel 9 mode 11g mediaopt hostap media OFDM54 authmode WPA" Other keywords like DHCP may trigger the problem as well.
State Changed From-To: open->feedback Requested feedback.
Responsible Changed From-To: freebsd-bugs->freebsd-rc This is part of rc.d.
Setting "authmode WPA" makes no sense. It's only supported by ifconfig for completeness and is useless without wpa_supplicant. As such I can't see a reason to try to fix this. Do you have a practical example? -- Brooks
From what I understand, wpa_supplicant is only used by client stations. In my case, I am configuring an access point with hostapd for the wpa handling, and do not require wpa_supplicant in any way, hence the configuration line I added in the intial report. More generaly, keywords can not be used anywhere in the ifconfig command line: you cannot set your ssid to such values, for example. There are workarounds, like running an extra ifconfig command in start_if.ath0, but that's just plain ugly, and I use FreeBSD to avoid this. Having an extra keyword meaning "do not look thereafter" could do the trick (something like "--" on command lines). -- Jc
Here is a patch for /etc/network.subr that handles a special string "--" so that keywords found thereafter are ignored. -- Jc
State Changed From-To: feedback->open Feedback and a patch was received some time ago.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
^Triage: is this still a problem with recent versions of FreeBSD?
(In reply to Mark Linimon from comment #9) Still an issue, /etc/network.subr was not patched.
(In reply to Jean-Charles Longuet from comment #10) OK, thanks for the response.