Skip to content

Commit 0f0f950

Browse files
authored
Merge pull request #1429 from LiuDoo/add_socketopt_const_dev
Add socketopt const dev
2 parents 416b685 + cf78110 commit 0f0f950

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

qiling/os/posix/const.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,31 @@
5656
'IPPROTO_RAW' : 0x00ff,
5757
}
5858

59-
59+
# https://github.com/torvalds/linux/blob/master/tools/include/uapi/asm-generic/socket.h
6060
linux_x86_socket_options = {
6161
"SO_DEBUG" : 0x0001,
6262
"SO_REUSEADDR" : 0x0002,
63-
"SO_KEEPALIVE" : 0x0009,
63+
"SO_TYPE" : 0x0003,
64+
"SO_ERROR" : 0x0004,
6465
"SO_DONTROUTE" : 0x0005,
6566
"SO_BROADCAST" : 0x0006,
66-
"SO_LINGER" : 0x000d,
67-
"SO_OOBINLINE" : 0x000a,
6867
"SO_SNDBUF" : 0x0007,
6968
"SO_RCVBUF" : 0x0008,
69+
"SO_SNDBUFFORCE" : 0x0020,
70+
"SO_RCVBUFFORCE" : 0x0021,
71+
"SO_KEEPALIVE" : 0x0009,
72+
"SO_OOBINLINE" : 0x000a,
73+
"SO_NO_CHECK" : 0x000b,
74+
"SO_PRIORITY" : 0x000c,
75+
"SO_LINGER" : 0x000d,
76+
"SO_BSDCOMPAT" : 0x000e,
7077
"SO_REUSEPORT" : 0x000f,
71-
"SO_SNDLOWAT" : 0x0013,
78+
"SO_PASSCRED" : 0x0010,
79+
"SO_PEERCRED" : 0x0011,
7280
"SO_RCVLOWAT" : 0x0012,
73-
"SO_SNDTIMEO" : 0x0015,
74-
"SO_RCVTIMEO" : 0x0014,
81+
"SO_SNDLOWAT" : 0x0013,
82+
"SO_RCVTIMEO_OLD" : 0x0014,
83+
"SO_SNDTIMEO_OLD" : 0x0015,
7584
}
7685

7786
# https://man7.org/linux/man-pages/man7/ip.7.html

0 commit comments

Comments
 (0)