Lines Matching refs:sin
319 struct sockaddr_in sin;
364 memset(&sin, 0, sizeof(sin));
365 sin.sin_len = sizeof(sin);
366 sin.sin_family = AF_INET;
367 sin.sin_port = htons(port);
368 inet_addr_from_ipaddr(&sin.sin_addr, &naddr);
370 if (*addrlen > sizeof(sin))
371 *addrlen = sizeof(sin);
373 MEMCPY(addr, &sin, *addrlen);
669 struct sockaddr_in sin;
679 memset(&sin, 0, sizeof(sin));
680 sin.sin_len = sizeof(sin);
681 sin.sin_family = AF_INET;
682 sin.sin_port = htons(port);
683 inet_addr_from_ipaddr(&sin.sin_addr, addr);
685 if (*fromlen > sizeof(sin)) {
686 *fromlen = sizeof(sin);
689 MEMCPY(from, &sin, *fromlen);
1411 struct sockaddr_in sin;
1419 memset(&sin, 0, sizeof(sin));
1420 sin.sin_len = sizeof(sin);
1421 sin.sin_family = AF_INET;
1424 netconn_getaddr(sock->conn, &naddr, &sin.sin_port, local);
1428 LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F")\n", sin.sin_port));
1430 sin.sin_port = htons(sin.sin_port);
1431 inet_addr_from_ipaddr(&sin.sin_addr, &naddr);
1433 if (*namelen > sizeof(sin)) {
1434 *namelen = sizeof(sin);
1437 MEMCPY(name, &sin, *namelen);