From nobody Sun Nov 02 21:21:08 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d071d5pg3z6FWB9; Sun, 02 Nov 2025 21:21:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d071d0xdvz3nWG; Sun, 02 Nov 2025 21:21:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762118469; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y+qaQgz3BwVC6z3Ep8YevJF05yys+b3NeluMNkxigRU=; b=eNQS0f3g5O2AD3pGJoM/NdA6S3KdWuIJ5xihAP/2A9soB9CMVdszk/CQrq3GB74DeHg6mr y/9iaSVOxAgNXEAk81sjn7xfswa0kYdiUDuSYZfHpzfkjJGMJew7YzEiYcTcF0BtXTJ5Jo vwrmDl85J7tWPE1zaLYfy0vYp1TiKgjTvhFDE2aJYitSZ9/m1YI0I++NVIN+mQCQU48vZ0 2AT5jAh3iWM3jsVq+OoMemS3mz9fkNRYCQfNJBiF8Czj0QR2jw7cEWAHVeaZ0j6CP9bqzR XL0TxTohfdmRkVw7B7Fc9IoFCzzqpe4HrhhYLVFy/qX3LvWpXdyBxUQWGHDh2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762118469; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y+qaQgz3BwVC6z3Ep8YevJF05yys+b3NeluMNkxigRU=; b=OQ07YKvdvnaSgGLzVT9gkSNyxmwUFgTY/SlSXKc/dlM0s4w0K2w4Fc5yLJI+Tkl1qeS3hK CXVP3utcodfi9bP/WO/IUM2TpqkXe+xlKqmC1YQkQRl3QCixMdgZkDKG6dI8zqfZCq9Oar nOOrP63LDOJ21TCbocNYGeQQy/X65XNLnS2GOQwC5C62DP2BUGx/WLoei7dL9AmSmKZ0+1 ozFCeqn3oFnlar+ecVKDYzqzx2SdeO6HdYTSqhKkWjWksa7rmQFhjkWvSBxsYpdH20sLck CSfPDCcFyPoW3ZG8XgBPa21a/eDS1EZuxr9bSfXj9dbgqyljwJ4m3inrX30Y6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762118469; a=rsa-sha256; cv=none; b=HteorgrCE1GZvIJBP1K/loilXHpnhNeJXsffNMKG3qhAt5fYniZ0KzZE5BoL+uIHnLzhpV f55XNWb5ztZxeXuKgfpg83CHZ3WwW+7AOMYaHRu6Zgce4YwbJKGvAt9oWu7EwIONGBRZig Zchf3CS8LNKxW+SnnvYm6AVEVAWvUTLclrDDZUJc3OzBiEW4uqmvpg9FrN4ZltYqjW00E6 rgMb1du1HjGRzVdQlDTuA0f7gQ0Bm8BFxkxlrCBX6oOnoHewnRF82BeJjdHynoezxTYRA7 B4yXVF7GgekdxNd8O/BY05qFwnT7IMj3pdibI7gQjVRwV4YQszjd1mfG3+03sQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4d071d0X4rzjDd; Sun, 02 Nov 2025 21:21:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5A2LL8Tv043564; Sun, 2 Nov 2025 21:21:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5A2LL8Cu043561; Sun, 2 Nov 2025 21:21:08 GMT (envelope-from git) Date: Sun, 2 Nov 2025 21:21:08 GMT Message-Id: <202511022121.5A2LL8Cu043561@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 25aed6401b35 - main - ddb: improve printing of inpcbs List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 25aed6401b35834856440ffb32a61597c8019697 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=25aed6401b35834856440ffb32a61597c8019697 commit 25aed6401b35834856440ffb32a61597c8019697 Author: Michael Tuexen AuthorDate: 2025-11-02 17:17:05 +0000 Commit: Michael Tuexen CommitDate: 2025-11-02 17:21:01 +0000 ddb: improve printing of inpcbs * shuffle around the inp_label to give inp_flags more space since it can become long. * fix the indentation of in6p_icmp6filt, in6p_cksum, and in6p_hops. Reviewed by: Peter Lei MFC after: 3 days Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D53541 --- sys/netinet/in_pcb.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 4a1a8cdea619..edc6c8f29cc0 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -3068,13 +3068,13 @@ db_print_inpcb(struct inpcb *inp, const char *name, int indent) indent += 2; db_print_indent(indent); - db_printf("inp_flow: 0x%x\n", inp->inp_flow); + db_printf("inp_flow: 0x%x inp_label: %p\n", inp->inp_flow, + inp->inp_label); db_print_inconninfo(&inp->inp_inc, "inp_conninfo", indent); db_print_indent(indent); - db_printf("inp_label: %p inp_flags: 0x%b\n", - inp->inp_label, inp->inp_flags, INP_FLAGS_BITS); + db_printf("inp_flags: 0x%b\n", inp->inp_flags, INP_FLAGS_BITS); db_print_indent(indent); db_printf("inp_sp: %p inp_vflag: 0x%b\n", inp->inp_sp, @@ -3084,18 +3084,20 @@ db_print_inpcb(struct inpcb *inp, const char *name, int indent) db_printf("inp_ip_ttl: %d inp_ip_p: %d inp_ip_minttl: %d\n", inp->inp_ip_ttl, inp->inp_ip_p, inp->inp_ip_minttl); - db_print_indent(indent); #ifdef INET6 if (inp->inp_vflag & INP_IPV6) { + db_print_indent(indent); db_printf("in6p_options: %p in6p_outputopts: %p " "in6p_moptions: %p\n", inp->in6p_options, inp->in6p_outputopts, inp->in6p_moptions); + db_print_indent(indent); db_printf("in6p_icmp6filt: %p in6p_cksum %d " "in6p_hops %u\n", inp->in6p_icmp6filt, inp->in6p_cksum, inp->in6p_hops); } else #endif { + db_print_indent(indent); db_printf("inp_ip_tos: %d inp_ip_options: %p " "inp_ip_moptions: %p\n", inp->inp_ip_tos, inp->inp_options, inp->inp_moptions);