Subversion Repositories HelenOS

Rev

Rev 3912 | Rev 4499 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3912 Rev 3991
Line 63... Line 63...
63
    ERROR_PROPAGATE( ip_echo( tcp_globals.ip_phone, 12, 34, 0, 0, 0, & arg1, & arg2, NULL, NULL, NULL ));
63
    ERROR_PROPAGATE( ip_echo( tcp_globals.ip_phone, 12, 34, 0, 0, 0, & arg1, & arg2, NULL, NULL, NULL ));
64
    if(( arg1 != 12 ) || ( arg2 != 34 )) return EINVAL;
64
    if(( arg1 != 12 ) || ( arg2 != 34 )) return EINVAL;
65
    printf( "OK\n" );
65
    printf( "OK\n" );
66
 
66
 
67
    printf( "\nTCP - testing to send packet to IP:\t" );
67
    printf( "\nTCP - testing to send packet to IP:\t" );
68
    packet = packet_get_5( tcp_globals.networking_phone, SERVICE_TCP, 6, 20, 30, 20 );
68
    packet = packet_get_4( tcp_globals.networking_phone, 6, 20, 30, 20 );
69
    if( ! packet ) return ENOMEM;
69
    if( ! packet ) return ENOMEM;
70
    packet_copy_data( packet, "Hi, this is TCP", 16 );
70
    packet_copy_data( packet, "Hi, this is TCP", 16 );
71
    ip_send( tcp_globals.ip_phone, -1, packet );
71
    ip_send( tcp_globals.ip_phone, -1, packet );
72
    printf( "\tOK\n" );
72
    printf( "\tOK\n" );
73
    return EOK;
73
    return EOK;