From ebab6d6ce40ec4d64126964c0223aa2bdef99094 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 16 Jan 2008 14:51:56 +0100 Subject: libcli/nbt: add nbt_name_socket_handle_response_packet() Move the last part of nbt_name_socket_recv() into a new function nbt_name_socket_handle_response_packet() so that it can be reused by an unexpected handler. metze (from samba4wins tree cb0377f3b95e50c84fac999a49dde80acc933124) --- libcli/nbt/libnbt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcli/nbt/libnbt.h') diff --git a/libcli/nbt/libnbt.h b/libcli/nbt/libnbt.h index 87183c2c13..491abd7b8a 100644 --- a/libcli/nbt/libnbt.h +++ b/libcli/nbt/libnbt.h @@ -277,6 +277,9 @@ struct nbt_name_release { struct nbt_name_socket *nbt_name_socket_init(TALLOC_CTX *mem_ctx, struct tevent_context *event_ctx, struct smb_iconv_convenience *iconv_convenience); +void nbt_name_socket_handle_response_packet(struct nbt_name_request *req, + struct nbt_name_packet *packet, + struct socket_address *src); struct nbt_name_request *nbt_name_query_send(struct nbt_name_socket *nbtsock, struct nbt_name_query *io); NTSTATUS nbt_name_query_recv(struct nbt_name_request *req, -- cgit