From 0700676da69a68066e0a2f7541ffa0d3bf956616 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 31 Jan 2005 04:53:53 +0000 Subject: r5120: encode outgoing nbt packets when queueing them rather than in the send event code, as elements of the callers packet structure could go away while the queue is pending (if for example a name was de-registered while a packet referencing that name is queued) (This used to be commit 6726f15cf44388e5787eec223a8c9778110a508f) --- source4/libcli/nbt/libnbt.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source4/libcli/nbt/libnbt.h') diff --git a/source4/libcli/nbt/libnbt.h b/source4/libcli/nbt/libnbt.h index a3630e2a12..35eff9961c 100644 --- a/source4/libcli/nbt/libnbt.h +++ b/source4/libcli/nbt/libnbt.h @@ -51,7 +51,14 @@ struct nbt_name_request { /* the timeout event */ struct timed_event *te; - struct nbt_name_packet *request; + /* the name transaction id */ + uint16_t name_trn_id; + + /* is it a reply? */ + BOOL is_reply; + + /* the encoded request */ + DATA_BLOB encoded; /* shall we allow multiple replies? */ BOOL allow_multiple_replies; -- cgit