# [ros-kernel] TO arty re oskittcp - it's alive!

Tim Schmidt aumlfs at yahoo.com
Fri Sep 24 00:19:24 CEST 2004

Sorry, relatively new to the list here, and not as
familiar with ReactOS internals as I should be.  Does
this mean we have working TCP/IP? or just a working
foundation for it?

--tim

--- Royce Mitchell III <royce3 at ev1.net> wrote:

> It's alive! With the fix you just gave me, a whole
> bunch of data gets
> dumped to the console... no more crashing, no more
> access violations, no
> more buffers with invalid 0xcd 0xcd data, no more
> 0xcccccccc pointers.
>
> I got rid of a redundant memcpy() in
> OskitTCPReceiveDatagram(), because
> your m_devget() function does the copy already.
>
> Now, of course, we may have some memory leaks to
> fix, or something....
>
> Here's the output from tcptest:
>
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:117)
> malloc(
> 4096 ) =>
>  3427f8
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\kern_subr.c:247)
> malloc( 4
> ) => 34
> 08d8
> rn_init: radix functions require max_keylen be set
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\sleep.c:63)
> malloc( 4096 )
> => 3458
> d0
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\kern_subr.c:247)
> malloc(
> 508 ) =>
> 340920
> domaininit starting
> (1) Domain internet initializing
> Registering protocols for internet
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\kern_subr.c:247)
> malloc(
> 508 ) =>
> 340b58
> Domaininit done
> sendto: 60
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:684)
> malloc(
> 128 ) =>
> 340d90
> 0011ff6a:  45 00 00 54 00 00 40 00 40 01 25 e1 0a 00
> 00 65
> 0011ff7a:  0a 00 00 64 08 00 cd 65 9d 01 00 00 41 51
> b9 d8
> 0011ff8a:  00 0e a7 5d 08 09 0a 0b 0c 0d 0e 0f 10 11
> 12 13
> 0011ff9a:  14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21
> 22 23
> 0011ffaa:  24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31
> 32 33
> 0011ffba:  34 35 36 37
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 00340dbc:
> 00 00 00
>  00 00 00 00 00 00 01 00 40 0a 00 00 65
> 00340dcc:  0a 00 00 64 08 00 cd 65 9d 01 00 00 41 51
> b9 d8
> 00340ddc:  00 0e a7 5d 08 09 0a 0b 0c 0d 0e 0f 10 11
> 12 13
> 00340dec:  14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21
> 22 23
> 00340dfc:  24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31
> 32 33
> 00340e0c:  34 35 36 37
> TCP: Bad Checksum
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:263)
> free(
> 340d90 )
> socreate(2,11fab4,1,0)
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_socket.c:93)
> malloc(
> 136 ) =>
>  346d38
>
(C:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_pcb.c:91)
> malloc( 96 )
> => 346ee
> 0
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\tcp_subr.c:237)
> malloc(
> 196 ) => 3
> 46f88
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:215)
> malloc(
> 128 ) =>
> 347090
>
(C:\cvs\reactos\drivers\lib\oskittcp\oskittcp\tcp_output.c:579)
> malloc(
> 128 ) =>
>  347158
> ti->ti_ack = 0
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 00347184:
> 00 00 00
>  00 00 00 00 00 00 06 00 28 0a 0a 02 73
> 00347194:  0a 00 00 65 04 00 00 50 00 00 04 00 00 00
> 00 00
> 003471a4:  a0 02 40 00 00 00 00 00 02 04 02 00 01 03
> 03 00
> 003471b4:  01 01 08 0a 00 00 00 00 00 00 00 00
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 00347184:
> 45 00 00
>  3c 00 00 00 00 40 06 00 00 0a 0a 02 73
> 00347194:  0a 00 00 65 04 00 00 50 00 00 04 00 00 00
> 00 00
> 003471a4:  a0 02 40 00 ef 8a 00 00 02 04 02 00 01 03
> 03 00
> 003471b4:  01 01 08 0a 00 00 00 00 00 00 00 00
> OskitTCPConnect: error 36
> ** SENDING PACKET 74 bytes **
> sendto: 74
> sendto: 60
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:684)
> malloc(
> 128 ) =>
> 346980
> 0011ff6a:  45 00 00 30 00 00 40 00 40 06 23 e7 0a 00
> 00 65
> 0011ff7a:  0a 0a 02 73 00 50 04 00 50 43 65 f4 00 00
> 04 01
> 0011ff8a:  70 12 16 d0 97 d5 00 00 02 04 05 b4 01 03
> 03 00
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 003469ac:
> 00 00 00
>  00 00 00 00 00 00 06 00 1c 0a 00 00 65
> 003469bc:  0a 0a 02 73 00 50 04 00 50 43 65 f4 00 00
> 04 01
> 003469cc:  70 12 16 d0 97 d5 00 00 02 04 05 b4 01 03
> 03 00
> Called: NewState 1
> Socket closing.
> Called: NewState 1
> Socket closing.
> Called: NewState 1
> Socket closing.
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:263)
> free(
> 346980 )
>
(C:\cvs\reactos\drivers\lib\oskittcp\oskittcp\tcp_output.c:579)
> malloc(
> 128 ) =>
>  346980
> ti->ti_ack = -177913008
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 003469ac:
> 00 00 00
>  00 00 00 00 00 00 06 00 14 0a 0a 02 73
> 003469bc:  0a 00 00 65 04 00 00 50 00 00 04 01 50 43
> 65 f5
> 003469cc:  50 10 40 00 00 00 00 00
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 003469ac:
> 45 00 00
>  28 00 01 00 00 40 06 00 00 0a 0a 02 73
> 003469bc:  0a 00 00 65 04 00 00 50 00 00 04 01 50 43
> 65 f5
> 003469cc:  50 10 40 00 9a 69 00 00
> ** SENDING PACKET 54 bytes **
> sendto: 54
> calling OskitTcpSend(GET / HTTP/1.0
> User-Agent: Kung-Foo/1.0
>
>
> )
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:684)
> malloc(
> 128 ) =>
> 347430
> 003473aa:  47 45 54 20 2f 20 48 54 54 50 2f 31 2e 30
> 0d 0a
> 003473ba:  55 73 65 72 2d 41 67 65 6e 74 3a 20 4b 75
> 6e 67
> 003473ca:  2d 46 6f 6f 2f 31 2e 30 0d 0a 0d 0a 0a
>
(C:\cvs\reactos\drivers\lib\oskittcp\oskittcp\tcp_output.c:533)
> malloc(
> 128 ) =>
>  3474f8
>
(c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\uipc_mbuf.c:339)
> malloc(
> 128 ) =>
> 3475c0
> ti->ti_ack = -177913008
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 00347524:
> 00 00 00
>  00 00 00 00 00 00 06 00 41 0a 0a 02 73
> 00347534:  0a 00 00 65 04 00 00 50 00 00 04 01 50 43
> 65 f5
> 00347544:  50 18 40 00 00 00 00 00
>
c:\cvs\reactos\drivers\lib\oskittcp\oskittcp\in_cksum.c(77):
> 003475dc:
> 47 45 54
>  20 2f 20 48 54 54 50 2f 31 2e 30 0d 0a
> 003475ec:  55 73 65 72 2d 41 67 65 6e 74 3a 20 4b 75
> 6e
=== message truncated ===

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


More information about the Ros-kernel mailing list