Re: git: f63cb32c1988 - main - Retire 4.4BSD raw sockets

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Wed, 17 Aug 2022 09:35:57 UTC
On 11 Aug 2022, at 18:20, Gleb Smirnoff wrote:
> The branch main has been updated by glebius:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=f63cb32c1988561136fabdcc54d16cd200b666d9
>
> commit f63cb32c1988561136fabdcc54d16cd200b666d9
> Author:     Gleb Smirnoff <glebius@FreeBSD.org>
> AuthorDate: 2022-08-11 16:19:36 +0000
> Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
> CommitDate: 2022-08-11 16:19:36 +0000
>
>     Retire 4.4BSD raw sockets
>
>     Until today the remnants of the original code had provided some aid
>     in implementation of routing socket and IPSEC key socket.  There were
>     more obfuscation rather than generalisation with this aid.
>
>     A historical reference on the original idea of the raw sockets can
>     be found in chapter 11 of 4.4BSD System Manager Manual:
>
>   https://raw.githubusercontent.com/sergev/4.4BSD-Lite2/master/usr/share/doc/smm/18.net.pdf
>
>     Reviewed by:            melifaro
>     Differential revision:  https://reviews.freebsd.org/D36124
> ---
>  ObsoleteFiles.inc    |   3 +
>  sys/conf/files       |   2 -
>  sys/net/raw_cb.c     | 120 ----------------------
>  sys/net/raw_cb.h     |  90 -----------------
>  sys/net/raw_usrreq.c | 279 ---------------------------------------------------
>  5 files changed, 3 insertions(+), 491 deletions(-)
>
The removal of the raw_cb.h header file breaks the sysutils/lsof ports build.

I’ve proposed a ports patch here: https://reviews.freebsd.org/D36240

Kristof