summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/TESTLIST10
-rw-r--r--tests/macsec-changed.out7
-rw-r--r--tests/macsec-changed.pcapbin0 -> 162 bytes
-rw-r--r--tests/macsec-encrypted.out8
-rw-r--r--tests/macsec-encrypted.pcapbin0 -> 170 bytes
-rw-r--r--tests/macsec-integonly.out1
-rw-r--r--tests/macsec-integonly.pcapbin0 -> 170 bytes
-rw-r--r--tests/macsec-short-longer.out1
-rw-r--r--tests/macsec-short-longer.pcapbin0 -> 118 bytes
-rw-r--r--tests/macsec-short-shorter.out1
-rw-r--r--tests/macsec-short-shorter.pcapbin0 -> 114 bytes
-rw-r--r--tests/macsec-short-valid.out1
-rw-r--r--tests/macsec-short-valid.pcapbin0 -> 118 bytes
-rw-r--r--tests/macsec-snap.out1
-rw-r--r--tests/macsec-snap.pcapbin0 -> 60 bytes
15 files changed, 30 insertions, 0 deletions
diff --git a/tests/TESTLIST b/tests/TESTLIST
index 2cd4abb9..a023709d 100644
--- a/tests/TESTLIST
+++ b/tests/TESTLIST
@@ -699,7 +699,17 @@ rtp-seg-fault-2 rtp-seg-fault-2.pcapng rtp-seg-fault-2.out -v -T rtp
# SSH tests
ssh ssh.pcap ssh.out
+# MACsec
+macsec-encrypted macsec-encrypted.pcap macsec-encrypted.out -t -e
+macsec-changed macsec-changed.pcap macsec-changed.out -t -e
+macsec-integonly macsec-integonly.pcap macsec-integonly.out -t -e
+macsec-snap macsec-snap.pcap macsec-snap.out -t -e
+macsec-short-shorter macsec-short-shorter.pcap macsec-short-shorter.out -t -e
+macsec-short-longer macsec-short-longer.pcap macsec-short-longer.out -t -e
+macsec-short-valid macsec-short-valid.pcap macsec-short-valid.out -t -e
+
# NFS tests
+# fuzzed pcap
nfs-write-verf-cookie nfs-write-verf-cookie.pcapng nfs-write-verf-cookie.out -vv
# NFS fuzzed
diff --git a/tests/macsec-changed.out b/tests/macsec-changed.out
new file mode 100644
index 00000000..3321e302
--- /dev/null
+++ b/tests/macsec-changed.out
@@ -0,0 +1,7 @@
+2e:b7:3f:39:95:c3 > 3e:6f:f3:74:23:7c, ethertype 802.1AE MACsec (0x88e5), length 122: an 0, pn 6, flags CI, sci 2eb73f3995c3006f, ethertype IPv4,
+ 0x0000: 0800 4500 0054 ab6b 4000 4001 27e9 c0a8 ..E..T.k@.@.'...
+ 0x0010: 7301 c0a8 7302 0800 c5fd 0784 0001 a636 s...s..........6
+ 0x0020: 1a57 0000 0000 a51c 0600 0000 0000 1011 .W..............
+ 0x0030: 1213 1415 1617 1819 1a1b 1c1d 1e1f 2021 ...............!
+ 0x0040: 2223 2425 2627 2829 2a2b 2c2d 2e2f 3031 "#$%&'()*+,-./01
+ 0x0050: 3233 3435 3637 72f1 e918 85fa ca0b 234567r.......
diff --git a/tests/macsec-changed.pcap b/tests/macsec-changed.pcap
new file mode 100644
index 00000000..7d05dcaf
--- /dev/null
+++ b/tests/macsec-changed.pcap
Binary files differ
diff --git a/tests/macsec-encrypted.out b/tests/macsec-encrypted.out
new file mode 100644
index 00000000..68866d00
--- /dev/null
+++ b/tests/macsec-encrypted.out
@@ -0,0 +1,8 @@
+2e:b7:3f:39:95:c3 > 3e:6f:f3:74:23:7c, ethertype 802.1AE MACsec (0x88e5), length 130: an 0, pn 72, flags ECI, sci 2eb73f3995c30001,
+ 0x0000: 50c6 8aab f682 2b69 adc7 f4bc a4d8 af67 P.....+i.......g
+ 0x0010: 5437 64c9 b927 4dcb 49f5 7641 d6ee 5aaa T7d..'M.I.vA..Z.
+ 0x0020: 34b1 1748 4565 fb62 d328 810d b6ce 99b3 4..HEe.b.(......
+ 0x0030: 719f 7333 1dbe cdfe d3dc 75a4 fe35 dd96 q.s3......u..5..
+ 0x0040: 79c2 e460 9e0d 52eb e804 83a3 17ee f359 y..`..R........Y
+ 0x0050: a692 37ec d92d 194d bb66 fdf6 7812 2496 ..7..-.M.f..x.$.
+ 0x0060: 2d32 9492 13fd -2....
diff --git a/tests/macsec-encrypted.pcap b/tests/macsec-encrypted.pcap
new file mode 100644
index 00000000..1fefda9c
--- /dev/null
+++ b/tests/macsec-encrypted.pcap
Binary files differ
diff --git a/tests/macsec-integonly.out b/tests/macsec-integonly.out
new file mode 100644
index 00000000..fcc2d1aa
--- /dev/null
+++ b/tests/macsec-integonly.out
@@ -0,0 +1 @@
+2e:b7:3f:39:95:c3 > 3e:6f:f3:74:23:7c, ethertype 802.1AE MACsec (0x88e5), length 130: an 0, pn 68, flags I, sci 2eb73f3995c30001, ethertype IPv4, 192.168.113.1 > 192.168.113.2: ICMP echo request, id 948, seq 1, length 64
diff --git a/tests/macsec-integonly.pcap b/tests/macsec-integonly.pcap
new file mode 100644
index 00000000..5a9f8af8
--- /dev/null
+++ b/tests/macsec-integonly.pcap
Binary files differ
diff --git a/tests/macsec-short-longer.out b/tests/macsec-short-longer.out
new file mode 100644
index 00000000..67228f19
--- /dev/null
+++ b/tests/macsec-short-longer.out
@@ -0,0 +1 @@
+ca:f9:df:4f:50:9a > b6:b9:5d:80:8d:79, ethertype 802.1AE MACsec (0x88e5), length 84: [|MACsec]
diff --git a/tests/macsec-short-longer.pcap b/tests/macsec-short-longer.pcap
new file mode 100644
index 00000000..1130428d
--- /dev/null
+++ b/tests/macsec-short-longer.pcap
Binary files differ
diff --git a/tests/macsec-short-shorter.out b/tests/macsec-short-shorter.out
new file mode 100644
index 00000000..e16b04cf
--- /dev/null
+++ b/tests/macsec-short-shorter.out
@@ -0,0 +1 @@
+ca:f9:df:4f:50:9a > b6:b9:5d:80:8d:79, ethertype 802.1AE MACsec (0x88e5), length 74: [|MACsec]
diff --git a/tests/macsec-short-shorter.pcap b/tests/macsec-short-shorter.pcap
new file mode 100644
index 00000000..41de3598
--- /dev/null
+++ b/tests/macsec-short-shorter.pcap
Binary files differ
diff --git a/tests/macsec-short-valid.out b/tests/macsec-short-valid.out
new file mode 100644
index 00000000..b4d8d2e5
--- /dev/null
+++ b/tests/macsec-short-valid.out
@@ -0,0 +1 @@
+ca:f9:df:4f:50:9a > b6:b9:5d:80:8d:79, ethertype 802.1AE MACsec (0x88e5), length 78: an 0, pn 66, flags I, sl 34, sci caf9df4f509a0064, ethertype IPv4, 192.168.114.1.37459 > 192.168.114.2.6666: UDP, length 4
diff --git a/tests/macsec-short-valid.pcap b/tests/macsec-short-valid.pcap
new file mode 100644
index 00000000..e2950569
--- /dev/null
+++ b/tests/macsec-short-valid.pcap
Binary files differ
diff --git a/tests/macsec-snap.out b/tests/macsec-snap.out
new file mode 100644
index 00000000..0ceb5fd7
--- /dev/null
+++ b/tests/macsec-snap.out
@@ -0,0 +1 @@
+ca:f9:df:4f:50:9a > b6:b9:5d:80:8d:79, ethertype 802.1AE MACsec (0x88e5), length 130: [|MACsec]
diff --git a/tests/macsec-snap.pcap b/tests/macsec-snap.pcap
new file mode 100644
index 00000000..a0c0a3e6
--- /dev/null
+++ b/tests/macsec-snap.pcap
Binary files differ