Date: Sun, 31 Jan 2010 08:16:37 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/net if_bridge.c Message-ID: <201001310816.o0V8GqOY008812@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
hrs 2010-01-31 08:16:37 UTC FreeBSD src repository Modified files: sys/net if_bridge.c Log: SVN rev 203272 on 2010-01-31 08:16:37Z by hrs - Check if_type of "addm <interface>" before setting the interface's MTU to the if_bridge(4) interface. This fixes a bug that MTU value of "addm <interface>" is used even when it is invalid for the if_bridge(4) member: # ifconfig bridge0 create # ifconfig bridge0 bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 ... # ifconfig bridge0 addm lo0 ifconfig: BRDGADD lo0: Invalid argument # ifconfig bridge0 bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 16384 ... - Do not ignore MTU value of an interface even when if_type == IFT_GIF. This fixes MTU mismatch when an if_bridge(4) interface has a gif(4) interface and no other interface as the member, and it is directly used for L2 communication with EtherIP tunneling enabled. - Implement SIOCSIFMTU ioctl. Changing the MTU is allowed only when all members have the same MTU value. Revision Changes Path 1.139 +34 -14 src/sys/net/if_bridge.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001310816.o0V8GqOY008812>