Subject: rfc 2385 support
To: None <tech-net@netbsd.org>
From: Pramod Srinivasan <pramodsri@yahoo.com>
List: tech-net
Date: 01/26/2004 12:47:45
Hi Guys,

I am trying the add rfc 2385 support to our netbsd
kernel, I am looking at the openbsd implementation for
this. After some minor mods I was able to get it
compiled. I am using 2 intel pcs to test the changes,
one running a server and the other a client. When I
start the client (which calls setsockopt on the tcp
socket to enable MD5 authentication before it issues a
connect) the kernel crashes, but the problem is that I
am unable to figure out where its crashing, I had the
gdb attached to the kernel and the backrace when the
kernel crashes is not available, the only thing I know
is that the pc value is 0x10000, I can see some trap
0x6 messages being printed on the console. I checked
the mbuf chain before tcp_output calls ip_output and
the chain looks alright to me (compared it with the
mbuf chain with none of the changes). The tcp and the
ip header in the mbuf data is ok. A normal tcp
connection without the md5 option set works fine. I am
not sure how the debug this, any help is greatly
appreciated.

Thanks,
pramod 

-----------------------
gdb) c
Continuing.
 
Program received signal SIGSEGV, Segmentation fault.
0x10000 in ?? ()
(gdb) bt
#0  0x10000 in ?? ()
Cannot access memory at address 0x0
(gdb) p $pc
$1 = (void *) 0x10000
(gdb) info registers
eax            0x0      0
ecx            0xc0a2b654       -1063078316
edx            0x4000   16384
ebx            0x3fffffff       1073741823
esp            0xcb492e78       0xcb492e78
ebp            0x0      0x0
esi            0xffff   65535
edi            0xc0000000       -1073741824
eip            0x10000  0x10000
eflags         0x10246  66118
cs             0x8      8
ss             0x10     16
ds             0x10     16
es             0x10     16
fs             0x10     16
gs             0x10     16
fctrl          0x0      0
fstat          0x0      0
ftag           0x0      0
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
---Type <return> to continue, or q <return> to quit---
fop            0x0      0
xmm0           0x00000000000000000000000000000000
xmm1           0x00000000000000000000000000000000
xmm2           0x00000000000000000000000000000000
xmm3           0x00000000000000000000000000000000
xmm4           0x00000000000000000000000000000000
xmm5           0x00000000000000000000000000000000
xmm6           0x00000000000000000000000000000000
xmm7           0x00000000000000000000000000000000
mxcsr          0x0      0



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/