[Openswan dev] UML testing of openswan-2.4.2dr1

David McCullough davidm at snapgear.com
Wed Oct 12 22:43:54 CEST 2005


Hi dev,

I have just been setting up the OpenSwan UML testing so I can check that
the OCF changes haven't broken anything.  I am using 2.4.2dr1 and linus'
2.4.31.  Now it is all setup and the east/west manual test works,  but
all of the "make check" tests are failing.  It seems fairly simple.  Kernel
output/boot messages are different.  My tcpdump outputs more info for
ESP packets as well.

So my question is basically should I be running 2.6 or some other
kernel version.  Should I be using CVS (which branch) instead of the
2.4.2dr1 release ?

Below are the two OUTPUT diffs for the east-icmp-01 test.  I am using tcpdump
from debian testing:

	tcpdump version 3.9.3
	libpcap version 0.9.3

Any pointers on how to best fixup my setup appreciated,  otherwise I can
probably mod the sed scripts to fix most of these simple errors,

thanks,
Davidm 

console.diff:
--- spi1-console.txt    2005-01-27 06:19:14.000000000 +1000
+++ OUTPUT/console-fixed.txt    2005-10-12 15:09:56.000000000 +1000
@@ -1,5 +1,6 @@
 Starting UML PATH/start.sh
 spawn PATH single
+Checking PROT_EXEC mmap in /tmp...OK
 Linux version XXXX
 On node 0 totalpages: 8192
 Kernel command line:
@@ -9,6 +10,7 @@
 Mount-cache hash table entries: NUMBERS
 Buffer-cache hash table entries: NUMBERS
 Page-cache hash table entries: NUMEBRS
+Checking syscall emulation patch for ptrace...missing
 POSIX conformance testing by UNIFIX
 Linux NET4.0 for Linux 2.4
 Based upon Swansea University Computer Society NET3.039
@@ -29,14 +31,18 @@
 TCP: Hash tables configured (established 2048 bind 2048)
 IPv4 over IPv4 tunneling driver
 GRE over IPv4 tunneling driver
+ipsec_3des_init(alg_type=15 alg_id=3 name=3des): ret=0
 NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
 Mounted devfs on /dev
+udev requires a kernel >= 2.6.8, not started.
+rm: cannot unlink `/dev/console': Operation not permitted
+mknod: /dev/console: File exists
+rm: cannot unlink `/dev/null': Operation not permitted
+mknod: /dev/null: File exists
+crw-------    1 root     root       5,   1 Oct 12 05:09 /dev/console
 INIT: version 2.78 booting
+mount: proc already mounted
 Activating swap...
-Calculating module dependancies
-done.
-Loading modules: LIST
-
 Checking all file systems...
 Parallelizing fsck version 1.18 (11-Nov-1999)
 Setting kernel variables.


spi1-output.txt:
--- spi1-output.txt     2005-04-21 12:28:41.000000000 +1000
+++ OUTPUT/spi1-output.txt      2005-10-12 15:09:56.000000000 +1000
@@ -1,8 +1,8 @@
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x1), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 1280, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x2), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 1536, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x3), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 1792, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x4), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 2048, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x5), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 2304, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x6), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 2560, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x7), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 2816, length 64 (ipip-proto-4)
-IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x8), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request seq 3072, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x1), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 1280, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x2), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 1536, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x3), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 1792, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x4), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 2048, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x5), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 2304, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x6), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 2560, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x7), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 2816, length 64 (ipip-proto-4)
+IP 192.1.2.23 > 192.1.2.45: ESP(spi=0x12345678,seq=0x8), length 116: IP 192.0.2.1 > 192.0.1.1: ICMP echo request, id 28416, seq 3072, length 64 (ipip-proto-4)


-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com


More information about the Dev mailing list