]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: fix virtual network bridge delay setting
authorLaine Stump <laine@laine.org>
Thu, 23 Aug 2012 15:21:47 +0000 (11:21 -0400)
committerLaine Stump <laine@laine.org>
Thu, 23 Aug 2012 18:27:53 +0000 (14:27 -0400)
commitddf1ccb7fe01791d696d518e8849d12126ce8b8e
treeb1a116ce070e234f3839159e04d09050b464e20b
parent385ee0e982080d03ce0d11eab32396c0d7057961
network: fix virtual network bridge delay setting

libvirt's network config documents that a bridge's STP "forward delay"
(called "delay" in the XML) should be specified in seconds, but
virNetDevBridgeSetSTPDelay() assumes that it is given a delay in
milliseconds (although the comment at the top of the function
incorrectly says "seconds".

This fixes the comment, and converts the delay to milliseconds before
calling virNetDevBridgeSetSTPDelay().
src/network/bridge_driver.c
src/util/virnetdevbridge.c