Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/test/assoc.c

    rb9be9b0 rf1cd4b0  
    250250}
    251251
    252 /** Sending message with destination set in association and inet_addr_any /
    253  * inet_port_any destination argument
     252/** Sending message with destination set in association and NULL destination
     253 * argument
    254254 */
    255 PCUT_TEST(send_assoc_any_dest)
    256 {
    257         udp_assoc_t *assoc;
    258         inet_ep2_t epp;
    259         inet_ep_t ep;
     255PCUT_TEST(send_assoc_null_dest)
     256{
     257        udp_assoc_t *assoc;
     258        inet_ep2_t epp;
    260259        errno_t rc;
    261260        udp_msg_t *msg;
     
    273272        epp.local.port = 1;
    274273
    275         inet_ep_init(&ep);
    276 
    277274        assoc = udp_assoc_new(&epp, &test_assoc_cb, NULL);
    278275        PCUT_ASSERT_NOT_NULL(assoc);
     
    284281        sent_msg = NULL;
    285282
    286         rc = udp_assoc_send(assoc, &ep, msg);
     283        rc = udp_assoc_send(assoc, NULL, msg);
    287284        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    288285        PCUT_ASSERT_EQUALS(msg, sent_msg);
     
    314311
    315312        inet_ep2_init(&epp);
     313        inet_addr(&epp.remote.addr, 127, 0, 0, 1);
     314        epp.remote.port = 42;
    316315        inet_addr(&epp.local.addr, 127, 0, 0, 1);
    317316        epp.local.port = 1;
Note: See TracChangeset for help on using the changeset viewer.