From ffe65c4655a79264d86d54bb96bd37acdef9bbdf Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 27 Apr 2009 09:25:05 +0200 Subject: [PATCH] explain rationale for current GetMulticast methods --- src/node/net-device.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/node/net-device.h b/src/node/net-device.h index dcdaa6d75..dcbd06451 100644 --- a/src/node/net-device.h +++ b/src/node/net-device.h @@ -60,6 +60,17 @@ class Packet; * If you want to write a new MAC layer, you need to subclass * this base class and implement your own version of the * NetDevice::SendTo method. + * + * This class was designed to hide as many MAC-level details as + * possible from the perspective of layer 3 to allow a single layer 3 + * to work with any kind of MAC layer. Specifically, this class + * encapsulates the specific format of MAC addresses used by a + * device such that the layer 3 does not need any modification + * to handle new address formats. This means obviously that the + * NetDevice class must know about the address format of all potential + * layer 3 protocols through its GetMulticast methods: the current + * API has been optimized to make it easy to add new MAC protocols, + * not to add new layer 3 protocols. */ class NetDevice : public Object {