/* tipc_bearer_find_interface - locates bearer object with matching interface name  */
struct bearer* tipc_bearer_find_interface(const char *if_name)
/* tipc_bearer_find_interface - locates bearer object with matching interface name  */
struct bearer* tipc_bearer_find_interface(const char *if_name)
{
	struct bearer *b_ptr;
	char *b_if_name;
	u32 i;
	for (i = 0, b_ptr = tipc_bearers; i < MAX_BEARERS; i++, b_ptr++) {
		if (!b_ptr->active)
			continue;
		b_if_name = strchr(b_ptr->publ.name, ':') + 1;
		if (!strcmp(b_if_name, if_name))
			return b_ptr;
	}
	return NULL;
}