lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-id: <20751226.176781385722028701.JavaMail.weblogic@epml26>
Date:	Fri, 29 Nov 2013 10:47:08 +0000 (GMT)
From:	Rahul Jain <rahul.jain@...sung.com>
To:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-net@...r.kernel.org" <linux-net@...r.kernel.org>
Cc:	ASHWINI KUMAR <k.ashwini@...sung.com>
Subject: [Issue] Bridge Info Details with and without sysfs

Hi list,
While displaying bridge info using brctl command,  different results are observed with and without sysfs mounted.
Discrepancy
Bridge info results for following fields
    max age         bridge max age
    hello time      bridge hello time
    forward delay   bridge forward delay
are different.
Snapshot for both the cases
With Sysfs mounted,
-----------------------------------------------------------------------------------------------------------
brctl showstp virbr0
virbr0
 bridge id  8000.002454fb6fd3
 designated root 8000.002454fb6fd3
 root port     0   path cost     0
 max age    39.99   bridge max age    39.99
 hello time     1.99   bridge hello time    1.99
 forward delay  1999.69   bridge forward delay 1999.69
 ageing time   299.95
 hello timer     0.45   tcn timer     0.00
 topology change timer    0.00   gc timer  1996.15
 flags   

eth0.2 (0)
 port id  0000   state       forwarding
 designated root 8000.002454fb6fd3 path cost    19
 designated bridge 8000.002454fb6fd3 message age timer    0.00
 designated port 8001   forward delay timer    0.00
 designated cost    0   hold timer     0.00
 flags   
eth0.3 (0)
 port id  0000   state       forwarding
 designated root 8000.002454fb6fd3 path cost    19
 designated bridge 8000.002454fb6fd3 message age timer    0.00
 designated port 8002   forward delay timer    0.00
 designated cost    0   hold timer     0.00
 flags   
-----------------------------------------------------------------------------------------------------------
 
without sysfs (using ioctl),
-----------------------------------------------------------------------------------------------------------
sudo umount /sys
brctl showstp virbr0
virbr0
 bridge id  8000.002454fb6fd3
 designated root 8000.002454fb6fd3
 root port     0   path cost     0
 max age    39.99   bridge max age   400.00
 hello time     1.99   bridge hello time   20.00
 forward delay  20000.00   bridge forward delay 1999.69
 ageing time   299.95
 hello timer     0.10   tcn timer     0.00
 topology change timer    0.00   gc timer  1967.80
 flags   

eth0.2 (1)
 port id  8001   state       forwarding
 designated root 8000.002454fb6fd3 path cost    19
 designated bridge 8000.002454fb6fd3 message age timer    0.00
 designated port 8001   forward delay timer    0.00
 designated cost    0   hold timer     0.00
 flags   
eth0.3 (2)
 port id  8002   state       forwarding
 designated root 8000.002454fb6fd3 path cost    19
 designated bridge 8000.002454fb6fd3 message age timer    0.00
 designated port 8002   forward delay timer    0.00
 designated cost    0   hold timer     0.00
 flags  
-----------------------------------------------------------------------------------------------------------
 This looks to be an issue with either sys interface implementation or ioctl (BRCTL_GET_BRIDGE_INFO) implementation for getting the info?
 Any inputs are welcome.
 Thanks
-Rahul

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ