Lines Matching refs:bridge

60 #include <net/bridge.h>
74 * bridge starting back up.
85 * entries. Each of these structures holds one reference on the bridge
91 * used to create new bridge instances (via BRIOC_NEWBRIDGE) and control the
92 * links on the bridge. When a stream closes, the bridge instance created is
93 * destroyed. There's at most one bridge instance for a given control
123 * (bridge_trill_register_cb). There are four entry points for taking bridge
131 * for bridge output to non-local TRILL destinations (tunnel entry).
167 * These are the bridge instance management data structures. The mutex lock
168 * protects the list of bridge instances. A reference count is then used on
240 * Given a bridge mac pointer, get a ref-held pointer to the corresponding
241 * bridge instance, if any. We must hold the global bmac_rwlock so that
278 * whole bridge.
300 * unfailed, then we get the state of the bridge instead on all
335 * bridge instance daemon.
576 * bridge instance. This creates the mac driver instance that snoop can use.
614 * bridge node itself. It's mainly for monitoring but we allow
615 * setting the bridge MTU for quick transition of all links part of the
616 * bridge to a new MTU.
647 * Disconnect the given bridge_mac_t from its bridge instance. The bridge
700 inst_alloc(const char *bridge)
706 (void) strcpy(bip->bi_name, bridge);
717 bridge_find_name(const char *bridge)
725 strcmp(bridge, bip->bi_name) == 0) {
736 bridge_create(datalink_id_t linkid, const char *bridge, bridge_inst_t **bipc,
744 bipnew = inst_alloc(bridge);
750 if (strcmp(bridge, bip->bi_name) == 0)
873 /* Don't unreference the bridge until the MAC is closed */
1235 * Once on the inst_list, the bridge instance must not leave that list
1265 * This bridge is being destroyed. Notify TRILL once all of the
1280 * global TRILL callback function pointers -- data transmit/receive and bridge
1318 * This registers the TRILL instance pointer with a bridge. Before this
1319 * pointer is set, the forwarding, TRILL receive, and bridge destructor
1322 * TRILL holds a reference on a bridge with this call. It must free the
1328 char bridge[MAXLINKNAMELEN];
1331 (void) snprintf(bridge, MAXLINKNAMELEN, "%s0", bname);
1332 bip = bridge_find_name(bridge);
1349 * TRILL calls this function when referencing a particular link on a bridge.
1514 * bridge instance the user wants.
1526 * Allocate the bridge control stream structure.
1539 * This is used only for bridge control streams. DLPI goes through dld
1852 * This function scans the bridge forwarding tables in order to forward a given
2458 * bridge isn't here at all, and send on the local link alone.
2533 * bridge the same packet multiple times if flow control is
2603 * packets. It sends on a single underlying link and does not bridge.
2685 * Let the mac module take or drop a reference to a bridge link. When this is
2687 * in the process of entering or leaving a bridge.
2703 * links still up on the bridge, then the state is changed to "up." When the
2726 * state of this link is the state of the bridge.
2749 * changed state, then report the new state of the bridge to
2794 * First make sure that there is no other bridge that has this link.
2796 * supports only one bridge on a given MAC at a time.
2826 /* we bridge only Ethernet */
2835 * links on the bridge, then this one must match, or it errors out.
2836 * Otherwise, the first link becomes the standard for the new bridge.
2906 * The link holds a reference to the bridge instance, so that the
2918 * If the new link is no good on this bridge, then let the daemon know
2929 * "up" in the bridge, then we notify everyone. This triggers a trip
3016 * Check if there's just one working link left on the bridge. If so,
3017 * then that link is now authoritative for bridge MTU.
3080 * For now, all of the bridge ioctls are privileged.
3326 * This function allocates the main data structures for the bridge driver and
3351 * preparation for unload. It's assumed that there are no active bridge
3373 * Attach bridge driver to the system.