To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-net
or, via email, send a message with subject or body 'help' to
freebsd-n...@freebsd.org
You can reach the person managing the list at
freebsd-...@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-net digest..."
Today's Topics:
1. Re: sparc64/118932: [panic] 7.0-BETA4/sparc-64 kernel panic
in rip_output (m...@FreeBSD.org)
2. CFT: WPA(WPA-None) in IBSS(ahdoc) mode (Bernhard Schmidt)
3. ::1 magically replaced with other address (2) (Pieter de Boer)
4. bridged wlan/ether still the same (Randy Bush)
5. Re: bridged wlan/ether still the same (Randy Bush)
6. Re: bridged wlan/ether still the same (Julian Elischer)
7. Re: ::1 magically replaced with other address (2) (Bjoern A. Zeeb)
----------------------------------------------------------------------
Message: 1
Date: Thu, 1 Apr 2010 15:14:33 GMT
From: m...@FreeBSD.org
Subject: Re: sparc64/118932: [panic] 7.0-BETA4/sparc-64 kernel panic
in rip_output
To: bak...@amt.ru, m...@FreeBSD.org, freeb...@FreeBSD.org,
m...@FreeBSD.org
Message-ID: <201004011514....@freefall.freebsd.org>
Synopsis: [panic] 7.0-BETA4/sparc-64 kernel panic in rip_output
State-Changed-From-To: open->patched
State-Changed-By: mav
State-Changed-When: Thu Apr 1 15:13:56 UTC 2010
State-Changed-Why:
Set of patches committed to HEAD.
Responsible-Changed-From-To: freebsd-net->mav
Responsible-Changed-By: mav
Responsible-Changed-When: Thu Apr 1 15:13:56 UTC 2010
Responsible-Changed-Why:
I'll track it.
http://www.freebsd.org/cgi/query-pr.cgi?pr=118932
------------------------------
Message: 2
Date: Thu, 1 Apr 2010 20:36:15 +0200
From: Bernhard Schmidt <bsch...@techwires.net>
Subject: CFT: WPA(WPA-None) in IBSS(ahdoc) mode
To: n...@freebsd.org
Message-ID: <20100401183...@mx.techwires.net>
Content-Type: text/plain; charset="us-ascii"
Hi,
it seems there is demand for WPA-None support (at least there is a PR,
and I've been ask about it), so, I went ahead and implemented it.
I've done tests with 3 clients using attached wpa_supplicant.conf and
couldn't find any kind of issues/regressions.
Summary of the changes:
- WPA-None requires ap_scan=2:
The major difference between ap_scan=1 (default) and 2 is, that no
IEEE80211_IOC_SCAN* ioctls/functions are called, though, there is a
dependency on those. For example the call to wpa_driver_bsd_scan()
sets the interface UP, this never happens, therefore the interface
must be marked up in wpa_driver_bsd_associate(). IEEE80211_IOC_SSID
also is not called, which means that the SSID has not been set prior
to the IEEE80211_MLME_ASSOC call.
- WPA-None has no support for sequence number updates, it doesn't make
sense to check for replay violations..
- I had some crashes right after the switch to RUN state, issue is
that sc->sc_lastrs was not yet defined.
--
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpa_none.diff
Type: text/x-diff
Size: 13800 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20100401/0ad1750c/wpa_none-0001.bin
-------------- next part --------------
ap_scan=2
network={
ssid="wpanone"
mode=1
key_mgmt=WPA-NONE
proto=WPA
pairwise=NONE
group=CCMP
psk="testtest"
}
------------------------------
Message: 3
Date: Thu, 01 Apr 2010 22:01:23 +0200
From: Pieter de Boer <pie...@thedarkside.nl>
Subject: ::1 magically replaced with other address (2)
To: freeb...@freebsd.org
Message-ID: <4BB4FB93...@thedarkside.nl>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi folks,
A couple of days ago I sent a mail to this list detailing an issue I
have. To summarize: every once in a while my ::1 address on lo0 is
replaced with another ipv6-address that's configured on lo3 and used in
a child jail of a jail. I've been digging a bit through the FreeBSD
source code and found a possible spot where this may occur.
In the function in6_selectsrc() in /sys/netinet6/in6_src.c the following
code can be found:
TAILQ_FOREACH(ia, &V_in6_ifaddrhead, ia_link) {
...
prison_local_ip6(cred, &ia->ia_addr.sin6_addr,
(inp != NULL &&
(inp->inp_flags & IN6P_IPV6_V6ONLY) != 0)) != 0)
continue;
...
}
prison_local_ip6() appears to replace a loopback address with a jail's
main address:
if (IN6_IS_ADDR_LOOPBACK(ia6)) {
bcopy(&pr->pr_ip6[0], ia6, sizeof(struct in6_addr));
...
The way I read this code is that it replaces the interface address 'ia'
when it is a loopback address with the prison's main address.
Can anyone with more clue about this code tell if I read this correctly
and possibly even help with fixing the problem if that is the case?
Thanks,
Pieter
------------------------------
Message: 4
Date: Fri, 02 Apr 2010 12:35:24 +0900
From: Randy Bush <ra...@psg.com>
Subject: bridged wlan/ether still the same
To: freebsd-net <freeb...@FreeBSD.org>, FreeBSD Current
<freebsd...@freebsd.org>
Message-ID: <m27hoqo7b7.wl%ra...@psg.com>
Content-Type: text/plain; charset=US-ASCII
i have a year old 8 soekris system i am about to upgrade. it is pppoe
externally, and has a bridged natted wireless/ether internal net.
.----------------.
| |
| b --wlan0|
| r | 192.168.0.0/24
ext iij | i --- vr1| LAN hosts,
PPP/NAT ---|vr0--- d | DHCP Clients
WAN | g --- vr2| ...
| e |
| 0 --- vr3|
| |
`----------------'
/etc/rc.conf
ppp_enable=YES
ppp_mode=dedicated
ppp_nat=YES
ppp_profile=iij
hostapd_enable=YES
wlans_ath0=wlan0
create_args_wlan0="wlanmode ap mode 11g channel 11 up"
cloned_interfaces=bridge0
ifconfig_bridge0="192.168.0.1 addm vr1 addm vr2 addm vr3 addm wlan0 addm wlan1 up"
ifconfig_vr1=up
ifconfig_vr2=up
ifconfig_vr3=up
/etc/hostap.conf
interface=wlan0
ctrl_interface=/var/run/hostapd
logger_syslog=-1
logger_syslog_level=0
ssid=rgnet-crypt
country_code=JP
hw_mode=g
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=notreally
wpa_pairwise=CCMP TKIP
/etc/ppp/ppp.conf entry
iij:
set device PPPoE:vr0
set MRU 1454 # NTT suggests this value
set MTU 1454
accept CHAP
enable lqr
add default HISADDR
nat enable yes
set authname nope
set authkey peon
is this still gonna work? is this a reasonable way to do this? i ask
because, if it does not, i will not have usable connectivity to get help
fixing it :)
randy
------------------------------
Message: 5
Date: Fri, 02 Apr 2010 16:45:54 +0900
From: Randy Bush <ra...@psg.com>
Subject: Re: bridged wlan/ether still the same
To: Julian Elischer <jul...@elischer.org>
Cc: FreeBSD Net <freeb...@FreeBSD.org>, FreeBSD Current
<freebsd...@freebsd.org>
Message-ID: <m2mxxmmh59.wl%ra...@psg.com>
Content-Type: text/plain; charset=US-ASCII
thanks!
yep, i understood the stacks in from vr0 to the bridge. but yes,
short-cutting the diagram was a bad. thanks for the fix.
it's the bridge that worries me. took me a while to make it work
randy
------------------------------
Message: 6
Date: Fri, 02 Apr 2010 00:30:04 -0700
From: Julian Elischer <jul...@elischer.org>
Subject: Re: bridged wlan/ether still the same
To: Randy Bush <ra...@psg.com>
Cc: freebsd-net <freeb...@FreeBSD.org>, FreeBSD Current
<freebsd...@freebsd.org>
Message-ID: <4BB59CF...@elischer.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 4/1/10 8:35 PM, Randy Bush wrote:
> i have a year old 8 soekris system i am about to upgrade. it is pppoe
> externally, and has a bridged natted wireless/ether internal net.
>
> .----------------.
> | |
> | b --wlan0|
> | r | 192.168.0.0/24
> ext iij | i --- vr1| LAN hosts,
> PPP/NAT ---|vr0--- d | DHCP Clients
> WAN | g --- vr2| ...
> | e |
> | 0 --- vr3|
> | |
> `----------------'
ok this is similar to my setup in some ways.
but the picture is wrong,
remember that vr0 is not (or at least should not be) part of the bridge.
the real picture is:
> .----------------------------------.
> | |
> | b --wlan0|
> | r | 192.168.0.0/24
> ext iij | i --- vr1| LAN hosts,
> PPP/NAT ---|vr0[PPPoE][ppp]tun0--[R]-d | DHCP Clients
> WAN | g --- vr2| ...
> | e |
> | 0 --- vr3|
> | |
> `----------------------------------'
where [R] is the IP forwarding code (i.e routing not bridging)
>
> /etc/rc.conf
>
> ppp_enable=YES
> ppp_mode=dedicated
> ppp_nat=YES
> ppp_profile=iij
my profile is pppoe which is shown below
It's not completely different from yours but seems to work
> hostapd_enable=YES
> wlans_ath0=wlan0
> create_args_wlan0="wlanmode ap mode 11g channel 11 up"
> cloned_interfaces=bridge0
> ifconfig_bridge0="192.168.0.1 addm vr1 addm vr2 addm vr3 addm wlan0 addm wlan1 up"
I can't help you withthe bridge part but it should be ok I think.
> ifconfig_vr1=up
> ifconfig_vr2=up
> ifconfig_vr3=up
>
> /etc/hostap.conf
>
> interface=wlan0
> ctrl_interface=/var/run/hostapd
> logger_syslog=-1
> logger_syslog_level=0
> ssid=rgnet-crypt
> country_code=JP
> hw_mode=g
> wpa=2
> wpa_key_mgmt=WPA-PSK
> wpa_passphrase=notreally
> wpa_pairwise=CCMP TKIP
>
> /etc/ppp/ppp.conf entry
>
> iij:
> set device PPPoE:vr0
> set MRU 1454 # NTT suggests this value
> set MTU 1454
> accept CHAP
> enable lqr
> add default HISADDR
> nat enable yes
> set authname nope
> set authkey peon
pppoe:
set device PPPoE:vr1
set redial 10.3 10000
set speed 115200 #not really intersting
set timeout 0 # Never time out
disable dns
disable ipv6cp
disable sroutes
set authname heyitsme
set authkey really?
set login
enable lqr
set ifaddr X.X.X.X/32 0.0.0.0/0 255.255.255.255 0.0.0.0
add default HISADDR # Add a (sticky) default route
set cd 5
>
> is this still gonna work? is this a reasonable way to do this? i ask
> because, if it does not, i will not have usable connectivity to get help
> fixing it :)
>
> randy
> _______________________________________________
> freebsd...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"
------------------------------
Message: 7
Date: Fri, 2 Apr 2010 09:22:53 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb...@lists.zabbadoz.net>
Subject: Re: ::1 magically replaced with other address (2)
To: Pieter de Boer <pie...@thedarkside.nl>
Cc: freeb...@freebsd.org
Message-ID: <2010040209...@maildrop.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Thu, 1 Apr 2010, Pieter de Boer wrote:
> Hi folks,
>
> A couple of days ago I sent a mail to this list detailing an issue I have. To
> summarize: every once in a while my ::1 address on lo0 is replaced with
> another ipv6-address that's configured on lo3 and used in a child jail of a
> jail. I've been digging a bit through the FreeBSD source code and found a
> possible spot where this may occur.
>
> In the function in6_selectsrc() in /sys/netinet6/in6_src.c the following code
> can be found:
>
>
> TAILQ_FOREACH(ia, &V_in6_ifaddrhead, ia_link) {
> ...
>
> prison_local_ip6(cred, &ia->ia_addr.sin6_addr,
> (inp != NULL &&
> (inp->inp_flags & IN6P_IPV6_V6ONLY) != 0)) != 0)
> continue;
> ...
> }
>
> prison_local_ip6() appears to replace a loopback address with a jail's main
> address:
> if (IN6_IS_ADDR_LOOPBACK(ia6)) {
> bcopy(&pr->pr_ip6[0], ia6, sizeof(struct in6_addr));
> ...
>
>
> The way I read this code is that it replaces the interface address 'ia' when
> it is a loopback address with the prison's main address.
>
> Can anyone with more clue about this code tell if I read this correctly and
> possibly even help with fixing the problem if that is the case?
You are reading this correctly. Good catch! I'll look how to fix that.
/bz
--
Bjoern A. Zeeb It will not break if you know what you are doing.
------------------------------
End of freebsd-net Digest, Vol 365, Issue 5
*******************************************