inlet/flow: rename SrcNet/DstNet to SrcNetMask/DstNetMask

This commit is contained in:
Vincent Bernat
2022-11-26 14:40:02 +01:00
parent 5b88b5f30a
commit 0c3a1668d8
14 changed files with 143 additions and 39 deletions

View File

@@ -107,8 +107,8 @@ func TestDecode(t *testing.T) {
Packets: 1,
SrcAddr: net.ParseIP("198.38.121.178").To16(),
DstAddr: net.ParseIP("91.170.143.87").To16(),
SrcNet: 24,
DstNet: 14,
SrcNetMask: 24,
DstNetMask: 14,
Etype: 0x800,
Proto: 6,
SrcPort: 443,
@@ -128,8 +128,8 @@ func TestDecode(t *testing.T) {
Packets: 1,
SrcAddr: net.ParseIP("198.38.121.219").To16(),
DstAddr: net.ParseIP("88.122.57.97").To16(),
SrcNet: 24,
DstNet: 14,
SrcNetMask: 24,
DstNetMask: 14,
Etype: 0x800,
Proto: 6,
SrcPort: 443,
@@ -149,8 +149,8 @@ func TestDecode(t *testing.T) {
Packets: 1,
SrcAddr: net.ParseIP("173.194.190.106").To16(),
DstAddr: net.ParseIP("37.165.129.20").To16(),
SrcNet: 20,
DstNet: 18,
SrcNetMask: 20,
DstNetMask: 18,
Etype: 0x800,
Proto: 6,
SrcPort: 443,
@@ -170,8 +170,8 @@ func TestDecode(t *testing.T) {
Packets: 1,
SrcAddr: net.ParseIP("74.125.100.234").To16(),
DstAddr: net.ParseIP("88.120.219.117").To16(),
SrcNet: 16,
DstNet: 14,
SrcNetMask: 16,
DstNetMask: 14,
Etype: 0x800,
Proto: 6,
SrcPort: 443,