Esempio n. 1
0
struct vr_bridge_entry *
vr_find_bridge_entry(struct vr_bridge_entry_key *key) 
{
    if (!vn_rtable || !key)
        return NULL;

    return vr_find_hentry(vn_rtable, key, NULL);
}
Esempio n. 2
0
struct vr_bridge_entry *
vr_find_bridge_entry(struct vr_bridge_entry_key *key)
{
    unsigned int index;

    if (!vn_rtable || !key)
        return NULL;

    return vr_find_hentry(vn_rtable, key, &index);
}
Esempio n. 3
0
static struct vif_bridge_entry *
vif_bridge_get(vr_htable_t htable, unsigned short vlan,
        unsigned char *mac, int *index)
{
    struct vif_bridge_key key;

    key.vbk_vlan = vlan;
    VR_MAC_COPY(key.vbk_mac, mac);

    return (struct vif_bridge_entry *)vr_find_hentry(htable, &key, index);
}