Home
last modified time | relevance | path

Searched refs:sinp (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/smbfs/lib/smb/
H A Dnb_net.c72 struct sockaddr_in *sinp; in nb_resolvehost_in() local
90 sinp = malloc(len); in nb_resolvehost_in()
91 if (sinp == NULL) in nb_resolvehost_in()
93 bzero(sinp, len); in nb_resolvehost_in()
94 sinp->sin_len = len; in nb_resolvehost_in()
95 sinp->sin_family = h->h_addrtype; in nb_resolvehost_in()
96 memcpy(&sinp->sin_addr.s_addr, h->h_addr, 4); in nb_resolvehost_in()
97 sinp->sin_port = htons(smbtcpport); in nb_resolvehost_in()
98 *dest = (struct sockaddr*)sinp; in nb_resolvehost_in()
/freebsd/tools/regression/netinet/msocket_ifnet_remove/
H A Dmsocket_ifnet_remove.c131 struct sockaddr_in *sinp; in ifconfig_inet() local
145 sinp = (struct sockaddr_in *)&ifra.ifra_addr; in ifconfig_inet()
146 sinp->sin_family = AF_INET; in ifconfig_inet()
147 sinp->sin_len = sizeof(ifra.ifra_addr); in ifconfig_inet()
148 sinp->sin_addr.s_addr = inet_addr(ip); in ifconfig_inet()
150 sinp = (struct sockaddr_in *)&ifra.ifra_mask; in ifconfig_inet()
151 sinp->sin_family = AF_INET; in ifconfig_inet()
152 sinp->sin_len = sizeof(ifra.ifra_addr); in ifconfig_inet()
153 sinp->sin_addr.s_addr = inet_addr(netmask); in ifconfig_inet()
/freebsd/contrib/arm-optimized-routines/math/
H A Dsincosf.c18 sincosf (float y, float *sinp, float *cosp) in sincosf() argument
34 *sinp = y; in sincosf()
39 sincosf_poly (x, x2, p, 0, sinp, cosp); in sincosf()
51 sincosf_poly (x * s, x * x, p, n, sinp, cosp); in sincosf()
66 sincosf_poly (x * s, x * x, p, n, sinp, cosp); in sincosf()
71 *sinp = *cosp = y - y; in sincosf()
H A Dsincosf.h44 sincosf_poly (double x, double x2, const sincos_t *p, int n, float *sinp, in sincosf_poly() argument
55 float *tmp = (n & 1 ? cosp : sinp); in sincosf_poly()
56 cosp = (n & 1 ? sinp : cosp); in sincosf_poly()
57 sinp = tmp; in sincosf_poly()
66 *sinp = s + x5 * s1; in sincosf_poly()
/freebsd/sbin/ipf/ipfsync/
H A Dipfsyncd.c309 buildsocket(nicname, sinp) in buildsocket() argument
311 struct sockaddr_in *sinp;
317 debug(2, "binding to %s:%s\n", nicname, inet_ntoa(sinp->sin_addr));
319 if (IN_MULTICAST(ntohl(sinp->sin_addr.s_addr))) {
377 mreq.imr_multiaddr.s_addr = sinp->sin_addr.s_addr;
384 snprintf(buffer, sizeof(buffer), "%s,", inet_ntoa(sinp->sin_addr));
429 if (connect(nfd, (struct sockaddr *)sinp, sizeof(*sinp)) == -1) {
440 syslog(LOG_INFO, "Sending data to %s", inet_ntoa(sinp->sin_addr));
441 debug(3, "Sending data to %s\n", inet_ntoa(sinp->sin_addr));
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_slirp.c362 parse_addr(char *addr, struct sockaddr_in *sinp) in parse_addr() argument
367 memset(sinp, 0, sizeof(*sinp)); in parse_addr()
368 sinp->sin_family = AF_INET; in parse_addr()
369 sinp->sin_len = sizeof(struct sockaddr_in); in parse_addr()
377 error = inet_pton(AF_INET, addr, &sinp->sin_addr); in parse_addr()
381 sinp->sin_addr.s_addr = htonl(INADDR_ANY); in parse_addr()
387 sinp->sin_port = htons(porti); in parse_addr()
/freebsd/sys/netinet/
H A Dtcp_usrreq.c228 struct sockaddr_in *sinp; in tcp_usr_bind() local
239 sinp = (struct sockaddr_in *)nam; in tcp_usr_bind()
246 sinp->sin_addr.s_addr != INADDR_ANY) { in tcp_usr_bind()
252 if (nam->sa_len != sizeof(*sinp)) { in tcp_usr_bind()
260 if (IN_MULTICAST(ntohl(sinp->sin_addr.s_addr))) { in tcp_usr_bind()
265 error = in_pcbbind(inp, sinp, td->td_ucred); in tcp_usr_bind()
480 struct sockaddr_in *sinp; in tcp_usr_connect() local
491 sinp = (struct sockaddr_in *)nam; in tcp_usr_connect()
496 if (nam->sa_len != sizeof (*sinp)) { in tcp_usr_connect()
503 if (IN_MULTICAST(ntohl(sinp->sin_addr.s_addr))) { in tcp_usr_connect()
[all …]
H A Dudp_usrreq.c1572 struct sockaddr_in *sinp; in udp_bind() local
1579 sinp = (struct sockaddr_in *)nam; in udp_bind()
1586 sinp->sin_addr.s_addr != INADDR_ANY) in udp_bind()
1595 error = in_pcbbind(inp, sinp, td->td_ucred); in udp_bind()
H A Dsctputil.c6778 struct sockaddr_in *sinp; in sctp_bindx_add_address() local
6839 sinp = (struct sockaddr_in *)sa; in sctp_bindx_add_address()
6840 port = sinp->sin_port; in sctp_bindx_add_address()
/freebsd/tests/sys/kern/
H A Dsocket_splice.c68 struct sockaddr *sinp; in tcp_socketpair() local
89 sinp = (struct sockaddr *)&sin; in tcp_socketpair()
97 sinp = (struct sockaddr *)&sin6; in tcp_socketpair()
100 error = bind(sd[0], sinp, sinp->sa_len); in tcp_socketpair()
105 error = getsockname(sd[0], sinp, &(socklen_t){ sinp->sa_len }); in tcp_socketpair()
108 error = connect(sd[1], sinp, sinp->sa_len); in tcp_socketpair()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clvfsops.c796 struct sockaddr_in **sinp, char *dirpath, size_t dirpathsize, int *dirlenp) in nfs_mount_parse_from() argument
880 *sinp = sin; in nfs_mount_parse_from()