]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
inpcb: fully retire inp_ppcb pointer
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 29 Mar 2024 19:16:59 +0000 (12:16 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 29 Mar 2024 19:18:32 +0000 (12:18 -0700)
commit1a8d176432e76d7725ed1ac0b44f63ac6cc82397
treec389b7bc620a773b887a5737c3c4ccbec5d4af46
parentde2a4e80d7d36651eaa688405ba72562cb7bc87c
inpcb: fully retire inp_ppcb pointer

Before a protocol specific control block started to embed inpcb in self
(see 0aa120d52f3ce68b3792440c483fe96511ec) this pointer used to point
at it.

Retain kf_sock_inpcb field in the struct kinfo_file in <sys/user.h>.  The
exp-run detected a minimal use of the field in ports:
  * sysutils/lsof - patched upstream
  * net-mgmt/netdata  - patch accepted upstream
  * emulators/qemu-user-static - upstream master branch seems not using
    the field anymore
We can keep the field around for some time, but eventually it may be
reused for something else.

PR: 277659 (exp-run)
Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D44491
lib/libprocstat/libprocstat.c
lib/libprocstat/libprocstat.h
lib/libprocstat/libprocstat_compat.c
sys/kern/sys_socket.c
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_subr.c
sys/sys/user.h
usr.bin/fstat/fstat.c
usr.bin/systat/netstat.c