Test Information

TitleDetect modification of DstOpt header option type before AH
CommandLine./HTR_A_In_DM_DSTH_opttype.seq -pkt ./HTR_A_DM_DSTH_opttype.def -log 17.html -ti Detect modification of DstOpt header option type before AH
TestVersion
ToolVersionundefined
Start2002/03/27 18:59:06
Tn/usr/local/v6eval//etc//tn.def
Nu/usr/local/v6eval//etc//nut.def
Pkt./HTR_A_DM_DSTH_opttype.def
Systemusagi-i386
TargetNameRed Hat Linux release 7.2 (Enigma) + usagi cvs 2002/03/26 20:00
HostNameusagi.tahi.org
Typehost

Test Sequence Execution Log

18:59:06Start

*** Target initialization phase ***
Target: Clear all SAD and SPD entries
18:59:07 vRemote(ipsecClearAll.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecClearAll.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 ''
Connected.

[root@usagi root]# 
[root@usagi root]# /usr/local/v6/bin/pfkey -F any
[root@usagi root]# echo $?
16
~.
Disconnected.

Target: Set SAD entries: src="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" dst="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" spi=0x1000 mode=transport protocol=ah aalgo=hmac-md5 aalgokey=TAHITEST89ABCDEF
18:59:10 vRemote(ipsecSetSAD.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecSetSAD.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 src="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" dst="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" spi=0x1000 mode=transport protocol=ah aalgo=hmac-md5 aalgokey=TAHITEST89ABCDEF ''
Connected.

[root@usagi root]# 
[root@usagi root]#  /usr/local/v6/bin/pfkey -A sa -T ah -S 0x1000 -s 3ffe:501:ff ff:ff05:200:ff:fe00:c1c1/128 -d 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128 --auth h mac-md5 --authkey 0x54414849544553543839414243444546
[root@usagi root]# sendMessagesSync: never got  /usr/local/v6/bin/pfkey -A sa -T ah -S 0x1000 -s 3ffe:501:ffff:ff05:200:ff:fe00:c1c1/128 -d 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128 --auth hmac-md5 --authkey 0x54414849544553543839414243444546
~.
Disconnected.

Target: Set SPD entries: src="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" dst="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" upperspec=any direction=in protocol=ah mode=transport
18:59:50 vRemote(ipsecSetSPD.rmt) ``/usr/local/v6eval//bin/usagi-i386//ipsecSetSPD.rmt -t usagi-i386 -u root -p v6eval -d cuaa0 -o 1 src="3ffe:501:ffff:ff05:200:ff:fe00:c1c1" dst="3ffe:501:ffff:ff03:200:ff:fe00:b0b0" upperspec=any direction=in protocol=ah mode=transport ''
Connected.
level is specified. I ignore it 

[root@usagi root]# 
[root@usagi root]# /usr/local/v6/bin/pfkey -A sp -S any -T ah -s 3ffe:501:ffff:f f05:200:ff:fe00:c1c1/128 -d 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128
[root@usagi root]# sendMessagesSync: never got /usr/local/v6/bin/pfkey -A sp -S any -T ah -s 3ffe:501:ffff:ff05:200:ff:fe00:c1c1/128 -d 3ffe:501:ffff:ff03:200:ff:fe00:b0b0/128

[root@usagi root]# /usr/local/v6/bin/pfkey -L
SADB:
-----------------------------------------------
sa:ce472000
state: 1
sport:0
src:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128
dport:0
dst:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128
pxy:
proto:0 ipsec_proto:2
spi:0x1000 state:1 refcnt:1
auth:2
esp:0
lifetime c:0         0        (byte), 0         2005     (add), 0         0        (use)
lifetime s:0         0        (byte), 0         0        (add), 0         0        (use)
lifetime h:0         0        (byte), 0         0        (add), 0         0        (use)
-----------------------------------------------

SPD:
---------------------------------------------
src:3ffe:0501:ffff:ff05:0200:00ff:fe00:c1c1/128
sport:0
dst:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128
dport:0
proto:0
policy:0
sa(ah):00000000
dst:3ffe:0501:ffff:ff03:0200:00ff:fe00:b0b0/128
ipsec_proto:2 spi:0xffffffff
---------------------------------------------
[root@usagi root]# echo $?
1
~.
Disconnected.

*** Target testing phase ***
19:00:29Start Capturing Packets (Link0)

Subtest No.1: option bit 000: option type is immutable
19:00:29 vSend(Link0,echo_request_from_host1_dstopt_ah)
send echo_request_from_host1_dstopt_ah
19:00:29 vRecv(Link0,ns_to_router echo_reply_to_host1) timeout:6 cntLimit:0 seektime:0
recv echo_reply_to_host1
19:00:30 vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0
recv ns_to_router
19:00:34 vSend(Link0,na_from_router)
send na_from_router

NC about Router was PROBE state, but now it's REACHABLE.
19:00:35 vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0
vRecv() return status=1
19:00:41 vRecv(Link0,ns_to_router) timeout:6 cntLimit:0 seektime:0
vRecv() return status=1

TN received echo reply from NUT to HOST1.
19:00:47 vSend(Link0,echo_request_from_host1_ah_dm_dsth_000opttype)
send echo_request_from_host1_ah_dm_dsth_000opttype
19:00:47 vRecv(Link0,ns_to_router echo_reply_to_host1) timeout:6 cntLimit:0 seektime:0
vRecv() return status=1

TN received no echo reply from NUT to HOST1.
TN ignored the modified echo request packet.
Subtest No.1 PASS

Subtest No.2: option bit 001: option type is immutable
19:00:53 vSend(Link0,echo_request_from_host1_ah_dm_dsth_001opttype)
send echo_request_from_host1_ah_dm_dsth_001opttype
19:00:53 vRecv(Link0,ns_to_router echo_reply_to_host1) timeout:6 cntLimit:0 seektime:0
vRecv() return status=1

TN received no echo reply from NUT to HOST1.
TN ignored the modified echo request packet.
Subtest No.2 PASS

Subtest Results
|1| option bit 000: option type is immutable | PASS |
|2| option bit 001: option type is immutable | PASS |
OK
19:00:59End

Packet Reverse Log