:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ip link add macsec :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link add link dummy0 type macsec' (Expected 0, got 0) :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link add link dummy0 macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:39 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec1 type macsec' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link del macsec1' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec9999 type macsec' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link del macsec9999' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link add link dummy0 name ttt type macsec' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link set ttt up' (Expected 0, got 0) :: [ 14:47:40 ] :: [ LOG ] :: Output of 'ip link show ttt': :: [ 14:47:40 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 14:47:40 ] :: [ LOG ] :: 83: ttt@dummy0: mtu 1468 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 :: [ 14:47:40 ] :: [ LOG ] :: link/ether 22:fa:5a:d2:78:df brd ff:ff:ff:ff:ff:ff :: [ 14:47:40 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link show ttt' (Expected 0, got 0) :: [ 14:47:40 ] :: [ LOG ] :: Output of 'ip -d link show ttt': :: [ 14:47:40 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 14:47:40 ] :: [ LOG ] :: 83: ttt@dummy0: mtu 1468 qdisc noqueue state UP mode DEFAULT group default qlen 1000 :: [ 14:47:40 ] :: [ LOG ] :: link/ether 22:fa:5a:d2:78:df brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 0 maxmtu 65535 :: [ 14:47:40 ] :: [ LOG ] :: macsec sci 22fa5ad278df0001 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 gro_max_size 65536 :: [ 14:47:40 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip -d link show ttt' (Expected 0, got 0) :: [ 14:47:40 ] :: [ LOG ] :: Output of 'ip macsec show ttt': :: [ 14:47:40 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 14:47:40 ] :: [ LOG ] :: 83: ttt: protect on validate strict sc off sa off encrypt off send_sci on end_station off scb off replay off :: [ 14:47:40 ] :: [ LOG ] :: cipher suite: GCM-AES-128, using ICV length 16 :: [ 14:47:40 ] :: [ LOG ] :: TXSC: 22fa5ad278df0001 on SA 0 :: [ 14:47:40 ] :: [ LOG ] :: offload: off :: [ 14:47:40 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip macsec show ttt' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link del ttt' (Expected 0, got 0) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port -1' (Expected 255, got 255) :: [ 14:47:40 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port 0' (Expected 255, got 255) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port 65536' (Expected 255, got 255) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec port 12345' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec sci 1' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec sci 0100560212005452' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec cipher GCM-AES-128 icvlen 0' (Expected 255, got 255) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec cipher GCM-AES-128 icvlen 16' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: verify icvlen (Assert: '16' should equal '16') :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encrypt aa' (Expected 1, got 1) :: [ 14:47:41 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:41 ] :: [ PASS ] :: default encrypt is off (Assert: 'off' should equal 'off') :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encrypt on' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: veirfy encrypt is on (Assert: 'on' should equal 'on') :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec send_sci aa' (Expected 1, got 1) :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: default send_sci is on (Assert: 'on' should equal 'on') :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec send_sci off' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: veirfy send_sci is off (Assert: 'off' should equal 'off') :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec end_station aa' (Expected 1, got 1) :: [ 14:47:42 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:42 ] :: [ PASS ] :: default end_station is off (Assert: 'off' should equal 'off') :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec end_station on' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: veirfy end_station is on (Assert: 'on' should equal 'on') :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec scb aa' (Expected 1, got 1) :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: default scb is off (Assert: 'off' should equal 'off') :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec scb on' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: veirfy scb is on (Assert: 'on' should equal 'on') :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec protect aa' (Expected 1, got 1) :: [ 14:47:43 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:43 ] :: [ PASS ] :: default protect is on (Assert: 'on' should equal 'on') :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec protect off' (Expected 0, got 0) :: [ 14:47:44 ] :: [ PASS ] :: veirfy protect is off (Assert: 'off' should equal 'off') :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec replay aa' (Expected 1, got 1) :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:44 ] :: [ PASS ] :: default replay is off (Assert: 'off' should equal 'off') :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:44 ] :: [ PASS ] :: should specify window size (Expected 1, got 1) :: [ 14:47:44 ] :: [ PASS ] :: should turn replay on (Expected 1, got 1) :: [ 14:47:44 ] :: [ PASS ] :: out of window size (Expected 255, got 255) :: [ 14:47:44 ] :: [ PASS ] :: out of window size (Expected 255, got 255) :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec replay on window 10240' (Expected 0, got 0) :: [ 14:47:44 ] :: [ PASS ] :: veirfy replay is on (Assert: 'on' should equal 'on') :: [ 14:47:44 ] :: [ PASS ] :: veirfy window is 10240 (Assert: '10240' should equal '10240') :: [ 14:47:44 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec validate aa' (Expected 1, got 1) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: default validate is strict (Assert: 'strict' should equal 'strict') :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec validate check' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: veirfy validate is check (Assert: 'check' should equal 'check') :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec validate disabled' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: veirfy validate is disabled (Assert: 'disabled' should equal 'disabled') :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa aa' (Expected 255, got 255) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa -1' (Expected 255, got 255) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa 4' (Expected 255, got 255) :: [ 14:47:45 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec' (Expected 0, got 0) :: [ 14:47:45 ] :: [ PASS ] :: default encodingsa is 0 (Assert: '0' should equal '0') :: [ 14:47:46 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :: [ 14:47:46 ] :: [ PASS ] :: Command 'ip link add link dummy0 name macsec0 type macsec encodingsa 2' (Expected 0, got 0) :: [ 14:47:46 ] :: [ PASS ] :: veirfy encodingsa is 2 (Assert: '2' should equal '2') :: [ 14:47:46 ] :: [ PASS ] :: Command 'ip link del macsec0' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 21s :: Assertions: 95 good, 0 bad :: RESULT: PASS (ip link add macsec)