Skip to content

Commit cc96a0c

Browse files
committed
activity: Make echo the first stage of the pipeline
According to the OpenFlow specifications, controllers should implement the echo response at the lowest-level possible.
1 parent 28a843b commit cc96a0c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

async/Async_OpenFlow.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ module Chunk : sig
151151
val set_idle_wait : t -> Time.Span.t -> unit
152152
val set_kill_wait : t -> Time.Span.t -> unit
153153

154-
val echo : (t, h, h) Stage.t
154+
val echo : (t, e, e) Stage.t
155155
val handshake : int -> (t, e, h) Stage.t
156156
end
157157

async/Async_OpenFlow0x01.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module Controller = struct
157157
let open ChunkController in
158158
let stages =
159159
(local (fun t -> t.sub)
160-
(handshake 0x01 >=> echo))
160+
(echo >=> handshake 0x01))
161161
>=> openflow0x01 in
162162
run stages t (listen t.sub)
163163
end

async/Async_OpenFlow0x04.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module Controller = struct
7171
let open ChunkController in
7272
let stages =
7373
(local (fun t -> t.sub)
74-
(handshake 0x04 >=> echo))
74+
(echo >=> handshake 0x04))
7575
>=> openflow0x04 in
7676
run stages t (listen t.sub)
7777

0 commit comments

Comments
 (0)