EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoWatcher.h File Reference

Watcher Header File. More...

#include "eoDevice.h"
#include "eoTimer.h"
#include "eoIWatcher.h"
#include <vector>
#include <map>
#include <stdint.h>
Include dependency graph for eoWatcher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WATCH_STRUCT
 Watch structure. More...
 
class  eoWatcher
 an example implementation of an Security Watcher Class which tries to predict DOS and Delay Attacks. More...
 

Typedefs

typedef std::map< uint32_t, WATCH_STRUCTwatcher_id_map
 

Enumerations

enum  EO_SEC_WATCH_RESULT {
  WATCH_OK = 0, WATCH_DEVICE_NA, WATCH_DEVICE_ALREADY_EXIST, WATCH_NOT_SECURE_DEVICE,
  WATCH_NOT_WATCHED_DEVICE, WATCH_DOS_ASSUMED, WATCH_DELAY_ASSUMED, WATCH_TEL_TO_EARLY,
  WATCH_TEL_TO_LATE, WATCH_CMAC_OVERFLOW, WATCH_RLC_OVERFLOW
}
 Security Watch Result. More...
 

Detailed Description

Watcher Header File.

Author
EnOcean GmbH

An Example Class Header, which allows the security checking of Devices.

Enumeration Type Documentation

◆ EO_SEC_WATCH_RESULT

Security Watch Result.

Enumerator
WATCH_OK 

Device is watched and no security issues.

WATCH_DEVICE_NA 

Device does not exist.

WATCH_DEVICE_ALREADY_EXIST 

Device duplicated.

WATCH_NOT_SECURE_DEVICE 

You tried to added a non secure device or the watched device does not have valid security information.

WATCH_NOT_WATCHED_DEVICE 

The processed device&message is not watched.

WATCH_DOS_ASSUMED 

A denial of service is assumed.

WATCH_DELAY_ASSUMED 

A Delay attack is assumed.

WATCH_TEL_TO_EARLY 

The telegram of the watched device came to early.

WATCH_TEL_TO_LATE 

The telegram of the watched device came to late.

WATCH_CMAC_OVERFLOW 

The counter of maximal allowed telegrams with wrong cmacs has been reached.

WATCH_RLC_OVERFLOW 

The Difference RLC of the last and current has reached the allowed one.