From fb31f93c5295752b5a07d742dae397654c6c8f67 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 10 Jun 2014 15:25:15 -0700 Subject: Protocol messages for bridging. GitHub issue #68 --- node/Packet.hpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'node/Packet.hpp') diff --git a/node/Packet.hpp b/node/Packet.hpp index ade44bf5..e2de9f57 100644 --- a/node/Packet.hpp +++ b/node/Packet.hpp @@ -497,8 +497,22 @@ public: */ VERB_FRAME = 6, - /* TODO: not implemented yet */ - VERB_BRIDGED_FRAME = 7, + /* + * An ethernet frame to or from specified MAC addresses: + * <[8] 64-bit network ID> + * <[6] destination MAC or all zero for destination node> + * <[6] source MAC or all zero for node of origin> + * <[2] 16-bit ethertype> + * <[...] ethernet payload> + * + * Extended frames include full MAC addressing and are used for bridged + * configurations. Theoretically they could carry multicast as well but + * currently they're not used for that. + * + * ERROR may be generated if a membership certificate is needed for a + * closed network. Payload will be network ID. + */ + VERB_EXT_FRAME = 7, /* A multicast frame: * <[2] 16-bit propagation depth or 0xffff for "do not forward"> @@ -543,6 +557,9 @@ public: * set in the bloom filter and addresses outside the propagation restrict * prefix. * + * Active bridges on a network are always added as next hops for all + * multicast and broadcast traffic, as if they "like" all groups. + * * Algorithm for setting bits in bloom filter: * * (1) Place the address in the least significant 40 bits of a 64-bit int. -- cgit v1.2.3