summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rw-r--r--vio/viosocket.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 3064a01f0f8..43bd4e82013 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -272,6 +272,18 @@ my_bool vio_peer_addr(Vio * vio, char *buf, uint16 *port)
}
+/*
+ Get in_addr for a TCP/IP connection
+
+ SYNOPSIS
+ vio_in_addr()
+ vio vio handle
+ in put in_addr here
+
+ NOTES
+ one must call vio_peer_addr() before calling this one
+*/
+
void vio_in_addr(Vio *vio, struct in_addr *in)
{
DBUG_ENTER("vio_in_addr");