diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-26 13:39:36 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-27 13:00:25 +0200 |
commit | 7bbaab8dffcfe55b5da099840ec200be4d098b69 (patch) | |
tree | df154e67af93d1ea31350b2b266c0152345a0fcb /source4/rpc_server | |
parent | 32bcc73cf8b59e2254967d55ebeb2715d4287840 (diff) | |
download | samba-7bbaab8dffcfe55b5da099840ec200be4d098b69.tar.gz samba-7bbaab8dffcfe55b5da099840ec200be4d098b69.tar.bz2 samba-7bbaab8dffcfe55b5da099840ec200be4d098b69.zip |
s4:rpc_server: remove 'socket_address' based functions
metze
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/dcerpc_server.c | 19 | ||||
-rw-r--r-- | source4/rpc_server/dcerpc_server.h | 2 | ||||
-rw-r--r-- | source4/rpc_server/service_rpc.c | 2 |
3 files changed, 0 insertions, 23 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c index c9474233cb..0b0e3f22b6 100644 --- a/source4/rpc_server/dcerpc_server.c +++ b/source4/rpc_server/dcerpc_server.c @@ -1111,25 +1111,6 @@ _PUBLIC_ NTSTATUS dcesrv_reply(struct dcesrv_call_state *call) return NT_STATUS_OK; } -_PUBLIC_ struct socket_address *dcesrv_connection_get_my_addr(struct dcesrv_connection *conn, TALLOC_CTX *mem_ctx) -{ - if (!conn->transport.get_my_addr) { - return NULL; - } - - return conn->transport.get_my_addr(conn, mem_ctx); -} - -_PUBLIC_ struct socket_address *dcesrv_connection_get_peer_addr(struct dcesrv_connection *conn, TALLOC_CTX *mem_ctx) -{ - if (!conn->transport.get_peer_addr) { - return NULL; - } - - return conn->transport.get_peer_addr(conn, mem_ctx); -} - - /* remove the call from the right list when freed */ diff --git a/source4/rpc_server/dcerpc_server.h b/source4/rpc_server/dcerpc_server.h index 7e82548395..bf93380274 100644 --- a/source4/rpc_server/dcerpc_server.h +++ b/source4/rpc_server/dcerpc_server.h @@ -218,8 +218,6 @@ struct dcesrv_connection { struct { void *private_data; void (*report_output_data)(struct dcesrv_connection *); - struct socket_address *(*get_my_addr)(struct dcesrv_connection *, TALLOC_CTX *mem_ctx); - struct socket_address *(*get_peer_addr)(struct dcesrv_connection *, TALLOC_CTX *mem_ctx); } transport; struct tstream_context *stream; diff --git a/source4/rpc_server/service_rpc.c b/source4/rpc_server/service_rpc.c index 0cc930ebc5..906b02dc9e 100644 --- a/source4/rpc_server/service_rpc.c +++ b/source4/rpc_server/service_rpc.c @@ -370,8 +370,6 @@ static void dcesrv_sock_accept(struct stream_connection *srv_conn) dcesrv_conn->transport.private_data = srv_conn; dcesrv_conn->transport.report_output_data = dcesrv_sock_report_output_data; - dcesrv_conn->transport.get_my_addr = dcesrv_sock_get_my_addr; - dcesrv_conn->transport.get_peer_addr = dcesrv_sock_get_peer_addr; TALLOC_FREE(srv_conn->event.fde); |