Lines Matching defs:client
8 * the transport address of a client host, and the transport address of a
73 static struct sockaddr_gen client;
89 if (request->client->unit != 0) {
90 memcpy(&client, request->client->unit->addr.buf,
92 request->client->unit->addr.buf));
93 request->client->sin = &client;
94 sockgen_simplify(&client);
119 if (request->client->unit != 0)
120 t_free((char *) request->client->unit, T_UNITDATA);
125 /* tli_endpoints - determine TLI client and server endpoint information */
131 struct t_unitdata *client;
136 * Determine the client endpoint address. With unconnected services, peek
148 if ((client = (struct t_unitdata *) t_alloc(fd, T_UNITDATA, T_ADDR)) == 0) {
152 if (ioctl(fd, TI_GETPEERNAME, &client->addr) < 0 || client->addr.len == 0) {
154 if (t_rcvudata(fd, client, &flags) < 0 || client->addr.len == 0) {
155 tcpd_warn("can't get client address: %s", tli_error());
156 t_free((void *) client, T_UNITDATA);
160 request->client->unit = client;
164 * server address or name, or to look up the client user.