Lines Matching refs:b
49 Bridge *b; in netdev_bridge_post_create_message() local
52 assert_se(b = BRIDGE(netdev)); in netdev_bridge_post_create_message()
63 if (b->forward_delay != USEC_INFINITY) { in netdev_bridge_post_create_message()
64 … r = sd_netlink_message_append_u32(req, IFLA_BR_FORWARD_DELAY, usec_to_jiffies(b->forward_delay)); in netdev_bridge_post_create_message()
69 if (b->hello_time > 0) { in netdev_bridge_post_create_message()
70 … r = sd_netlink_message_append_u32(req, IFLA_BR_HELLO_TIME, usec_to_jiffies(b->hello_time)); in netdev_bridge_post_create_message()
75 if (b->max_age > 0) { in netdev_bridge_post_create_message()
76 … r = sd_netlink_message_append_u32(req, IFLA_BR_MAX_AGE, usec_to_jiffies(b->max_age)); in netdev_bridge_post_create_message()
81 if (b->ageing_time != USEC_INFINITY) { in netdev_bridge_post_create_message()
82 … r = sd_netlink_message_append_u32(req, IFLA_BR_AGEING_TIME, usec_to_jiffies(b->ageing_time)); in netdev_bridge_post_create_message()
87 if (b->priority > 0) { in netdev_bridge_post_create_message()
88 r = sd_netlink_message_append_u16(req, IFLA_BR_PRIORITY, b->priority); in netdev_bridge_post_create_message()
93 if (b->group_fwd_mask > 0) { in netdev_bridge_post_create_message()
94 r = sd_netlink_message_append_u16(req, IFLA_BR_GROUP_FWD_MASK, b->group_fwd_mask); in netdev_bridge_post_create_message()
99 if (b->default_pvid != VLANID_INVALID) { in netdev_bridge_post_create_message()
100 r = sd_netlink_message_append_u16(req, IFLA_BR_VLAN_DEFAULT_PVID, b->default_pvid); in netdev_bridge_post_create_message()
105 if (b->mcast_querier >= 0) { in netdev_bridge_post_create_message()
106 r = sd_netlink_message_append_u8(req, IFLA_BR_MCAST_QUERIER, b->mcast_querier); in netdev_bridge_post_create_message()
111 if (b->mcast_snooping >= 0) { in netdev_bridge_post_create_message()
112 r = sd_netlink_message_append_u8(req, IFLA_BR_MCAST_SNOOPING, b->mcast_snooping); in netdev_bridge_post_create_message()
117 if (b->vlan_filtering >= 0) { in netdev_bridge_post_create_message()
118 r = sd_netlink_message_append_u8(req, IFLA_BR_VLAN_FILTERING, b->vlan_filtering); in netdev_bridge_post_create_message()
123 if (b->vlan_protocol >= 0) { in netdev_bridge_post_create_message()
124 … r = sd_netlink_message_append_u16(req, IFLA_BR_VLAN_PROTOCOL, htobe16(b->vlan_protocol)); in netdev_bridge_post_create_message()
129 if (b->stp >= 0) { in netdev_bridge_post_create_message()
130 r = sd_netlink_message_append_u32(req, IFLA_BR_STP_STATE, b->stp); in netdev_bridge_post_create_message()
135 if (b->igmp_version > 0) { in netdev_bridge_post_create_message()
136 r = sd_netlink_message_append_u8(req, IFLA_BR_MCAST_IGMP_VERSION, b->igmp_version); in netdev_bridge_post_create_message()
192 Bridge *b = userdata; in config_parse_bridge_igmp_version() local
202 b->igmp_version = 0; /* 0 means unset. */ in config_parse_bridge_igmp_version()
219 b->igmp_version = u; in config_parse_bridge_igmp_version()
266 Bridge *b; in bridge_init() local
268 b = BRIDGE(n); in bridge_init()
270 assert(b); in bridge_init()
272 b->mcast_querier = -1; in bridge_init()
273 b->mcast_snooping = -1; in bridge_init()
274 b->vlan_filtering = -1; in bridge_init()
275 b->vlan_protocol = -1; in bridge_init()
276 b->stp = -1; in bridge_init()
277 b->default_pvid = VLANID_INVALID; in bridge_init()
278 b->forward_delay = USEC_INFINITY; in bridge_init()
279 b->ageing_time = USEC_INFINITY; in bridge_init()