static ssize_t show_topology_change(struct device *d, struct device_attribute *attr, char *buf) { return sprintf(buf, "%d\n", to_bridge(d)->topology_change); }
static ssize_t show_ageing_time(struct class_device *cd, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->ageing_time)); }
static ssize_t show_stp_state(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%d\n", br->stp_enabled); }
static ssize_t show_bridge_id(struct device *d, struct device_attribute *attr, char *buf) { return br_show_bridge_id(buf, &to_bridge(d)->bridge_id); }
static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", jiffies_to_clock_t(to_bridge(d)->hello_time)); }
static ssize_t show_max_age(struct device *d, struct device_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", jiffies_to_clock_t(to_bridge(d)->max_age)); }
static ssize_t show_topology_change(struct class_device *cd, char *buf) { return sprintf(buf, "%d\n", to_bridge(cd)->topology_change); }
static ssize_t multicast_startup_query_count_show( struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u\n", br->multicast_startup_query_count); }
static ssize_t show_bridge_id(struct class_device *cd, char *buf) { return br_show_bridge_id(buf, &to_bridge(cd)->bridge_id); }
static ssize_t show_root_path_cost(struct class_device *cd, char *buf) { return sprintf(buf, "%d\n", to_bridge(cd)->root_path_cost); }
static ssize_t show_root_id(struct class_device *cd, char *buf) { return br_show_bridge_id(buf, &to_bridge(cd)->designated_root); }
static ssize_t show_priority(struct class_device *cd, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d\n", (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]); }
static ssize_t show_stp_state(struct class_device *cd, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d\n", br->stp_enabled); }
static ssize_t multicast_router_show(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%d\n", br->multicast_router); }
static ssize_t show_topology_change_detected(struct class_device *cd, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d\n", br->topology_change_detected); }
static ssize_t hash_max_show(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u\n", br->hash_max); }
static ssize_t show_gc_timer(struct class_device *cd, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%ld\n", br_timer_value(&br->gc_timer)); }
static ssize_t forward_delay_show(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->forward_delay)); }
static ssize_t show_forward_delay(struct class_device *cd, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->forward_delay)); }
static ssize_t nf_call_arptables_show( struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u\n", br->nf_call_arptables); }
static ssize_t show_max_age(struct class_device *cd, char *buf) { return sprintf(buf, "%lu\n", jiffies_to_clock_t(to_bridge(cd)->max_age)); }
static ssize_t show_ageing_time(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->ageing_time)); }
static ssize_t show_group_fwd_mask(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%#x\n", br->group_fwd_mask); }
static ssize_t show_root_id(struct device *d, struct device_attribute *attr, char *buf) { return br_show_bridge_id(buf, &to_bridge(d)->designated_root); }
static ssize_t show_hash_elasticity(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%u\n", br->hash_elasticity); }
static ssize_t show_root_path_cost(struct device *d, struct device_attribute *attr, char *buf) { return sprintf(buf, "%d\n", to_bridge(d)->root_path_cost); }
static ssize_t root_port_show(struct device *d, struct device_attribute *attr, char *buf) { return sprintf(buf, "%d\n", to_bridge(d)->root_port); }
static ssize_t show_tcn_timer(struct device *d, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(d); return sprintf(buf, "%ld\n", br_timer_value(&br->tcn_timer)); }
static ssize_t show_via_phys_dev_state(struct device *cd, struct device_attribute *attr, char *buf) { struct net_bridge *br = to_bridge(cd); return sprintf(buf, "%d\n", br->via_phys_dev); }