fix use of sysfs (affects 32/64 bit compat)

I built current git head of bridge-utils.

32-bit binary omn 64-bit kernel doesn't show
bridged interfaces:

bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no               can't get port info: Operation not supported

It turns out that it uses wrong directory name
and falls back to using ioctls. Bridge ioctls
seems to be deprecated and 32/64 compat is missing,
thus it fails.

Attached patch makes brctl use /sys/class/net/br0/brif
instead of nonexistent /sys/class/net/br0/brport:

/sys/class/net/br0
...
...

./brif:
lrwxrwxrwx    1 root     root            0 Jan  8 10:54 eth0 -> ../../../../class/net/eth0/brport

Please apply.
--

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
1 file changed