src/wifi/model/amsdu-subframe-header.h
author Lalith Suresh <suresh.lalith@gmail.com>
Fri, 04 Mar 2011 01:26:54 +0000
changeset 6852 8f1a53d3f6ca
parent 6848 src/devices/wifi/model/amsdu-subframe-header.h@1f453ad50ef3
child 7139 79dd02ed46ec
permissions -rw-r--r--
Moves devices/* and routing/* to src/

/* -*-  Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2009 MIRKO BANCHI
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as 
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Author: Mirko Banchi <mk.banchi@gmail.com>
 */
#ifndef AMSDU_SUBFRAME_HEADER_H
#define AMSDU_SUBFRAME_HEADER_H

#include "ns3/header.h"
#include "ns3/mac48-address.h"

namespace ns3 {

class AmsduSubframeHeader : public Header
{
public:

  AmsduSubframeHeader ();
  virtual ~AmsduSubframeHeader ();
  
  static TypeId GetTypeId (void);
  virtual TypeId GetInstanceTypeId (void) const;
  virtual void Print (std::ostream &os) const;
  virtual uint32_t GetSerializedSize (void) const;
  virtual void Serialize (Buffer::Iterator start) const;
  virtual uint32_t Deserialize (Buffer::Iterator start);

  void SetDestinationAddr (Mac48Address to);
  void SetSourceAddr (Mac48Address to);
  void SetLength (uint16_t);
  Mac48Address GetDestinationAddr (void) const;
  Mac48Address GetSourceAddr (void) const;
  uint16_t GetLength (void) const;

private:
  Mac48Address m_da;
  Mac48Address m_sa;
  uint16_t m_length;
};

} //namespace ns3

#endif /* AMSDU_SUBFRAME_HEADER_H */