HomeFreeBSD

- add more linux socket options (sorted by value)

Description

  • 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

Details

Provenance
netchildAuthored on
Parents
rS367480: loader: cstyle cleanup of bootstrap.h did miss a bit
Branches
Unknown
Tags
Unknown