Changeset 456
- Timestamp:
- 03/01/00 16:40:43 (13 years ago)
- Files:
-
- 1 modified
-
common/trunk/tests/test_net_udp.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
common/trunk/tests/test_net_udp.c
r455 r456 343 343 /**********************************************************************/ 344 344 printf("UDP/IP networking (FreeBSD bug)........ \n"); 345 randomize(buf1, BUFSIZE);345 randomize(buf1, 64); 346 346 s1 = udp_init("224.2.0.1", 5000, 5000, 1); 347 347 if (s1 == NULL) { … … 360 360 return; 361 361 } 362 if (udp_send(s2, buf1, BUFSIZE) < 0) {362 if (udp_send(s2, buf1, 64) < 0) { 363 363 perror("fail (child)"); 364 364 goto abort_bsd; … … 386 386 exit(0); 387 387 } 388 if (rc != BUFSIZE) {389 printf("fail (child): read size incorrect (%d != %d)\n", rc, BUFSIZE);390 exit(0); 391 } 392 if (memcmp(buf1, buf2, BUFSIZE) != 0) {388 if (rc != 64) { 389 printf("fail (child): read size incorrect (%d != %d)\n", rc, 64); 390 exit(0); 391 } 392 if (memcmp(buf1, buf2, 64) != 0) { 393 393 printf("fail (child): buffer corrupt\n"); 394 394 exit(0); … … 421 421 goto abort_bsd; 422 422 } 423 if (rc != BUFSIZE) {424 printf("fail (parent): read size incorrect (%d != %d)\n", rc, BUFSIZE);423 if (rc != 64) { 424 printf("fail (parent): read size incorrect (%d != %d)\n", rc, 64); 425 425 goto abort_bsd; 426 426 } 427 if (memcmp(buf1, buf2, BUFSIZE) != 0) {427 if (memcmp(buf1, buf2, 64) != 0) { 428 428 printf("fail (parent): buffer corrupt\n"); 429 429 goto abort_bsd;
