File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
open Packet
2
+ open Core.Std
2
3
3
- type 'a mask = { m_value : 'a ; m_mask : 'a option }
4
+ type 'a mask = { m_value : 'a ; m_mask : 'a option } with sexp
4
5
5
- type switchId = int64
6
+ type switchId = int64 with sexp
6
7
7
- type portId = int16
8
+ type portId = int16 with sexp
8
9
9
- type queueId = int32
10
+ type queueId = int32 with sexp
10
11
11
12
type xid = OpenFlow_Header .xid
12
13
@@ -22,7 +23,7 @@ type pattern =
22
23
; nwTos : nwTos option
23
24
; tpSrc : tpPort option
24
25
; tpDst : tpPort option
25
- ; inPort : portId option }
26
+ ; inPort : portId option } with sexp
26
27
27
28
type pseudoPort =
28
29
| PhysicalPort of portId
Original file line number Diff line number Diff line change @@ -8,24 +8,25 @@ Most data structures are documented with a pointer to relevent section in the
8
8
OpenFlow 1.0 specification, rather than reproducing the specification here. *)
9
9
10
10
open Packet
11
+ open Core.Std
11
12
12
13
(* * {2 OpenFlow types}
13
14
14
15
These types are primarily drawn from Section 5 of the OpenFlow 1.0
15
16
specification.
16
17
*)
17
18
18
- type 'a mask = { m_value : 'a ; m_mask : 'a option }
19
+ type 'a mask = { m_value : 'a ; m_mask : 'a option } with sexp
19
20
20
21
(* * [switchId] is the type of switch identifiers received as part of
21
22
[SwitchFeature] replies. *)
22
- type switchId = int64
23
+ type switchId = int64 with sexp
23
24
24
25
(* * [portId] is the type of physical port identifiers (port numbers). *)
25
- type portId = int16
26
+ type portId = int16 with sexp
26
27
27
28
(* * [queueId] identifies a specific queue for QoS. *)
28
- type queueId = int32
29
+ type queueId = int32 with sexp
29
30
30
31
(* * Transaction ID of OpenFlow messages. *)
31
32
type xid = OpenFlow_Header .xid
@@ -47,7 +48,7 @@ type pattern =
47
48
; tpSrc : tpPort option (* * TCP/UDP source port. *)
48
49
; tpDst : tpPort option (* * TCP/UDP destination port. *)
49
50
; inPort : portId option (* * Input switch port. *)
50
- }
51
+ } with sexp
51
52
52
53
(* * A pseudo-port, as described by the [ofp_port] enumeration in
53
54
Section 5.2.1 of the OpenFlow 1.0 specification. *)
You can’t perform that action at this time.
0 commit comments