Skip to content

Commit e10c878

Browse files
authored
Merge pull request #337 from teacup-on-rockingchair/add_tcp_info
Add support for getsockopt TCP_INFO
2 parents 5af785e + d3f10a0 commit e10c878

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ff_syscall_wrapper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
#define LINUX_TCP_KEEPIDLE 4
9999
#define LINUX_TCP_KEEPINTVL 5
100100
#define LINUX_TCP_KEEPCNT 6
101+
#define LINUX_TCP_INFO 11
101102
#define LINUX_TCP_MD5SIG 14
102103

103104
/* setsockopt/getsockopt define end */
@@ -368,6 +369,8 @@ tcp_opt_convert(int optname)
368369
return TCP_KEEPINTVL;
369370
case LINUX_TCP_KEEPCNT:
370371
return TCP_KEEPCNT;
372+
case LINUX_TCP_INFO:
373+
return TCP_INFO;
371374
case LINUX_TCP_MD5SIG:
372375
return TCP_MD5SIG;
373376
default:

0 commit comments

Comments
 (0)