@@ -53,6 +53,7 @@ func TestConversions(t *testing.T) {
53
53
DnsRecord : ebpf.BpfDnsRecordT {
54
54
Errno : 0 ,
55
55
},
56
+ FlowEncrypted : true ,
56
57
},
57
58
},
58
59
Interfaces : []model.IntfDirUdn {model .NewIntfDirUdn ("eth0" , model .DirectionEgress , nil )},
@@ -80,6 +81,8 @@ func TestConversions(t *testing.T) {
80
81
"Interfaces" : []string {"eth0" },
81
82
"Udns" : []string {"" },
82
83
"AgentIP" : "10.11.12.13" ,
84
+ "IPSecSuccess" : true ,
85
+ "IPSecRetCode" : 0 ,
83
86
},
84
87
},
85
88
{
@@ -345,6 +348,7 @@ func TestConversions(t *testing.T) {
345
348
LatestState : 6 ,
346
349
LatestDropCause : 5 ,
347
350
},
351
+ FlowEncrypted : true ,
348
352
},
349
353
},
350
354
Interfaces : []model.IntfDirUdn {model .NewIntfDirUdn ("eth0" , model .DirectionEgress , nil )},
@@ -383,6 +387,8 @@ func TestConversions(t *testing.T) {
383
387
"DnsFlags" : 0x8001 ,
384
388
"DnsFlagsResponseCode" : "FormErr" ,
385
389
"TimeFlowRttNs" : someDuration .Nanoseconds (),
390
+ "IPSecSuccess" : true ,
391
+ "IPSecRetCode" : 0 ,
386
392
},
387
393
},
388
394
{
@@ -409,6 +415,7 @@ func TestConversions(t *testing.T) {
409
415
DnsRecord : ebpf.BpfDnsRecordT {
410
416
Errno : 0 ,
411
417
},
418
+ FlowEncrypted : true ,
412
419
},
413
420
},
414
421
Interfaces : []model.IntfDirUdn {
@@ -438,6 +445,8 @@ func TestConversions(t *testing.T) {
438
445
"Interfaces" : []string {"5e6e92caa1d51cf" , "eth0" },
439
446
"Udns" : []string {"" , "" },
440
447
"AgentIP" : "10.11.12.13" ,
448
+ "IPSecSuccess" : true ,
449
+ "IPSecRetCode" : 0 ,
441
450
},
442
451
},
443
452
}
0 commit comments