Lines Matching refs:saddr

287 	struct sockaddr_in *saddr;  in ZTEST()  local
323 saddr = (struct sockaddr_in *)res->ai_addr; in ZTEST()
324 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
325 zassert_equal(saddr->sin_port, htons(65534), ""); in ZTEST()
326 zassert_equal(saddr->sin_addr.s4_addr[0], 1, ""); in ZTEST()
327 zassert_equal(saddr->sin_addr.s4_addr[1], 2, ""); in ZTEST()
328 zassert_equal(saddr->sin_addr.s4_addr[2], 3, ""); in ZTEST()
329 zassert_equal(saddr->sin_addr.s4_addr[3], 255, ""); in ZTEST()
336 struct sockaddr_in6 *saddr; in ZTEST() local
354 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
355 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
356 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
357 zassert_equal(saddr->sin6_addr.s6_addr[0], 0xFE, ""); in ZTEST()
358 zassert_equal(saddr->sin6_addr.s6_addr[1], 0xDC, ""); in ZTEST()
359 zassert_equal(saddr->sin6_addr.s6_addr[2], 0xBA, ""); in ZTEST()
360 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x98, ""); in ZTEST()
361 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x76, ""); in ZTEST()
362 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x54, ""); in ZTEST()
363 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x32, ""); in ZTEST()
364 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x10, ""); in ZTEST()
365 zassert_equal(saddr->sin6_addr.s6_addr[8], 0xFE, ""); in ZTEST()
366 zassert_equal(saddr->sin6_addr.s6_addr[9], 0xDC, ""); in ZTEST()
367 zassert_equal(saddr->sin6_addr.s6_addr[10], 0xBA, ""); in ZTEST()
368 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x98, ""); in ZTEST()
369 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x76, ""); in ZTEST()
370 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x54, ""); in ZTEST()
371 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x32, ""); in ZTEST()
372 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x10, ""); in ZTEST()
385 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
386 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
387 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
388 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x10, ""); in ZTEST()
389 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x80, ""); in ZTEST()
390 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
391 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
392 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
393 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
394 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
395 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
396 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
397 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x08, ""); in ZTEST()
398 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x08, ""); in ZTEST()
399 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x00, ""); in ZTEST()
400 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x20, ""); in ZTEST()
401 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x0C, ""); in ZTEST()
402 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x41, ""); in ZTEST()
403 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x7A, ""); in ZTEST()
417 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
418 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
419 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
420 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x3f, ""); in ZTEST()
421 zassert_equal(saddr->sin6_addr.s6_addr[1], 0xfe, ""); in ZTEST()
422 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x2a, ""); in ZTEST()
423 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x00, ""); in ZTEST()
424 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x01, ""); in ZTEST()
425 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x00, ""); in ZTEST()
426 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x70, ""); in ZTEST()
427 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x31, ""); in ZTEST()
428 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
429 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
430 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x0, ""); in ZTEST()
431 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x0, ""); in ZTEST()
432 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x0, ""); in ZTEST()
433 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x0, ""); in ZTEST()
434 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x0, ""); in ZTEST()
435 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x1, ""); in ZTEST()
443 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
444 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
445 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
446 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x10, ""); in ZTEST()
447 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x80, ""); in ZTEST()
448 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
449 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
450 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
451 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
452 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
453 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
454 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
455 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x8, ""); in ZTEST()
456 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x08, ""); in ZTEST()
457 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x00, ""); in ZTEST()
458 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x20, ""); in ZTEST()
459 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x0C, ""); in ZTEST()
460 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x41, ""); in ZTEST()
461 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x7A, ""); in ZTEST()
468 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
469 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
470 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
471 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x0, ""); in ZTEST()
472 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x0, ""); in ZTEST()
473 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
474 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
475 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
476 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
477 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
478 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
479 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
480 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
481 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x0, ""); in ZTEST()
482 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x0, ""); in ZTEST()
483 zassert_equal(saddr->sin6_addr.s6_addr[12], 192, ""); in ZTEST()
484 zassert_equal(saddr->sin6_addr.s6_addr[13], 9, ""); in ZTEST()
485 zassert_equal(saddr->sin6_addr.s6_addr[14], 5, ""); in ZTEST()
486 zassert_equal(saddr->sin6_addr.s6_addr[15], 5, ""); in ZTEST()
494 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
495 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
496 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
497 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x0, ""); in ZTEST()
498 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x0, ""); in ZTEST()
499 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
500 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
501 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
502 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
503 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
504 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
505 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
506 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
507 zassert_equal(saddr->sin6_addr.s6_addr[10], 0xFF, ""); in ZTEST()
508 zassert_equal(saddr->sin6_addr.s6_addr[11], 0xFF, ""); in ZTEST()
509 zassert_equal(saddr->sin6_addr.s6_addr[12], 129, ""); in ZTEST()
510 zassert_equal(saddr->sin6_addr.s6_addr[13], 144, ""); in ZTEST()
511 zassert_equal(saddr->sin6_addr.s6_addr[14], 52, ""); in ZTEST()
512 zassert_equal(saddr->sin6_addr.s6_addr[15], 38, ""); in ZTEST()
520 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
521 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
522 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
523 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x20, ""); in ZTEST()
524 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x10, ""); in ZTEST()
525 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x83, ""); in ZTEST()
526 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x6B, ""); in ZTEST()
527 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x41, ""); in ZTEST()
528 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x79, ""); in ZTEST()
529 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
530 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
531 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
532 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
533 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x0, ""); in ZTEST()
534 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x0, ""); in ZTEST()
535 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x83, ""); in ZTEST()
536 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x6B, ""); in ZTEST()
537 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x41, ""); in ZTEST()
538 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x79, ""); in ZTEST()
601 struct sockaddr_in *saddr; in ZTEST() local
619 saddr = net_sin(res->ai_addr); in ZTEST()
620 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
621 zassert_equal(saddr->sin_port, htons(80), ""); in ZTEST()
622 zassert_equal(saddr->sin_addr.s_addr, INADDR_ANY, ""); in ZTEST()
663 saddr = (struct sockaddr_in *)res->ai_addr; in ZTEST()
664 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
665 zassert_equal(saddr->sin_port, htons(80), ""); in ZTEST()