Displaying 1 result from an estimated 1 matches for "brctl_set_bridge_hello_time".
2007 Apr 18
0
[Bridge] setting STP values via brctl
...bigger than expected.
I started looking at the source. In the libbridge/libbridge_devif.c
file of brctl, we have the following routine:
int br_set_bridge_hello_time(const char *br, struct timeval *tv)
{
return br_set(br, "hello_time", __tv_to_jiffies(tv),
BRCTL_SET_BRIDGE_HELLO_TIME);
}
Note the tv_to_jiffies() call.
Then, I looked in the kernel file linux/net/bridge/br_sysfs_br.c at
the following function:
static void set_hello_time(struct net_bridge *br, unsigned long val)
{
unsigned long t = clock_t_to_jiffies(val);
br->hello_time = t;
if (br_i...