Add support for getsockopt TCP_INFO

This commit is contained in:
teacup-on-rockingchair 2019-02-24 10:51:25 +02:00
parent 031be553ab
commit 9b83381818
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,7 @@
#define LINUX_TCP_KEEPIDLE 4
#define LINUX_TCP_KEEPINTVL 5
#define LINUX_TCP_KEEPCNT 6
#define LINUX_TCP_INFO 11
#define LINUX_TCP_MD5SIG 14
/* setsockopt/getsockopt define end */
@ -368,6 +369,8 @@ tcp_opt_convert(int optname)
return TCP_KEEPINTVL;
case LINUX_TCP_KEEPCNT:
return TCP_KEEPCNT;
case LINUX_TCP_INFO:
return TCP_INFO;
case LINUX_TCP_MD5SIG:
return TCP_MD5SIG;
default: