:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ip link add macsec :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link add link dummy0 type macsec' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link add link dummy0 macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec1 type macsec' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link del macsec1' (Expected 0, got 0) :: [ 19:20:10 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec9999 type macsec' (Expected 0, got 0) :: [ 19:20:11 ] :: [ PASS ] :: Command 'ip link del macsec9999' (Expected 0, got 0) :: [ 19:20:11 ] :: [ PASS ] :: Command 'ip link add link dummy0 name ttt type macsec' (Expected 0, got 0) :: [ 19:20:11 ] :: [ PASS ] :: Command 'ip link set ttt up' (Expected 0, got 0) :: [ 19:20:11 ] :: [ LOG ] :: Output of 'ip link show ttt': :: [ 19:20:11 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 19:20:11 ] :: [ LOG ] :: 77: ttt@dummy0: mtu 1468 qdisc noqueue state UP mode DEFAULT group default qlen 1000 :: [ 19:20:11 ] :: [ LOG ] :: link/ether 56:c1:72:dc:a3:56 brd ff:ff:ff:ff:ff:ff :: [ 19:20:11 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 19:20:11 ] :: [ PASS ] :: Command 'ip link show ttt' (Expected 0, got 0) :: [ 19:20:11 ] :: [ LOG ] :: Output of 'ip -d link show ttt': :: [ 19:20:11 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 19:20:12 ] :: [ LOG ] :: 77: ttt@dummy0: mtu 1468 qdisc noqueue state UP mode DEFAULT group default qlen 1000 :: [ 19:20:12 ] :: [ LOG ] :: link/ether 56:c1:72:dc:a3:56 brd ff:ff:ff:ff:ff:ff promiscuity 0 allmulti 0 minmtu 0 maxmtu 65535 :: [ 19:20:12 ] :: [ LOG ] :: macsec sci 56c172dca3560001 protect on cipher GCM-AES-128 icvlen 16 encodingsa 0 validate strict encrypt off send_sci on end_station off scb off replay off addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 :: [ 19:20:12 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip -d link show ttt' (Expected 0, got 0) :: [ 19:20:12 ] :: [ LOG ] :: Output of 'ip macsec show ttt': :: [ 19:20:12 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 19:20:12 ] :: [ LOG ] :: 77: ttt: protect on validate strict sc off sa off encrypt off send_sci on end_station off scb off replay off :: [ 19:20:12 ] :: [ LOG ] :: cipher suite: GCM-AES-128, using ICV length 16 :: [ 19:20:12 ] :: [ LOG ] :: TXSC: 56c172dca3560001 on SA 0 :: [ 19:20:12 ] :: [ LOG ] :: offload: off :: [ 19:20:12 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip macsec show ttt' (Expected 0, got 0) :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip link del ttt' (Expected 0, got 0) :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port -1' (Expected 255, got 255) :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port 0' (Expected 255, got 255) :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port 65536' (Expected 255, got 255) :: [ 19:20:12 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port 12345' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec sci 1' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec sci 0100560212005452' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec cipher GCM-AES-128 icvlen 0' (Expected 255, got 255) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec cipher GCM-AES-128 icvlen 16' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: verify icvlen (Assert: '16' should equal '16') :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encrypt aa' (Expected 1, got 1) :: [ 19:20:13 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:13 ] :: [ PASS ] :: default encrypt is off (Assert: 'off' should equal 'off') :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encrypt on' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: veirfy encrypt is on (Assert: 'on' should equal 'on') :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec send_sci aa' (Expected 1, got 1) :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: default send_sci is on (Assert: 'on' should equal 'on') :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec send_sci off' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: veirfy send_sci is off (Assert: 'off' should equal 'off') :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:14 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec end_station aa' (Expected 1, got 1) :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: default end_station is off (Assert: 'off' should equal 'off') :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec end_station on' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: veirfy end_station is on (Assert: 'on' should equal 'on') :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec scb aa' (Expected 1, got 1) :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: default scb is off (Assert: 'off' should equal 'off') :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec scb on' (Expected 0, got 0) :: [ 19:20:15 ] :: [ PASS ] :: veirfy scb is on (Assert: 'on' should equal 'on') :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec protect aa' (Expected 1, got 1) :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:16 ] :: [ PASS ] :: default protect is on (Assert: 'on' should equal 'on') :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec protect off' (Expected 0, got 0) :: [ 19:20:16 ] :: [ PASS ] :: veirfy protect is off (Assert: 'off' should equal 'off') :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec replay aa' (Expected 1, got 1) :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:16 ] :: [ PASS ] :: default replay is off (Assert: 'off' should equal 'off') :: [ 19:20:16 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:17 ] :: [ PASS ] :: should specify window size (Expected 1, got 1) :: [ 19:20:17 ] :: [ PASS ] :: should turn replay on (Expected 1, got 1) :: [ 19:20:17 ] :: [ PASS ] :: out of window size (Expected 255, got 255) :: [ 19:20:17 ] :: [ PASS ] :: out of window size (Expected 255, got 255) :: [ 19:20:17 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec replay on window 10240' (Expected 0, got 0) :: [ 19:20:17 ] :: [ PASS ] :: veirfy replay is on (Assert: 'on' should equal 'on') :: [ 19:20:17 ] :: [ PASS ] :: veirfy window is 10240 (Assert: '10240' should equal '10240') :: [ 19:20:17 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:17 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec validate aa' (Expected 1, got 1) :: [ 19:20:17 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:17 ] :: [ PASS ] :: default validate is strict (Assert: 'strict' should equal 'strict') :: [ 19:20:17 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec validate check' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: veirfy validate is check (Assert: 'check' should equal 'check') :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec validate disabled' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: veirfy validate is disabled (Assert: 'disabled' should equal 'disabled') :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa aa' (Expected 255, got 255) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa -1' (Expected 255, got 255) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa 4' (Expected 255, got 255) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: default encodingsa is 0 (Assert: '0' should equal '0') :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 19:20:18 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa 2' (Expected 0, got 0) :: [ 19:20:19 ] :: [ PASS ] :: veirfy encodingsa is 2 (Assert: '2' should equal '2') :: [ 19:20:19 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 22s :: Assertions: 95 good, 0 bad :: RESULT: PASS (ip link add macsec)