# Test Information

Title | 5.1.2 Select SPD (ICMP Type), ESP=3DES-CBC HMAC-SHA1
CommandLine | ./p2_HTR_E_SelectSPD_ICMP_Type.seq -pkt ./p2_HTR_E_ICMP_Type.def test_type=ADVANCED support=ICMP_TYPE_CODE_SELECTOR_SUPPORT -log 3.html -ti 5.1.2 Select SPD (ICMP Type), ESP=3DES-CBC HMAC-SHA1
TestVersion | V6PC_P2_IPsec_1_1_2
ToolVersion | REL_3_0_12
Start | 2008/05/06 11:17:43
Tn | /usr/local/v6eval//etc//tn.def
Nu | /usr/local/v6eval//etc//nut.def
Pkt | ./p2_HTR_E_ICMP_Type.def
System | rhel51
TargetName | RHEL5.1
HostName | IPv6testee2.nay.redhat.com
Type | host

# Test Sequence Execution Log

11:17:43 | Start
| *** Target initialization phase *** Target: Clear all SAD and SPD entries
11:17:43 | vRemote(ipsecClearAll.rmt) ``/usr/local/v6eval//bin/rhel51//ipsecClearAll.rmt -t rhel51 -u root -p redhat -d cuad0 -o 1 ''
    Connected
    prompt_user: ``login: '', prompt_password: ``Password: '', prompt_command: ``(\$|#) ''
    rLogin: Wait for login prompt (0.2 sec)...
    rLogin: Never got prompt; try again
    rLogin: Wait for login prompt (50 sec)...

    [root@IPv6testee2 ~]# rLogin: Got command prompt
    rLogin: Got command prompt
    _rCommand: Try to get command prompt (0.2 sec.)
    _rCommand: (\$|#)
    _rCommand: command prompt...
    _rCommand: Try to get command prompt (30 sec.)
    _rCommand: (\$|#)

    [root@IPv6testee2 ~]# _rCommand: Do ``/bin/echo 'spdflush; flush;' | setkey -c'' command
    /bin/echo 'spdflush; flush;' | setkey -c
    sendMessagesSync: got echo back of /bin/echo 'spdflush; flush;' | setkey -c
    rCommand: Try to get command prompt (0.2 sec)
    [root@IPv6testee2 ~]# rCommand: CmdOutput=``
    [root@IPv6testee2 ~]''
    echo $?
    sendMessagesSync: got echo back of echo $?
    0
    rCommand: exit status: 0
    prompt_user: ``login: '', prompt_password: ``Password: '', prompt_command: ``(\$|#) ''
    rLogout: skip by not specifing ``-l''
    ~
    [EOT]
11:17:44 | Start Capturing Packets (Link0)
| Target: Set SAD entries: src="3ffe:501:ffff:0001:0000:0000:0000:0001" dst="3ffe:501:ffff:0:207:e9ff:fe0b:2841" spi=0x1000 mode=transport protocol=esp ealgo=3des-cbc ealgokey=ipv6readylogo3descbcin01 eauth=hmac-sha1 eauthkey=ipv6readylogsha1in01 unique=10000
11:17:44 | vRemote(ipsecSetSAD.rmt) ``/usr/local/v6eval//bin/rhel51//ipsecSetSAD.rmt -t rhel51 -u root -p redhat -d cuad0 -o 1 src="3ffe:501:ffff:0001:0000:0000:0000:0001" dst="3ffe:501:ffff:0:207:e9ff:fe0b:2841" spi=0x1000 mode=transport protocol=esp ealgo=3des-cbc ealgokey=ipv6readylogo3descbcin01 eauth=hmac-sha1 eauthkey=ipv6readylogsha1in01 unique=10000 ''
    eval $main::rOpt_src='3ffe:501:ffff:0001:0000:0000:0000:0001'
    eval $main::rOpt_dst='3ffe:501:ffff:0:207:e9ff:fe0b:2841'
    eval $main::rOpt_spi='0x1000'
    eval $main::rOpt_mode='transport'
    eval $main::rOpt_protocol='esp'
    eval $main::rOpt_ealgo='3des-cbc'
    eval $main::rOpt_ealgokey='ipv6readylogo3descbcin01'
    eval $main::rOpt_eauth='hmac-sha1'
    eval $main::rOpt_eauthkey='ipv6readylogsha1in01'
    eval $main::rOpt_unique='10000'
    Connected
    prompt_user: ``login: '', prompt_password: ``Password: '', prompt_command: ``(\$|#) ''
    rLogin: Wait for login prompt (0.2 sec)...
    rLogin: Never got prompt; try again
    rLogin: Wait for login prompt (50 sec)...

    [root@IPv6testee2 ~]# rLogin: Got command prompt
    rLogin: Got command prompt
    _rCommand: Try to get command prompt (0.2 sec.)
    _rCommand: (\$|#)
    _rCommand: command prompt...
    _rCommand: Try to get command prompt (30 sec.)
    _rCommand: (\$|#)

    [root@IPv6testee2 ~]# _rCommand: Do ``/bin/echo 'add 3ffe:501:ffff:0001:0000:0000:0000:0001 3ffe:501:ffff:0:207:e9ff:fe0b:2841 esp 0x1000 -m transport -u 10000 -E 3des-cbc "ipv6readylogo3descbcin01" -A hmac-sha1 "ipv6readylogsha1in01"; dump;' | setkey -c'' command
    /bin/echo 'add 3ffe:501:ffff:0001:0000:0000:0000:0001 3ffe :501:ffff:0:207:e9ff:fe0b:2841 esp 0x1000 -m transport -u 10000 -E 3des-cbc "ipv 6readylogo3descbcin01" -A hmac-sha1 "ipv6readylogsha1in01"; dump;' | setkey -c
    3ffe:501:ffff:1::1 3ffe:501:ffff:0:207:e9ff:fe0b:2841
    	esp mode=transport spi=4096(0x00001000) reqid=10000(0x00002710)
    	E: 3des-cbc  69707636 72656164 796c6f67 6f336465 73636263 696e3031
    	A: hmac-sha1  69707636 72656164 796c6f67 73686131 696e3031
    	seq=0x00000000 replay=0 flags=0x00000000 state=mature
    	created: Jan 15 23:40:38 2002	current: Jan 15 23:40:38 2002
    	diff: 0(s)	hard: 0(s)	soft: 0(s)
    	last:                     	hard: 0(s)	soft: 0(s)
    	current: 0(bytes)	hard: 0(bytes)	soft: 0(bytes)
    	allocated: 0	hard: 0	soft: 0
    	sadb_seq=0 pid=5491 refcnt=0
    [root@IPv6testee2 ~]# sendMessagesSync: never got /bin/echo 'add 3ffe:501:ffff:0001:0000:0000:0000:0001 3ffe:501:ffff:0:207:e9ff:fe0b:2841 esp 0x1000 -m transport -u 10000 -E 3des-cbc "ipv6readylogo3descbcin01" -A hmac-sha1 "ipv6readylogsha1in01"; dump;' | setkey -c
    rCommand: Try to get command prompt (0.2 sec)
    rCommand: CmdOutput=``/bin/echo 'add 3ffe:501:ffff:0001:0000:0000:0000:0001 3ffe :501:ffff:0:207:e9ff:fe0b:2841 esp 0x1000 -m transport -u 10000 -E 3des-cbc "ipv 6readylogo3descbcin01" -A hmac-sha1 "ipv6readylogsha1in01"; dump;' | setkey -c
    3ffe:501:ffff:1::1 3ffe:501:ffff:0:207:e9ff:fe0b:2841
    	esp mode=transport spi=4096(0x00001000) reqid=10000(0x00002710)
    	E: 3des-cbc  69707636 72656164 796c6f67 6f336465 73636263 696e3031
    	A: hmac-sha1  69707636 72656164 796c6f67 73686131 696e3031
    	seq=0x00000000 replay=0 flags=0x00000000 state=mature
    	created: Jan 15 23:40:38 2002	current: Jan 15 23:40:38 2002
    	diff: 0(s)	hard: 0(s)	soft: 0(s)
    	last:                     	hard: 0(s)	soft: 0(s)
    	current: 0(bytes)	hard: 0(bytes)	soft: 0(bytes)
    	allocated: 0	hard: 0	soft: 0
    	sadb_seq=0 pid=5491 refcnt=0
    [root@IPv6testee2 ~]''
    echo $?sendMessagesSync: got echo back of echo $?

    0
    rCommand: exit status: 0
    prompt_user: ``login: '', prompt_password: ``Password: '', prompt_command: ``(\$|#) ''
    rLogout: skip by not specifing ``-l''
    ~
    [EOT]
| Target: Set SPD entries: src="3ffe:501:ffff:0001:0000:0000:0000:0001" dst="3ffe:501:ffff:0:207:e9ff:fe0b:2841" upperspec=icmp6 icmp6_type=128 icmp6_code=0 direction=in protocol=esp-auth mode=transport level=unique unique=10000
11:17:50 | vRemote(ipsecSetSPD.rmt) ``/usr/local/v6eval//bin/rhel51//ipsecSetSPD.rmt -t rhel51 -u root -p redhat -d cuad0 -o 1 src="3ffe:501:ffff:0001:0000:0000:0000:0001" dst="3ffe:501:ffff:0:207:e9ff:fe0b:2841" upperspec=icmp6 icmp6_type=128 icmp6_code=0 direction=in protocol=esp-auth mode=transport level=unique unique=10000 ''
    eval $main::rOpt_src='3ffe:501:ffff:0001:0000:0000:0000:0001'
    eval $main::rOpt_dst='3ffe:501:ffff:0:207:e9ff:fe0b:2841'
    eval $main::rOpt_upperspec='icmp6'
    eval $main::rOpt_icmp6_type='128'
    eval $main::rOpt_icmp6_code='0'
    eval $main::rOpt_direction='in'
    eval $main::rOpt_protocol='esp-auth'
    eval $main::rOpt_mode='transport'
    eval $main::rOpt_level='unique'
    eval $main::rOpt_unique='10000'
    Connected
    upperspec must be one of any|tcp|udp
    ipsecSetSPD.rmt [parameters]
    parameters:
    src=source address
    dst=destination address
    sport=source port (default:any)
    dport=destination port (default:any)
    upperspec={any|tcp|udp} (default:any)
    direction={in|out}
    protocol={ah|esp|ah-esp}
    mode={transport|tunnel}
    policy={ipsec|none|discard} (default:ipsec)
    tsrc=tunnel entry address
    tdst=tunnel exit address
    unique=unique ID for MIPv6 configuration
    ~
    [EOT]
| Cannot Set SPD entries: src="3ffe:501:ffff:0001:0000:0000:0000:0001" dst="3ffe:501:ffff:0:207:e9ff:fe0b:2841" upperspec=icmp6 icmp6_type=128 icmp6_code=0 direction=in protocol=esp-auth mode=transport level=unique unique=10000 NG
11:17:50 | End

# Packet Reverse Log