Lines Matching refs:dest
68 struct sockaddr_in *dest;
85 dest = &rqp->nr_dest;
86 *dest = ctx->nb_ns;
87 dest->sin_family = AF_INET;
88 dest->sin_len = sizeof(*dest);
89 if (dest->sin_port == 0)
90 dest->sin_port = htons(ctx->nb_nmbtcpport);
91 if (dest->sin_addr.s_addr == INADDR_ANY)
92 dest->sin_addr.s_addr = htonl(INADDR_BROADCAST);
93 if (dest->sin_addr.s_addr == INADDR_BROADCAST)
116 bcopy(rr.rr_data, &dest->sin_addr, 4);
128 dest = malloc(len);
129 if (dest == NULL)
131 bzero(dest, len);
132 dest->sin_len = len;
133 dest->sin_family = AF_INET;
134 bcopy(rr.rr_data + 2, &dest->sin_addr.s_addr, 4);
135 dest->sin_port = htons(ctx->nb_smbtcpport);
136 *adpp = (struct sockaddr*)dest;