forked from Kmotiko/gofc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathofp13_handler.go
170 lines (145 loc) · 6.28 KB
/
ofp13_handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
package gofc
import (
"github.com/Kmotiko/gofc/ofprotocol/ofp13"
)
/*****************************************************/
/* OfpErrorMsg */
/*****************************************************/
type Of13ErrorMsgHandler interface {
HandleErrorMsg(*ofp13.OfpErrorMsg, *Datapath)
}
/*****************************************************/
/* Echo Message */
/*****************************************************/
type Of13EchoRequestHandler interface {
HandleEchoRequest(*ofp13.OfpHeader, *Datapath)
}
type Of13EchoReplyHandler interface {
HandleEchoReply(*ofp13.OfpHeader, *Datapath)
}
/*****************************************************/
/* BarrierReply Message */
/*****************************************************/
type Of13BarrierReplyHandler interface {
HandleBarrierReply(*ofp13.OfpHeader, *Datapath)
}
/*****************************************************/
/* OfpSwitchFeatures */
/*****************************************************/
type Of13SwitchFeaturesHandler interface {
HandleSwitchFeatures(*ofp13.OfpSwitchFeatures, *Datapath)
}
/*****************************************************/
/* OfpSwitchConfig */
/*****************************************************/
type Of13SwitchConfigHandler interface {
HandleSwitchConfig(*ofp13.OfpSwitchConfig, *Datapath)
}
/*****************************************************/
/* OfpPacketIn */
/*****************************************************/
type Of13PacketInHandler interface {
HandlePacketIn(*ofp13.OfpPacketIn, *Datapath)
}
/*****************************************************/
/* OfpFlowRemoved */
/*****************************************************/
type Of13FlowRemovedHandler interface {
HandleFlowRemoved(*ofp13.OfpFlowRemoved, *Datapath)
}
/*****************************************************/
/* OfpDescStatsReply */
/*****************************************************/
type Of13DescStatsReplyHandler interface {
HandleDescStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpFlowStatsReply */
/*****************************************************/
type Of13FlowStatsReplyHandler interface {
HandleFlowStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpAggregateStatsReply */
/*****************************************************/
type Of13AggregateStatsReplyHandler interface {
HandleAggregateStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpTableStatsReply */
/*****************************************************/
type Of13TableStatsReplyHandler interface {
HandleTableStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpPortStatsReply */
/*****************************************************/
type Of13PortStatsReplyHandler interface {
HandlePortStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpQueueStatsReply */
/*****************************************************/
type Of13QueueStatsReplyHandler interface {
HandleQueueStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpGroupStatsReply */
/*****************************************************/
type Of13GroupStatsReplyHandler interface {
HandleGroupStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpGroupDescStatsReply */
/*****************************************************/
type Of13GroupDescStatsReplyHandler interface {
HandleGroupDescStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpGroupFeaturesStatsReply */
/*****************************************************/
type Of13GroupFeaturesStatsReplyHandler interface {
HandleGroupFeaturesStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpMeterStatsReply */
/*****************************************************/
type Of13MeterStatsReplyHandler interface {
HandleMeterStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpMeterConfigStatsReply */
/*****************************************************/
type Of13MeterConfigStatsReplyHandler interface {
HandleMeterConfigStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpMeterFeaturesStatsReply */
/*****************************************************/
type Of13MeterFeaturesStatsReplyHandler interface {
HandleMeterFeaturesStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpTableFeaturesStatsReply */
/*****************************************************/
type Of13TableFeaturesStatsReplyHandler interface {
HandleTableFeaturesStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* OfpPortDescStatsReply */
/*****************************************************/
type Of13PortDescStatsReplyHandler interface {
HandlePortDescStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
/*****************************************************/
/* RoleReply Message */
/*****************************************************/
type Of13RoleReplyHandler interface {
HandleRoleReply(*ofp13.OfpRole, *Datapath)
}
/*****************************************************/
/* GetAsyncReply Message */
/*****************************************************/
type Of13AsyncConfigHandler interface {
HandleAsyncConfig(*ofp13.OfpAsyncConfig, *Datapath)
}