From 9c2de843b5cb4d549c19d3f84008f22eca3a981c Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 3 Aug 2007 09:09:19 +0200 Subject: [PATCH] move constants to private section --- src/node/ethernet-header.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node/ethernet-header.h b/src/node/ethernet-header.h index f16db2976..daa63d20d 100644 --- a/src/node/ethernet-header.h +++ b/src/node/ethernet-header.h @@ -47,10 +47,6 @@ namespace ns3 { */ class EthernetHeader : public Header { public: - static const int PREAMBLE_SIZE = 8; /// size of the preamble_sfd header field - static const int LENGTH_SIZE = 2; /// size of the length_type header field - static const int MAC_ADDR_SIZE = 6; /// size of src/dest addr header fields - /** * \brief Construct a null ethernet header * \param hasPreamble if true, insert and remove an ethernet preamble from the @@ -105,6 +101,10 @@ public: uint32_t GetHeaderSize() const; private: + static const int PREAMBLE_SIZE = 8; /// size of the preamble_sfd header field + static const int LENGTH_SIZE = 2; /// size of the length_type header field + static const int MAC_ADDR_SIZE = 6; /// size of src/dest addr header fields + virtual std::string DoGetName (void) const; virtual void PrintTo (std::ostream &os) const; virtual uint32_t GetSerializedSize (void) const;