DEADSOFTWARE

Linux: LinNet updated
authorAlexander Shiryaev <aixp@mail.ru>
Mon, 26 Feb 2018 10:20:44 +0000 (13:20 +0300)
committerAlexander Shiryaev <aixp@mail.ru>
Mon, 26 Feb 2018 10:20:44 +0000 (13:20 +0300)
BlackBox/_Linux_/Lin/Mod/Net.txt
BlackBox/_Linux_/Lin/Mod/gen-Net/Makefile
BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py

index c8c528956c6d4cd0ae088e09590828d3659e4ee6..5215d0812520b038c29395f9b4e62179f431b7a0 100644 (file)
@@ -45,6 +45,8 @@ MODULE LinNet ["libc.so.6"];
                        PF_PPPOX* = 24; (* PPPoX sockets. *)
                        PF_WANPIPE* = 25; (* Wanpipe API sockets. *)
                        PF_LLC* = 26; (* Linux LLC. *)
+                       PF_IB* = 27; (* Native InfiniBand address. *)
+                       PF_MPLS* = 28; (* MPLS. *)
                        PF_CAN* = 29; (* Controller Area Network. *)
                        PF_TIPC* = 30; (* TIPC sockets. *)
                        PF_BLUETOOTH* = 31; (* Bluetooth sockets. *)
@@ -57,7 +59,10 @@ MODULE LinNet ["libc.so.6"];
                        PF_ALG* = 38; (* Algorithm sockets. *)
                        PF_NFC* = 39; (* NFC sockets. *)
                        PF_VSOCK* = 40; (* vSockets. *)
-                       PF_MAX* = 41; (* For now.. *)
+                       PF_KCM* = 41; (* Kernel Connection Multiplexor. *)
+                       PF_QIPCRTR* = 42; (* Qualcomm IPC Router. *)
+                       PF_SMC* = 43; (* SMC sockets. *)
+                       PF_MAX* = 44; (* For now.. *)
 
                (* socket types *)
                        (* /usr/include/i386-linux-gnu/bits/socket_type.h *)
@@ -142,6 +147,17 @@ MODULE LinNet ["libc.so.6"];
                        SO_SELECT_ERR_QUEUE* = {0,2,3,5};
                        SO_BUSY_POLL* = {1..3,5};
                        SO_MAX_PACING_RATE* = {0..3,5};
+                       SO_BPF_EXTENSIONS* = {4,5};
+                       SO_INCOMING_CPU* = {0,4,5};
+                       SO_ATTACH_BPF* = {1,4,5};
+                       SO_ATTACH_REUSEPORT_CBPF* = {0,1,4,5};
+                       SO_ATTACH_REUSEPORT_EBPF* = {2,4,5};
+                       SO_CNX_ADVICE* = {0,2,4,5};
+                       SO_MEMINFO* = {0..2,4,5};
+                       SO_INCOMING_NAPI_ID* = {3..5};
+                       SO_COOKIE* = {0,3..5};
+                       SO_PEERGROUPS* = {0,1,3..5};
+                       SO_ZEROCOPY* = {2..5};
 
                (* /usr/include/i386-linux-gnu/sys/socket.h *)
                        SHUT_RD* = 0;
@@ -309,7 +325,9 @@ MODULE LinNet ["libc.so.6"];
                PROCEDURE [ccall] getsockname* (s: SOCKET; VAR name: sockaddr; VAR namelen: socklen_t): int;
                PROCEDURE [ccall] listen* (s: SOCKET; backlog: int): int;
                PROCEDURE [ccall] recv* (s: SOCKET; buf: PtrVoid; len: size_t; flags: intFlags): ssize_t;
+               PROCEDURE [ccall] recvfrom* (s: SOCKET; buf: PtrVoid; len: size_t; flags: intFlags; VAR from: sockaddr; VAR fromlen: socklen_t): ssize_t;
                PROCEDURE [ccall] send* (s: SOCKET; msg: PtrVoid; len: size_t; flags: intFlags): ssize_t;
+               PROCEDURE [ccall] sendto* (s: SOCKET; msg: PtrVoid; len: size_t; flags: intFlags; VAR to: sockaddr; tolen: socklen_t): ssize_t;
                PROCEDURE [ccall] shutdown* (s: SOCKET; how: int): int;
                PROCEDURE [ccall] getsockopt* (s: SOCKET; level: int; optname: intFlags; optval: PtrVoid; VAR [nil] optlen: socklen_t): int;
                PROCEDURE [ccall] setsockopt* (s: SOCKET; level: int; optname: intFlags; optval: PtrVoid; optlen: socklen_t): int;
index 42ef267b0a4854e961501195244cdd6f7a0d19b9..35d10d1069e6e7e942b7e178fbb207f7ff0fa486 100644 (file)
@@ -8,6 +8,8 @@ INCDIR ?= /usr/include
 
 PY = python2.7
 
+CFLAGS += -m32
+
 DEFS = defs-basictypes defs-af defs-so defs-sol defs-ai defs-eai defs-somaxconn
 
 all: Net.txt ${DEFS}
index 500bac5c4436a72e6d127588f25ab1eee42a58c5..22287e180eefe4ea8b71327f37d5dcc803ab95f8 100755 (executable)
@@ -7,8 +7,8 @@ import sys, re
 
 INDENT = "\t"
 
-_p1 = re.compile('^#define\s+([^\s]+)\s+([A-Za-z0-9]+)\s*$')
-_p2 = re.compile('^#define\s+([^\s]+)\s+([^\s]+)\s+\/\*([^\*]+)\*\/\s*$')
+_p1 = re.compile('^# *define\s+([^\s]+)\s+([A-Za-z0-9]+)\s*$')
+_p2 = re.compile('^# *define\s+([^\s]+)\s+([^\s]+)\s+\/\*([^\*]+)\*\/\s*$')
 
 def mkset (x):
        if x >= 0: