Skip to content

Commit 28dfc24

Browse files
committed
xxx
1 parent 5019eba commit 28dfc24

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/openflow/openflow/protocol/OpenFlow.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef __OPENFLOW_OPENFLOW_H
2+
#define __OPENFLOW_OPENFLOW_H
3+
14

25
#include <inet/common/INETDefs.h>
36

@@ -6,12 +9,8 @@
69
#define OFP_141 0x05 //currently not supported.
710
#define OFP_151 0x06 //currently not supported.
811

9-
#if INET_VERSION < 0x0403 || INET_VERSION == 0x0403 && INET_PATCH_LEVEL < 0x02
10-
#error OpenFlow: Incompatible INET version. At least INET version v4.3.2 required.
11-
#endif
12-
13-
#if INET_VERSION < 0x0404
14-
constexpr int ETHERTYPE_LLDP = 0x88CC;
12+
#if INET_VERSION < 0x0404 || INET_VERSION == 0x0404 && INET_PATCH_LEVEL < 0x02
13+
#error OpenFlow: Incompatible INET version. At least INET version v4.4.2 required.
1514
#endif
1615

1716
#ifndef OFP_VERSION_IN_USE
@@ -35,3 +34,4 @@ constexpr int ETHERTYPE_LLDP = 0x88CC;
3534
//#endif
3635
//
3736

37+
#endif // __OPENFLOW_OPENFLOW_H

0 commit comments

Comments
 (0)