This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 460c560 1 parent 4b6a9de commit 460c560 Copy full SHA for 460c560
File tree 2 files changed +8
-9
lines changed
tests/openflow/controller
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,11 @@ let init controller =
48
48
pp " test controller register packet_in cb\n " ;
49
49
OC. register_cb controller OE. PACKET_IN packet_in_cb
50
50
51
- let main () =
52
- lwt mgr, mgr_t = Net.Manager. create () in
53
- let port = 6633 in
54
- let ip = None in (* Net.Nettypes.ipv4_addr_of_string "172.16.0.1" in *)
55
- OC. listen mgr ip port init
56
-
57
- let _ =
58
- OS.Main. run (main () )
51
+ let run () =
52
+ Net.Manager. create (fun t interface id ->
53
+ Printf. printf " new if %s\n %!" id;
54
+ let port = 6633 in
55
+ let ip = None in (* Net.Nettypes.ipv4_addr_of_string "172.16.0.1" in *)
56
+ OC. listen t ip port init
57
+ )
59
58
Original file line number Diff line number Diff line change 1
- Main
1
+ Main.run
You can’t perform that action at this time.
0 commit comments