diff options
author | hrs <hrs@FreeBSD.org> | 2010-01-31 08:16:37 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2010-01-31 08:16:37 +0000 |
commit | 0f402c23311b40ba88b3ea3c95cf73ee0b6cf4d4 (patch) | |
tree | 1402a70aed70b20c781fa78b6f1ad15dd0a24f72 /usr.bin | |
parent | 68c0faaca6c6be70bf107bd698487ce090374471 (diff) | |
download | FreeBSD-src-0f402c23311b40ba88b3ea3c95cf73ee0b6cf4d4.zip FreeBSD-src-0f402c23311b40ba88b3ea3c95cf73ee0b6cf4d4.tar.gz |
- 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.
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions