diff options
Diffstat (limited to 'netcon/Intercept.h')
| -rw-r--r-- | netcon/Intercept.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/netcon/Intercept.h b/netcon/Intercept.h index 0a9103ad..fe549f22 100644 --- a/netcon/Intercept.h +++ b/netcon/Intercept.h @@ -56,6 +56,7 @@ #define RPC_LISTEN 10 #define RPC_SOCKET 11 #define RPC_SHUTDOWN 12 +#define RPC_GETSOCKNAME 13 /* Administration RPC codes */ #define RPC_MAP 20 /* Give the service the value we "see" for the new buffer fd */ @@ -175,6 +176,14 @@ struct shutdown_st int how; }; +struct getsockname_st +{ + int sockfd; + struct sockaddr addr; + socklen_t addrlen; +}; + + #define CONNECT_SOCKARG struct sockaddr * #define SELECT_SIG int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout #define IOCTL_SIG int __fd, unsigned long int __request, ... |
