Changes in uspace/srv/net/udp/test/assoc.c [b9be9b0:f1cd4b0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/test/assoc.c
rb9be9b0 rf1cd4b0 250 250 } 251 251 252 /** Sending message with destination set in association and inet_addr_any /253 * inet_port_any destinationargument252 /** Sending message with destination set in association and NULL destination 253 * argument 254 254 */ 255 PCUT_TEST(send_assoc_any_dest) 256 { 257 udp_assoc_t *assoc; 258 inet_ep2_t epp; 259 inet_ep_t ep; 255 PCUT_TEST(send_assoc_null_dest) 256 { 257 udp_assoc_t *assoc; 258 inet_ep2_t epp; 260 259 errno_t rc; 261 260 udp_msg_t *msg; … … 273 272 epp.local.port = 1; 274 273 275 inet_ep_init(&ep);276 277 274 assoc = udp_assoc_new(&epp, &test_assoc_cb, NULL); 278 275 PCUT_ASSERT_NOT_NULL(assoc); … … 284 281 sent_msg = NULL; 285 282 286 rc = udp_assoc_send(assoc, &ep, msg);283 rc = udp_assoc_send(assoc, NULL, msg); 287 284 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 288 285 PCUT_ASSERT_EQUALS(msg, sent_msg); … … 314 311 315 312 inet_ep2_init(&epp); 313 inet_addr(&epp.remote.addr, 127, 0, 0, 1); 314 epp.remote.port = 42; 316 315 inet_addr(&epp.local.addr, 127, 0, 0, 1); 317 316 epp.local.port = 1;
Note:
See TracChangeset
for help on using the changeset viewer.