/
punt.pb.go
386 lines (341 loc) · 13.2 KB
/
punt.pb.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: models/vpp/punt/punt.proto
package vpp_punt
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// L3Protocol defines Layer 3 protocols.
type L3Protocol int32
const (
L3Protocol_UNDEFINED_L3 L3Protocol = 0
L3Protocol_IPv4 L3Protocol = 4
L3Protocol_IPv6 L3Protocol = 6
L3Protocol_ALL L3Protocol = 10
)
var L3Protocol_name = map[int32]string{
0: "UNDEFINED_L3",
4: "IPv4",
6: "IPv6",
10: "ALL",
}
var L3Protocol_value = map[string]int32{
"UNDEFINED_L3": 0,
"IPv4": 4,
"IPv6": 6,
"ALL": 10,
}
func (x L3Protocol) String() string {
return proto.EnumName(L3Protocol_name, int32(x))
}
func (L3Protocol) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c6553556423e0b80, []int{0}
}
// L4Protocol defines Layer 4 protocols.
type L4Protocol int32
const (
L4Protocol_UNDEFINED_L4 L4Protocol = 0
L4Protocol_TCP L4Protocol = 6
L4Protocol_UDP L4Protocol = 17
)
var L4Protocol_name = map[int32]string{
0: "UNDEFINED_L4",
6: "TCP",
17: "UDP",
}
var L4Protocol_value = map[string]int32{
"UNDEFINED_L4": 0,
"TCP": 6,
"UDP": 17,
}
func (x L4Protocol) String() string {
return proto.EnumName(L4Protocol_name, int32(x))
}
func (L4Protocol) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c6553556423e0b80, []int{1}
}
// IPRedirect allows otherwise dropped packet which destination IP address
// matching some of the VPP addresses to redirect to the defined next hop address
// via the TX interface.
type IPRedirect struct {
// L3 protocol to be redirected
L3Protocol L3Protocol `protobuf:"varint,1,opt,name=l3_protocol,json=l3Protocol,proto3,enum=vpp.punt.L3Protocol" json:"l3_protocol,omitempty"`
// Receive interface name. Optional, only redirect traffic incoming from this interface
RxInterface string `protobuf:"bytes,2,opt,name=rx_interface,json=rxInterface,proto3" json:"rx_interface,omitempty"`
// Transmit interface name
TxInterface string `protobuf:"bytes,3,opt,name=tx_interface,json=txInterface,proto3" json:"tx_interface,omitempty"`
// Next hop IP where the traffic is redirected
NextHop string `protobuf:"bytes,4,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IPRedirect) Reset() { *m = IPRedirect{} }
func (m *IPRedirect) String() string { return proto.CompactTextString(m) }
func (*IPRedirect) ProtoMessage() {}
func (*IPRedirect) Descriptor() ([]byte, []int) {
return fileDescriptor_c6553556423e0b80, []int{0}
}
func (m *IPRedirect) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IPRedirect.Unmarshal(m, b)
}
func (m *IPRedirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IPRedirect.Marshal(b, m, deterministic)
}
func (m *IPRedirect) XXX_Merge(src proto.Message) {
xxx_messageInfo_IPRedirect.Merge(m, src)
}
func (m *IPRedirect) XXX_Size() int {
return xxx_messageInfo_IPRedirect.Size(m)
}
func (m *IPRedirect) XXX_DiscardUnknown() {
xxx_messageInfo_IPRedirect.DiscardUnknown(m)
}
var xxx_messageInfo_IPRedirect proto.InternalMessageInfo
func (m *IPRedirect) GetL3Protocol() L3Protocol {
if m != nil {
return m.L3Protocol
}
return L3Protocol_UNDEFINED_L3
}
func (m *IPRedirect) GetRxInterface() string {
if m != nil {
return m.RxInterface
}
return ""
}
func (m *IPRedirect) GetTxInterface() string {
if m != nil {
return m.TxInterface
}
return ""
}
func (m *IPRedirect) GetNextHop() string {
if m != nil {
return m.NextHop
}
return ""
}
func (*IPRedirect) XXX_MessageName() string {
return "vpp.punt.IPRedirect"
}
// ToHost allows otherwise dropped packet which destination IP address matching
// some of the VPP interface IP addresses to be punted to the host.
// L3 and L4 protocols can be used for filtering */
type ToHost struct {
// L3 destination protocol a packet has to match in order to be punted.
L3Protocol L3Protocol `protobuf:"varint,2,opt,name=l3_protocol,json=l3Protocol,proto3,enum=vpp.punt.L3Protocol" json:"l3_protocol,omitempty"`
// L4 destination protocol a packet has to match.
// Currently VPP only supports UDP.
L4Protocol L4Protocol `protobuf:"varint,3,opt,name=l4_protocol,json=l4Protocol,proto3,enum=vpp.punt.L4Protocol" json:"l4_protocol,omitempty"`
// Destination port
Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
// SocketPath defines path to unix domain socket
// used for punt packets to the host.
// In dumps, it will actually contain the socket
// defined in VPP config under punt section.
SocketPath string `protobuf:"bytes,5,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ToHost) Reset() { *m = ToHost{} }
func (m *ToHost) String() string { return proto.CompactTextString(m) }
func (*ToHost) ProtoMessage() {}
func (*ToHost) Descriptor() ([]byte, []int) {
return fileDescriptor_c6553556423e0b80, []int{1}
}
func (m *ToHost) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ToHost.Unmarshal(m, b)
}
func (m *ToHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ToHost.Marshal(b, m, deterministic)
}
func (m *ToHost) XXX_Merge(src proto.Message) {
xxx_messageInfo_ToHost.Merge(m, src)
}
func (m *ToHost) XXX_Size() int {
return xxx_messageInfo_ToHost.Size(m)
}
func (m *ToHost) XXX_DiscardUnknown() {
xxx_messageInfo_ToHost.DiscardUnknown(m)
}
var xxx_messageInfo_ToHost proto.InternalMessageInfo
func (m *ToHost) GetL3Protocol() L3Protocol {
if m != nil {
return m.L3Protocol
}
return L3Protocol_UNDEFINED_L3
}
func (m *ToHost) GetL4Protocol() L4Protocol {
if m != nil {
return m.L4Protocol
}
return L4Protocol_UNDEFINED_L4
}
func (m *ToHost) GetPort() uint32 {
if m != nil {
return m.Port
}
return 0
}
func (m *ToHost) GetSocketPath() string {
if m != nil {
return m.SocketPath
}
return ""
}
func (*ToHost) XXX_MessageName() string {
return "vpp.punt.ToHost"
}
// Exception allows specifying punt exceptions used for punting packets.
// The type of exception is defined by reason name.
type Exception struct {
// Name should contain reason name, e.g. `ipsec4-spi-0`.
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
// SocketPath defines path to unix domain socket
// used for punt packets to the host.
// In dumps, it will actually contain the socket
// defined in VPP config under punt section.
SocketPath string `protobuf:"bytes,2,opt,name=socket_path,json=socketPath,proto3" json:"socket_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Exception) Reset() { *m = Exception{} }
func (m *Exception) String() string { return proto.CompactTextString(m) }
func (*Exception) ProtoMessage() {}
func (*Exception) Descriptor() ([]byte, []int) {
return fileDescriptor_c6553556423e0b80, []int{2}
}
func (m *Exception) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Exception.Unmarshal(m, b)
}
func (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Exception.Marshal(b, m, deterministic)
}
func (m *Exception) XXX_Merge(src proto.Message) {
xxx_messageInfo_Exception.Merge(m, src)
}
func (m *Exception) XXX_Size() int {
return xxx_messageInfo_Exception.Size(m)
}
func (m *Exception) XXX_DiscardUnknown() {
xxx_messageInfo_Exception.DiscardUnknown(m)
}
var xxx_messageInfo_Exception proto.InternalMessageInfo
func (m *Exception) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
func (m *Exception) GetSocketPath() string {
if m != nil {
return m.SocketPath
}
return ""
}
func (*Exception) XXX_MessageName() string {
return "vpp.punt.Exception"
}
// Reason represents punt reason used in exceptions.
// List of known exceptions can be retrieved in VPP CLI
// with following command:
//
// vpp# show punt reasons
// [0] ipsec4-spi-0 from:[ipsec ]
// [1] ipsec6-spi-0 from:[ipsec ]
// [2] ipsec4-spi-o-udp-0 from:[ipsec ]
// [3] ipsec4-no-such-tunnel from:[ipsec ]
// [4] ipsec6-no-such-tunnel from:[ipsec ]
// [5] VXLAN-GBP-no-such-v4-tunnel from:[vxlan-gbp ]
// [6] VXLAN-GBP-no-such-v6-tunnel from:[vxlan-gbp ]
//
type Reason struct {
// Name contains reason name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Reason) Reset() { *m = Reason{} }
func (m *Reason) String() string { return proto.CompactTextString(m) }
func (*Reason) ProtoMessage() {}
func (*Reason) Descriptor() ([]byte, []int) {
return fileDescriptor_c6553556423e0b80, []int{3}
}
func (m *Reason) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Reason.Unmarshal(m, b)
}
func (m *Reason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Reason.Marshal(b, m, deterministic)
}
func (m *Reason) XXX_Merge(src proto.Message) {
xxx_messageInfo_Reason.Merge(m, src)
}
func (m *Reason) XXX_Size() int {
return xxx_messageInfo_Reason.Size(m)
}
func (m *Reason) XXX_DiscardUnknown() {
xxx_messageInfo_Reason.DiscardUnknown(m)
}
var xxx_messageInfo_Reason proto.InternalMessageInfo
func (m *Reason) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (*Reason) XXX_MessageName() string {
return "vpp.punt.Reason"
}
func init() {
proto.RegisterEnum("vpp.punt.L3Protocol", L3Protocol_name, L3Protocol_value)
proto.RegisterEnum("vpp.punt.L4Protocol", L4Protocol_name, L4Protocol_value)
proto.RegisterType((*IPRedirect)(nil), "vpp.punt.IPRedirect")
proto.RegisterType((*ToHost)(nil), "vpp.punt.ToHost")
proto.RegisterType((*Exception)(nil), "vpp.punt.Exception")
proto.RegisterType((*Reason)(nil), "vpp.punt.Reason")
}
func init() { proto.RegisterFile("models/vpp/punt/punt.proto", fileDescriptor_c6553556423e0b80) }
var fileDescriptor_c6553556423e0b80 = []byte{
// 414 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xd1, 0x6a, 0x9c, 0x40,
0x14, 0x8d, 0xbb, 0xd6, 0xec, 0xde, 0x4d, 0x8b, 0x1d, 0x4a, 0xb1, 0xa1, 0xb4, 0xe9, 0x3e, 0x85,
0x40, 0xb4, 0x54, 0x5b, 0x0a, 0x81, 0x42, 0x5b, 0xb7, 0x44, 0x90, 0x20, 0x92, 0xbc, 0xf4, 0x45,
0x66, 0xcd, 0x44, 0xa5, 0xae, 0x77, 0xd0, 0x59, 0xf1, 0x83, 0xfa, 0xd6, 0x1f, 0xe9, 0x7f, 0xf4,
0x47, 0x8a, 0xa3, 0xbb, 0x2b, 0xbb, 0x2f, 0x79, 0x19, 0xce, 0x99, 0x7b, 0xce, 0xe1, 0xcc, 0x70,
0xe1, 0x74, 0x85, 0xf7, 0x2c, 0xaf, 0xac, 0x9a, 0x73, 0x8b, 0xaf, 0x0b, 0x21, 0x0f, 0x93, 0x97,
0x28, 0x90, 0x4c, 0x6a, 0xce, 0xcd, 0x96, 0x9f, 0x5e, 0x26, 0x99, 0x48, 0xd7, 0x4b, 0x33, 0xc6,
0x95, 0x95, 0x60, 0x82, 0x96, 0x14, 0x2c, 0xd7, 0x0f, 0x92, 0x49, 0x22, 0x51, 0x67, 0x9c, 0xff,
0x56, 0x00, 0xbc, 0x20, 0x64, 0xf7, 0x59, 0xc9, 0x62, 0x41, 0x3e, 0xc2, 0x2c, 0xb7, 0x23, 0x39,
0x8a, 0x31, 0x37, 0x94, 0x33, 0xe5, 0xfc, 0xd9, 0x87, 0x17, 0xe6, 0x26, 0xdd, 0xf4, 0xed, 0xa0,
0x9f, 0x85, 0x90, 0x6f, 0x31, 0x79, 0x07, 0x27, 0x65, 0x13, 0x65, 0x85, 0x60, 0xe5, 0x03, 0x8d,
0x99, 0x31, 0x3a, 0x53, 0xce, 0xa7, 0xe1, 0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