]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- add more linux socket options (sorted by value)
authorAlexander Leidinger <netchild@FreeBSD.org>
Sun, 8 Nov 2020 09:50:58 +0000 (09:50 +0000)
committerAlexander Leidinger <netchild@FreeBSD.org>
Sun, 8 Nov 2020 09:50:58 +0000 (09:50 +0000)
commit8ec6c4a38bfc988f6300ed6c37a8db352f983329
tree26625c8e87e0850ae4ca8b4474afa24cea88005d
parent83a252c6a15d44cd574a9ef9ba37a77a3464296f
 - add more linux socket options (sorted by value)
 - map those IPv4 / IPv6 socket options which exist in FreeBSD
   + most of them visually verified to have the same type/layout of arguments
   + not tested with linux programs to behave as intended
 - be more human readable for known options which are not handled
 - be more verbose for unhandled socket message flags we know about
 - print the jail ID in linux_msg if run in a jail
 - add possibility to print debug message about known missing parts only once
 - add multiple levels of sysctl linux.debug:
   1: print debug messages, tell about unimplemented stuff (only once)
   2: like 1, but also print messages about implemented but not tested
      stuff (only once)
   3+: like 2, but no rate limiting of messages
 - increase default linux debug level from 1 to 3

We are a lot more verbose in as we need to be (e.g. some of the IP socket
options which are the same, and share the same memory layout, and are
believed to work). The reason is that we have no good testsuite to test those
linux-bits. The LTP or other test suites like the python one, are not fully
up to the task we need. As such the excessive messages about emulated but not
tested socket options.

IMO any MFC (possible, but most probably not by me) should set the default
debug level to 1.

Discussed with: trasz
share/man/man4/linux.4
sys/compat/linux/linux_mib.c
sys/compat/linux/linux_socket.c
sys/compat/linux/linux_socket.h
sys/compat/linux/linux_util.c
sys/compat/linux/linux_util.h