summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/libcliraw.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/raw/libcliraw.h')
-rw-r--r--source4/libcli/raw/libcliraw.h31
1 files changed, 10 insertions, 21 deletions
diff --git a/source4/libcli/raw/libcliraw.h b/source4/libcli/raw/libcliraw.h
index 51b50fdcb9..4047a5d369 100644
--- a/source4/libcli/raw/libcliraw.h
+++ b/source4/libcli/raw/libcliraw.h
@@ -61,24 +61,20 @@ struct smbcli_negotiate {
/* this is the context for a SMB socket associated with the socket itself */
struct smbcli_socket {
- struct ipv4_addr dest_ip;
- /* dest hostname (which may or may not be a DNS name) */
- char *hostname;
+ struct socket_context *sock;
- /* the port used */
+ /* what port we ended up connected to */
int port;
-
- struct socket_context *sock;
- /* a count of the number of packets we have received. We
- * actually only care about zero/non-zero at this stage */
- uint_t pkt_count;
+ /* the hostname we connected to */
+ const char *hostname;
- /* the network address of the client */
- char *client_addr;
-
- /* timeout for socket operations in milliseconds. */
- int timeout;
+ /* the event handle for waiting for socket IO */
+ struct {
+ struct event_context *ctx;
+ struct fd_event *fde;
+ struct timed_event *te;
+ } event;
};
/*
@@ -164,13 +160,6 @@ struct smbcli_transport {
size_t received;
uint8_t *buffer;
} recv_buffer;
-
- /* the event handle for waiting for socket IO */
- struct {
- struct event_context *ctx;
- struct fd_event *fde;
- struct timed_event *te;
- } event;
};
/* this is the context for the user */