summaryrefslogtreecommitdiffhomepage
path: root/netio.h
diff options
context:
space:
mode:
authorhouseofkodai <karthik@houseofkodai.in>2018-01-25 19:51:41 +0530
committerMatt Johnston <matt@ucc.asn.au>2018-01-25 22:21:41 +0800
commit917722257d11ea7a33990c170542aeff2b6061b1 (patch)
tree0825c8163b8ec62ad32039d7e97e9960302e631a /netio.h
parent3d61b6eab69a9a2453e4fb807159f28c9490312a (diff)
Server chosen tcpfwd ports (#43)
Server chosen tcpfwd ports
Diffstat (limited to 'netio.h')
-rw-r--r--netio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/netio.h b/netio.h
index 532157c..090df3d 100644
--- a/netio.h
+++ b/netio.h
@@ -14,6 +14,7 @@ enum dropbear_prio {
void set_sock_nodelay(int sock);
void set_sock_priority(int sock, enum dropbear_prio prio);
+int get_sock_port(int sock);
void get_socket_address(int fd, char **local_host, char **local_port,
char **remote_host, char **remote_port, int host_lookup);
void getaddrstring(struct sockaddr_storage* addr,