-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
flow.pb.go
3329 lines (2966 loc) · 120 KB
/
flow.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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2019 Authors of Hubble
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.4
// source: flow/flow.proto
package flow
import (
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type FlowType int32
const (
FlowType_UNKNOWN_TYPE FlowType = 0
FlowType_L3_L4 FlowType = 1 // not sure about the underscore here, but `L34` also reads strange
FlowType_L7 FlowType = 2
)
// Enum value maps for FlowType.
var (
FlowType_name = map[int32]string{
0: "UNKNOWN_TYPE",
1: "L3_L4",
2: "L7",
}
FlowType_value = map[string]int32{
"UNKNOWN_TYPE": 0,
"L3_L4": 1,
"L7": 2,
}
)
func (x FlowType) Enum() *FlowType {
p := new(FlowType)
*p = x
return p
}
func (x FlowType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FlowType) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[0].Descriptor()
}
func (FlowType) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[0]
}
func (x FlowType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FlowType.Descriptor instead.
func (FlowType) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{0}
}
type TraceObservationPoint int32
const (
// Cilium treats 0 as TO_LXC, but its's something we should work to remove.
// This is intentionally set as unknown, so proto API can guarantee the
// observation point is always going to be present on trace events.
TraceObservationPoint_UNKNOWN_POINT TraceObservationPoint = 0
TraceObservationPoint_TO_PROXY TraceObservationPoint = 1
TraceObservationPoint_TO_HOST TraceObservationPoint = 2
TraceObservationPoint_TO_STACK TraceObservationPoint = 3
TraceObservationPoint_TO_OVERLAY TraceObservationPoint = 4
// same as TO_LXC, which had a 0 value. This index is intentionally very
// high so when new segments are added in bpf, there are no collisions
TraceObservationPoint_TO_ENDPOINT TraceObservationPoint = 101
TraceObservationPoint_FROM_ENDPOINT TraceObservationPoint = 5
TraceObservationPoint_FROM_PROXY TraceObservationPoint = 6
TraceObservationPoint_FROM_HOST TraceObservationPoint = 7
TraceObservationPoint_FROM_STACK TraceObservationPoint = 8
TraceObservationPoint_FROM_OVERLAY TraceObservationPoint = 9
TraceObservationPoint_FROM_NETWORK TraceObservationPoint = 10
TraceObservationPoint_TO_NETWORK TraceObservationPoint = 11
)
// Enum value maps for TraceObservationPoint.
var (
TraceObservationPoint_name = map[int32]string{
0: "UNKNOWN_POINT",
1: "TO_PROXY",
2: "TO_HOST",
3: "TO_STACK",
4: "TO_OVERLAY",
101: "TO_ENDPOINT",
5: "FROM_ENDPOINT",
6: "FROM_PROXY",
7: "FROM_HOST",
8: "FROM_STACK",
9: "FROM_OVERLAY",
10: "FROM_NETWORK",
11: "TO_NETWORK",
}
TraceObservationPoint_value = map[string]int32{
"UNKNOWN_POINT": 0,
"TO_PROXY": 1,
"TO_HOST": 2,
"TO_STACK": 3,
"TO_OVERLAY": 4,
"TO_ENDPOINT": 101,
"FROM_ENDPOINT": 5,
"FROM_PROXY": 6,
"FROM_HOST": 7,
"FROM_STACK": 8,
"FROM_OVERLAY": 9,
"FROM_NETWORK": 10,
"TO_NETWORK": 11,
}
)
func (x TraceObservationPoint) Enum() *TraceObservationPoint {
p := new(TraceObservationPoint)
*p = x
return p
}
func (x TraceObservationPoint) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TraceObservationPoint) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[1].Descriptor()
}
func (TraceObservationPoint) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[1]
}
func (x TraceObservationPoint) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TraceObservationPoint.Descriptor instead.
func (TraceObservationPoint) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{1}
}
// This enum corresponds to Cilium's L7 accesslog FlowType:
// https://github.com/cilium/cilium/blob/728c79e427438ab6f8d9375b62fccd6fed4ace3a/pkg/proxy/accesslog/record.go#L26
type L7FlowType int32
const (
L7FlowType_UNKNOWN_L7_TYPE L7FlowType = 0
L7FlowType_REQUEST L7FlowType = 1
L7FlowType_RESPONSE L7FlowType = 2
L7FlowType_SAMPLE L7FlowType = 3
)
// Enum value maps for L7FlowType.
var (
L7FlowType_name = map[int32]string{
0: "UNKNOWN_L7_TYPE",
1: "REQUEST",
2: "RESPONSE",
3: "SAMPLE",
}
L7FlowType_value = map[string]int32{
"UNKNOWN_L7_TYPE": 0,
"REQUEST": 1,
"RESPONSE": 2,
"SAMPLE": 3,
}
)
func (x L7FlowType) Enum() *L7FlowType {
p := new(L7FlowType)
*p = x
return p
}
func (x L7FlowType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (L7FlowType) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[2].Descriptor()
}
func (L7FlowType) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[2]
}
func (x L7FlowType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use L7FlowType.Descriptor instead.
func (L7FlowType) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{2}
}
type IPVersion int32
const (
IPVersion_IP_NOT_USED IPVersion = 0
IPVersion_IPv4 IPVersion = 1
IPVersion_IPv6 IPVersion = 2
)
// Enum value maps for IPVersion.
var (
IPVersion_name = map[int32]string{
0: "IP_NOT_USED",
1: "IPv4",
2: "IPv6",
}
IPVersion_value = map[string]int32{
"IP_NOT_USED": 0,
"IPv4": 1,
"IPv6": 2,
}
)
func (x IPVersion) Enum() *IPVersion {
p := new(IPVersion)
*p = x
return p
}
func (x IPVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IPVersion) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[3].Descriptor()
}
func (IPVersion) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[3]
}
func (x IPVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IPVersion.Descriptor instead.
func (IPVersion) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{3}
}
type Verdict int32
const (
Verdict_VERDICT_UNKNOWN Verdict = 0
Verdict_FORWARDED Verdict = 1
Verdict_DROPPED Verdict = 2
Verdict_ERROR Verdict = 3
)
// Enum value maps for Verdict.
var (
Verdict_name = map[int32]string{
0: "VERDICT_UNKNOWN",
1: "FORWARDED",
2: "DROPPED",
3: "ERROR",
}
Verdict_value = map[string]int32{
"VERDICT_UNKNOWN": 0,
"FORWARDED": 1,
"DROPPED": 2,
"ERROR": 3,
}
)
func (x Verdict) Enum() *Verdict {
p := new(Verdict)
*p = x
return p
}
func (x Verdict) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Verdict) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[4].Descriptor()
}
func (Verdict) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[4]
}
func (x Verdict) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Verdict.Descriptor instead.
func (Verdict) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{4}
}
// These values are shared with pkg/monitor/api/drop.go and bpf/lib/common.h.
// Note that non-drop reasons (i.e. values less than api.DropMin) are not used
// here.
type DropReason int32
const (
// non-drop reasons
DropReason_DROP_REASON_UNKNOWN DropReason = 0
// drop reasons
DropReason_INVALID_SOURCE_MAC DropReason = 130
DropReason_INVALID_DESTINATION_MAC DropReason = 131
DropReason_INVALID_SOURCE_IP DropReason = 132
DropReason_POLICY_DENIED DropReason = 133
DropReason_INVALID_PACKET_DROPPED DropReason = 134
DropReason_CT_TRUNCATED_OR_INVALID_HEADER DropReason = 135
DropReason_CT_MISSING_TCP_ACK_FLAG DropReason = 136
DropReason_CT_UNKNOWN_L4_PROTOCOL DropReason = 137
DropReason_CT_CANNOT_CREATE_ENTRY_FROM_PACKET DropReason = 138
DropReason_UNSUPPORTED_L3_PROTOCOL DropReason = 139
DropReason_MISSED_TAIL_CALL DropReason = 140
DropReason_ERROR_WRITING_TO_PACKET DropReason = 141
DropReason_UNKNOWN_L4_PROTOCOL DropReason = 142
DropReason_UNKNOWN_ICMPV4_CODE DropReason = 143
DropReason_UNKNOWN_ICMPV4_TYPE DropReason = 144
DropReason_UNKNOWN_ICMPV6_CODE DropReason = 145
DropReason_UNKNOWN_ICMPV6_TYPE DropReason = 146
DropReason_ERROR_RETRIEVING_TUNNEL_KEY DropReason = 147
DropReason_ERROR_RETRIEVING_TUNNEL_OPTIONS DropReason = 148
DropReason_INVALID_GENEVE_OPTION DropReason = 149
DropReason_UNKNOWN_L3_TARGET_ADDRESS DropReason = 150
DropReason_STALE_OR_UNROUTABLE_IP DropReason = 151
DropReason_NO_MATCHING_LOCAL_CONTAINER_FOUND DropReason = 152
DropReason_ERROR_WHILE_CORRECTING_L3_CHECKSUM DropReason = 153
DropReason_ERROR_WHILE_CORRECTING_L4_CHECKSUM DropReason = 154
DropReason_CT_MAP_INSERTION_FAILED DropReason = 155
DropReason_INVALID_IPV6_EXTENSION_HEADER DropReason = 156
DropReason_IP_FRAGMENTATION_NOT_SUPPORTED DropReason = 157
DropReason_SERVICE_BACKEND_NOT_FOUND DropReason = 158
DropReason_NO_TUNNEL_OR_ENCAPSULATION_ENDPOINT DropReason = 160
DropReason_FAILED_TO_INSERT_INTO_PROXYMAP DropReason = 161
DropReason_REACHED_EDT_RATE_LIMITING_DROP_HORIZON DropReason = 162
DropReason_UNKNOWN_CONNECTION_TRACKING_STATE DropReason = 163
DropReason_LOCAL_HOST_IS_UNREACHABLE DropReason = 164
DropReason_NO_CONFIGURATION_AVAILABLE_TO_PERFORM_POLICY_DECISION DropReason = 165
DropReason_UNSUPPORTED_L2_PROTOCOL DropReason = 166
DropReason_NO_MAPPING_FOR_NAT_MASQUERADE DropReason = 167
DropReason_UNSUPPORTED_PROTOCOL_FOR_NAT_MASQUERADE DropReason = 168
DropReason_FIB_LOOKUP_FAILED DropReason = 169
DropReason_ENCAPSULATION_TRAFFIC_IS_PROHIBITED DropReason = 170
DropReason_INVALID_IDENTITY DropReason = 171
DropReason_UNKNOWN_SENDER DropReason = 172
DropReason_NAT_NOT_NEEDED DropReason = 173
DropReason_IS_A_CLUSTERIP DropReason = 174
DropReason_FIRST_LOGICAL_DATAGRAM_FRAGMENT_NOT_FOUND DropReason = 175
DropReason_FORBIDDEN_ICMPV6_MESSAGE DropReason = 176
DropReason_DENIED_BY_LB_SRC_RANGE_CHECK DropReason = 177
DropReason_SOCKET_LOOKUP_FAILED DropReason = 178
DropReason_SOCKET_ASSIGN_FAILED DropReason = 179
DropReason_PROXY_REDIRECTION_NOT_SUPPORTED_FOR_PROTOCOL DropReason = 180
)
// Enum value maps for DropReason.
var (
DropReason_name = map[int32]string{
0: "DROP_REASON_UNKNOWN",
130: "INVALID_SOURCE_MAC",
131: "INVALID_DESTINATION_MAC",
132: "INVALID_SOURCE_IP",
133: "POLICY_DENIED",
134: "INVALID_PACKET_DROPPED",
135: "CT_TRUNCATED_OR_INVALID_HEADER",
136: "CT_MISSING_TCP_ACK_FLAG",
137: "CT_UNKNOWN_L4_PROTOCOL",
138: "CT_CANNOT_CREATE_ENTRY_FROM_PACKET",
139: "UNSUPPORTED_L3_PROTOCOL",
140: "MISSED_TAIL_CALL",
141: "ERROR_WRITING_TO_PACKET",
142: "UNKNOWN_L4_PROTOCOL",
143: "UNKNOWN_ICMPV4_CODE",
144: "UNKNOWN_ICMPV4_TYPE",
145: "UNKNOWN_ICMPV6_CODE",
146: "UNKNOWN_ICMPV6_TYPE",
147: "ERROR_RETRIEVING_TUNNEL_KEY",
148: "ERROR_RETRIEVING_TUNNEL_OPTIONS",
149: "INVALID_GENEVE_OPTION",
150: "UNKNOWN_L3_TARGET_ADDRESS",
151: "STALE_OR_UNROUTABLE_IP",
152: "NO_MATCHING_LOCAL_CONTAINER_FOUND",
153: "ERROR_WHILE_CORRECTING_L3_CHECKSUM",
154: "ERROR_WHILE_CORRECTING_L4_CHECKSUM",
155: "CT_MAP_INSERTION_FAILED",
156: "INVALID_IPV6_EXTENSION_HEADER",
157: "IP_FRAGMENTATION_NOT_SUPPORTED",
158: "SERVICE_BACKEND_NOT_FOUND",
160: "NO_TUNNEL_OR_ENCAPSULATION_ENDPOINT",
161: "FAILED_TO_INSERT_INTO_PROXYMAP",
162: "REACHED_EDT_RATE_LIMITING_DROP_HORIZON",
163: "UNKNOWN_CONNECTION_TRACKING_STATE",
164: "LOCAL_HOST_IS_UNREACHABLE",
165: "NO_CONFIGURATION_AVAILABLE_TO_PERFORM_POLICY_DECISION",
166: "UNSUPPORTED_L2_PROTOCOL",
167: "NO_MAPPING_FOR_NAT_MASQUERADE",
168: "UNSUPPORTED_PROTOCOL_FOR_NAT_MASQUERADE",
169: "FIB_LOOKUP_FAILED",
170: "ENCAPSULATION_TRAFFIC_IS_PROHIBITED",
171: "INVALID_IDENTITY",
172: "UNKNOWN_SENDER",
173: "NAT_NOT_NEEDED",
174: "IS_A_CLUSTERIP",
175: "FIRST_LOGICAL_DATAGRAM_FRAGMENT_NOT_FOUND",
176: "FORBIDDEN_ICMPV6_MESSAGE",
177: "DENIED_BY_LB_SRC_RANGE_CHECK",
178: "SOCKET_LOOKUP_FAILED",
179: "SOCKET_ASSIGN_FAILED",
180: "PROXY_REDIRECTION_NOT_SUPPORTED_FOR_PROTOCOL",
}
DropReason_value = map[string]int32{
"DROP_REASON_UNKNOWN": 0,
"INVALID_SOURCE_MAC": 130,
"INVALID_DESTINATION_MAC": 131,
"INVALID_SOURCE_IP": 132,
"POLICY_DENIED": 133,
"INVALID_PACKET_DROPPED": 134,
"CT_TRUNCATED_OR_INVALID_HEADER": 135,
"CT_MISSING_TCP_ACK_FLAG": 136,
"CT_UNKNOWN_L4_PROTOCOL": 137,
"CT_CANNOT_CREATE_ENTRY_FROM_PACKET": 138,
"UNSUPPORTED_L3_PROTOCOL": 139,
"MISSED_TAIL_CALL": 140,
"ERROR_WRITING_TO_PACKET": 141,
"UNKNOWN_L4_PROTOCOL": 142,
"UNKNOWN_ICMPV4_CODE": 143,
"UNKNOWN_ICMPV4_TYPE": 144,
"UNKNOWN_ICMPV6_CODE": 145,
"UNKNOWN_ICMPV6_TYPE": 146,
"ERROR_RETRIEVING_TUNNEL_KEY": 147,
"ERROR_RETRIEVING_TUNNEL_OPTIONS": 148,
"INVALID_GENEVE_OPTION": 149,
"UNKNOWN_L3_TARGET_ADDRESS": 150,
"STALE_OR_UNROUTABLE_IP": 151,
"NO_MATCHING_LOCAL_CONTAINER_FOUND": 152,
"ERROR_WHILE_CORRECTING_L3_CHECKSUM": 153,
"ERROR_WHILE_CORRECTING_L4_CHECKSUM": 154,
"CT_MAP_INSERTION_FAILED": 155,
"INVALID_IPV6_EXTENSION_HEADER": 156,
"IP_FRAGMENTATION_NOT_SUPPORTED": 157,
"SERVICE_BACKEND_NOT_FOUND": 158,
"NO_TUNNEL_OR_ENCAPSULATION_ENDPOINT": 160,
"FAILED_TO_INSERT_INTO_PROXYMAP": 161,
"REACHED_EDT_RATE_LIMITING_DROP_HORIZON": 162,
"UNKNOWN_CONNECTION_TRACKING_STATE": 163,
"LOCAL_HOST_IS_UNREACHABLE": 164,
"NO_CONFIGURATION_AVAILABLE_TO_PERFORM_POLICY_DECISION": 165,
"UNSUPPORTED_L2_PROTOCOL": 166,
"NO_MAPPING_FOR_NAT_MASQUERADE": 167,
"UNSUPPORTED_PROTOCOL_FOR_NAT_MASQUERADE": 168,
"FIB_LOOKUP_FAILED": 169,
"ENCAPSULATION_TRAFFIC_IS_PROHIBITED": 170,
"INVALID_IDENTITY": 171,
"UNKNOWN_SENDER": 172,
"NAT_NOT_NEEDED": 173,
"IS_A_CLUSTERIP": 174,
"FIRST_LOGICAL_DATAGRAM_FRAGMENT_NOT_FOUND": 175,
"FORBIDDEN_ICMPV6_MESSAGE": 176,
"DENIED_BY_LB_SRC_RANGE_CHECK": 177,
"SOCKET_LOOKUP_FAILED": 178,
"SOCKET_ASSIGN_FAILED": 179,
"PROXY_REDIRECTION_NOT_SUPPORTED_FOR_PROTOCOL": 180,
}
)
func (x DropReason) Enum() *DropReason {
p := new(DropReason)
*p = x
return p
}
func (x DropReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DropReason) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[5].Descriptor()
}
func (DropReason) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[5]
}
func (x DropReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DropReason.Descriptor instead.
func (DropReason) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{5}
}
type TrafficDirection int32
const (
TrafficDirection_TRAFFIC_DIRECTION_UNKNOWN TrafficDirection = 0
TrafficDirection_INGRESS TrafficDirection = 1
TrafficDirection_EGRESS TrafficDirection = 2
)
// Enum value maps for TrafficDirection.
var (
TrafficDirection_name = map[int32]string{
0: "TRAFFIC_DIRECTION_UNKNOWN",
1: "INGRESS",
2: "EGRESS",
}
TrafficDirection_value = map[string]int32{
"TRAFFIC_DIRECTION_UNKNOWN": 0,
"INGRESS": 1,
"EGRESS": 2,
}
)
func (x TrafficDirection) Enum() *TrafficDirection {
p := new(TrafficDirection)
*p = x
return p
}
func (x TrafficDirection) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficDirection) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[6].Descriptor()
}
func (TrafficDirection) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[6]
}
func (x TrafficDirection) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficDirection.Descriptor instead.
func (TrafficDirection) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{6}
}
// EventType are constants are based on the ones from <linux/perf_event.h>.
type EventType int32
const (
EventType_UNKNOWN EventType = 0
// EventSample is equivalent to PERF_RECORD_SAMPLE.
EventType_EventSample EventType = 9
// RecordLost is equivalent to PERF_RECORD_LOST.
EventType_RecordLost EventType = 2
)
// Enum value maps for EventType.
var (
EventType_name = map[int32]string{
0: "UNKNOWN",
9: "EventSample",
2: "RecordLost",
}
EventType_value = map[string]int32{
"UNKNOWN": 0,
"EventSample": 9,
"RecordLost": 2,
}
)
func (x EventType) Enum() *EventType {
p := new(EventType)
*p = x
return p
}
func (x EventType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EventType) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[7].Descriptor()
}
func (EventType) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[7]
}
func (x EventType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EventType.Descriptor instead.
func (EventType) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{7}
}
type LostEventSource int32
const (
LostEventSource_UNKNOWN_LOST_EVENT_SOURCE LostEventSource = 0
// PERF_EVENT_RING_BUFFER indicates that events were dropped in the BPF
// perf event ring buffer, indicating that userspace agent did not keep up
// with the events produced by the datapath.
LostEventSource_PERF_EVENT_RING_BUFFER LostEventSource = 1
// OBSERVER_EVENTS_QUEUE indicates that events were dropped because the
// Hubble events queue was full, indicating that the Hubble observer did
// not keep up.
LostEventSource_OBSERVER_EVENTS_QUEUE LostEventSource = 2
)
// Enum value maps for LostEventSource.
var (
LostEventSource_name = map[int32]string{
0: "UNKNOWN_LOST_EVENT_SOURCE",
1: "PERF_EVENT_RING_BUFFER",
2: "OBSERVER_EVENTS_QUEUE",
}
LostEventSource_value = map[string]int32{
"UNKNOWN_LOST_EVENT_SOURCE": 0,
"PERF_EVENT_RING_BUFFER": 1,
"OBSERVER_EVENTS_QUEUE": 2,
}
)
func (x LostEventSource) Enum() *LostEventSource {
p := new(LostEventSource)
*p = x
return p
}
func (x LostEventSource) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LostEventSource) Descriptor() protoreflect.EnumDescriptor {
return file_flow_flow_proto_enumTypes[8].Descriptor()
}
func (LostEventSource) Type() protoreflect.EnumType {
return &file_flow_flow_proto_enumTypes[8]
}
func (x LostEventSource) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LostEventSource.Descriptor instead.
func (LostEventSource) EnumDescriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{8}
}
type Flow struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
Verdict Verdict `protobuf:"varint,2,opt,name=verdict,proto3,enum=flow.Verdict" json:"verdict,omitempty"`
// only applicable to Verdict = DROPPED.
// deprecated in favor of drop_reason_desc.
//
// Deprecated: Do not use.
DropReason uint32 `protobuf:"varint,3,opt,name=drop_reason,json=dropReason,proto3" json:"drop_reason,omitempty"`
// l2
Ethernet *Ethernet `protobuf:"bytes,4,opt,name=ethernet,proto3" json:"ethernet,omitempty"`
// l3
IP *IP `protobuf:"bytes,5,opt,name=IP,proto3" json:"IP,omitempty"`
// l4
L4 *Layer4 `protobuf:"bytes,6,opt,name=l4,proto3" json:"l4,omitempty"`
Source *Endpoint `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"`
Destination *Endpoint `protobuf:"bytes,9,opt,name=destination,proto3" json:"destination,omitempty"`
Type FlowType `protobuf:"varint,10,opt,name=Type,proto3,enum=flow.FlowType" json:"Type,omitempty"`
// NodeName is the name of the node from which this Flow was captured.
NodeName string `protobuf:"bytes,11,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
// all names the source IP can have.
SourceNames []string `protobuf:"bytes,13,rep,name=source_names,json=sourceNames,proto3" json:"source_names,omitempty"`
// all names the destination IP can have.
DestinationNames []string `protobuf:"bytes,14,rep,name=destination_names,json=destinationNames,proto3" json:"destination_names,omitempty"`
// L7 information. This field is set if and only if FlowType is L7.
L7 *Layer7 `protobuf:"bytes,15,opt,name=l7,proto3" json:"l7,omitempty"`
// Deprecated. This suffers from false negatives due to protobuf not being
// able to distinguish between the value being false or it being absent.
// Please use is_reply instead.
//
// Deprecated: Do not use.
Reply bool `protobuf:"varint,16,opt,name=reply,proto3" json:"reply,omitempty"`
// EventType of the originating Cilium event
EventType *CiliumEventType `protobuf:"bytes,19,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
// source_service contains the service name of the source
SourceService *Service `protobuf:"bytes,20,opt,name=source_service,json=sourceService,proto3" json:"source_service,omitempty"`
// destination_service contains the service name of the destination
DestinationService *Service `protobuf:"bytes,21,opt,name=destination_service,json=destinationService,proto3" json:"destination_service,omitempty"`
// traffic_direction of the connection, e.g. ingress or egress
TrafficDirection TrafficDirection `protobuf:"varint,22,opt,name=traffic_direction,json=trafficDirection,proto3,enum=flow.TrafficDirection" json:"traffic_direction,omitempty"`
// policy_match_type is only applicable to the cilium event type PolicyVerdict
// https://github.com/cilium/cilium/blob/e831859b5cc336c6d964a6d35bbd34d1840e21b9/pkg/monitor/datapath_policy.go#L50
PolicyMatchType uint32 `protobuf:"varint,23,opt,name=policy_match_type,json=policyMatchType,proto3" json:"policy_match_type,omitempty"`
// Only applicable to cilium trace notifications, blank for other types.
TraceObservationPoint TraceObservationPoint `protobuf:"varint,24,opt,name=trace_observation_point,json=traceObservationPoint,proto3,enum=flow.TraceObservationPoint" json:"trace_observation_point,omitempty"`
// only applicable to Verdict = DROPPED.
DropReasonDesc DropReason `protobuf:"varint,25,opt,name=drop_reason_desc,json=dropReasonDesc,proto3,enum=flow.DropReason" json:"drop_reason_desc,omitempty"`
// is_reply indicates that this was a packet (L4) or message (L7) in the
// reply direction. May be absent (in which case it is unknown whether it
// is a reply or not).
IsReply *wrappers.BoolValue `protobuf:"bytes,26,opt,name=is_reply,json=isReply,proto3" json:"is_reply,omitempty"`
// This is a temporary workaround to support summary field for pb.Flow without
// duplicating logic from the old parser. This field will be removed once we
// fully migrate to the new parser.
//
// Deprecated: Do not use.
Summary string `protobuf:"bytes,100000,opt,name=Summary,proto3" json:"Summary,omitempty"`
}
func (x *Flow) Reset() {
*x = Flow{}
if protoimpl.UnsafeEnabled {
mi := &file_flow_flow_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Flow) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Flow) ProtoMessage() {}
func (x *Flow) ProtoReflect() protoreflect.Message {
mi := &file_flow_flow_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Flow.ProtoReflect.Descriptor instead.
func (*Flow) Descriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{0}
}
func (x *Flow) GetTime() *timestamp.Timestamp {
if x != nil {
return x.Time
}
return nil
}
func (x *Flow) GetVerdict() Verdict {
if x != nil {
return x.Verdict
}
return Verdict_VERDICT_UNKNOWN
}
// Deprecated: Do not use.
func (x *Flow) GetDropReason() uint32 {
if x != nil {
return x.DropReason
}
return 0
}
func (x *Flow) GetEthernet() *Ethernet {
if x != nil {
return x.Ethernet
}
return nil
}
func (x *Flow) GetIP() *IP {
if x != nil {
return x.IP
}
return nil
}
func (x *Flow) GetL4() *Layer4 {
if x != nil {
return x.L4
}
return nil
}
func (x *Flow) GetSource() *Endpoint {
if x != nil {
return x.Source
}
return nil
}
func (x *Flow) GetDestination() *Endpoint {
if x != nil {
return x.Destination
}
return nil
}
func (x *Flow) GetType() FlowType {
if x != nil {
return x.Type
}
return FlowType_UNKNOWN_TYPE
}
func (x *Flow) GetNodeName() string {
if x != nil {
return x.NodeName
}
return ""
}
func (x *Flow) GetSourceNames() []string {
if x != nil {
return x.SourceNames
}
return nil
}
func (x *Flow) GetDestinationNames() []string {
if x != nil {
return x.DestinationNames
}
return nil
}
func (x *Flow) GetL7() *Layer7 {
if x != nil {
return x.L7
}
return nil
}
// Deprecated: Do not use.
func (x *Flow) GetReply() bool {
if x != nil {
return x.Reply
}
return false
}
func (x *Flow) GetEventType() *CiliumEventType {
if x != nil {
return x.EventType
}
return nil
}
func (x *Flow) GetSourceService() *Service {
if x != nil {
return x.SourceService
}
return nil
}
func (x *Flow) GetDestinationService() *Service {
if x != nil {
return x.DestinationService
}
return nil
}
func (x *Flow) GetTrafficDirection() TrafficDirection {
if x != nil {
return x.TrafficDirection
}
return TrafficDirection_TRAFFIC_DIRECTION_UNKNOWN
}
func (x *Flow) GetPolicyMatchType() uint32 {
if x != nil {
return x.PolicyMatchType
}
return 0
}
func (x *Flow) GetTraceObservationPoint() TraceObservationPoint {
if x != nil {
return x.TraceObservationPoint
}
return TraceObservationPoint_UNKNOWN_POINT
}
func (x *Flow) GetDropReasonDesc() DropReason {
if x != nil {
return x.DropReasonDesc
}
return DropReason_DROP_REASON_UNKNOWN
}
func (x *Flow) GetIsReply() *wrappers.BoolValue {
if x != nil {
return x.IsReply
}
return nil
}
// Deprecated: Do not use.
func (x *Flow) GetSummary() string {
if x != nil {
return x.Summary
}
return ""
}
type Layer4 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Protocol:
// *Layer4_TCP
// *Layer4_UDP
// *Layer4_ICMPv4
// *Layer4_ICMPv6
Protocol isLayer4_Protocol `protobuf_oneof:"protocol"`
}
func (x *Layer4) Reset() {
*x = Layer4{}
if protoimpl.UnsafeEnabled {
mi := &file_flow_flow_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Layer4) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Layer4) ProtoMessage() {}
func (x *Layer4) ProtoReflect() protoreflect.Message {
mi := &file_flow_flow_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Layer4.ProtoReflect.Descriptor instead.
func (*Layer4) Descriptor() ([]byte, []int) {
return file_flow_flow_proto_rawDescGZIP(), []int{1}
}
func (m *Layer4) GetProtocol() isLayer4_Protocol {
if m != nil {
return m.Protocol
}
return nil
}
func (x *Layer4) GetTCP() *TCP {
if x, ok := x.GetProtocol().(*Layer4_TCP); ok {
return x.TCP
}
return nil