source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/src/Dispatcher/EthernetDissector.h @ 61

Last change on this file since 61 was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 668 bytes
Line 
1#ifndef ETHERNET_DISSECTOR_H
2#define ETHERNET_DISSECTOR_H
3
4#include "Dissector.h"
5#include <map>
6#include <string>
7
8class EthernetDissector : public Dissector {
9
10 public:
11  EthernetDissector();
12  virtual ~EthernetDissector();
13  virtual EthernetDissector * Clone() const;
14  virtual bool Dissect(const unsigned char * pData, const ssize_t nDataLen);
15  virtual bool NeedReassembly() const;
16  virtual const EProtocolType GetUpperLayerType() const;
17
18 private:
19  struct EthernetHeader {
20    unsigned char destination[6];
21    unsigned char source[6];
22    unsigned short type;
23  };
24  EthernetHeader * m_ethHdr;
25protected:
26  ProtocolInfoElement * CreateLayerInfo();
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.