Lines Matching refs:client
22 * Generate an error packet for the client, schedule a send, and put us in
25 * The client->pkt structure will be modified to form an error return.
34 ns_lwdclient_errorpktsend(ns_lwdclient_t *client, isc_uint32_t _result) {
40 REQUIRE(NS_LWDCLIENT_ISRUNNING(client));
47 client->pkt.length = LWRES_LWPACKET_LENGTH;
48 client->pkt.pktflags |= LWRES_LWPACKETFLAG_RESPONSE;
49 client->pkt.recvlength = LWRES_RECVLENGTH;
50 client->pkt.authtype = 0; /* XXXMLG */
51 client->pkt.authlength = 0;
52 client->pkt.result = _result;
54 lwres_buffer_init(&b, client->buffer, LWRES_RECVLENGTH);
55 lwres = lwres_lwpacket_renderheader(&b, &client->pkt);
57 ns_lwdclient_stateidle(client);
61 r.base = client->buffer;
63 client->sendbuf = client->buffer;
64 result = ns_lwdclient_sendreply(client, &r);
66 ns_lwdclient_stateidle(client);
70 NS_LWDCLIENT_SETSEND(client);