00001 // 00002 // Copyright (C) 2008-2009 Reto Gantenbein 00003 // 00004 // This program is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program. If not, see http://www.gnu.org/licenses/. 00016 // 00017 00018 #ifndef __RAWETHERFRAME_H__ 00019 #define __RAWETHERFRAME_H__ 00020 00021 #include <linux/if_ether.h> // for ETH_ALEN 00022 #include <Ieee802Ctrl_m.h> 00023 #include <MACAddress.h> 00024 #include "RAWEtherFrame_m.h" 00025 00026 class RAWEtherFrame: public RAWEtherFrame_Base { 00027 public: 00028 // Constructors 00029 RAWEtherFrame(const char *name=NULL, int kind=0); 00030 RAWEtherFrame(const RAWEtherFrame& other); 00031 00032 // Operators 00033 RAWEtherFrame& operator=(const RAWEtherFrame& other); 00034 00035 // Duplicate this frame 00036 virtual RAWEtherFrame *dup() const {return new RAWEtherFrame(*this);} 00037 00038 // Custom methods 00039 virtual void setDest(); 00040 }; 00041 00042 #endif /* __RAWETHERFRAME_H__ */