From nobody Fri Feb 03 19:34:25 2023 X-Original-To: dev-commits-src-all@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 4P7m7P2dKjz3kg9k; Fri, 3 Feb 2023 19:34:25 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P7m7P21Hsz3CK8; Fri, 3 Feb 2023 19:34:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675452865; 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=B9cj7FnJPEDKIR3g8QyZNwcyoNELO5vHOlIgmvUl5lo=; b=hsyCy2PCfKuIMiK82VYQ3PBxbCqEVcsmBAL/16xQYevcz5KzVxkKUI+XdEvaWy8BnPdQVY jBcYHBgFS8Oj6NfWA00GMcT1ajEQtCJuuyO/hpNBHAejdh+MIENuQ7DkpXmAoQjaPqHk+G uK9HOEiOmX+tICaaQ1FJto9jHeTmrIsX5Le6y/4eyEfMRXljCx+GNNgCHd7JNpUZrzwl4T QzUKuNJxbg/ZYtwv9sgVPo3/9E/pKOog4ouL7UV7etx/csQkKR7L5JNYIouztp11MqNn1r Pn8ocwKTvypVUMRbcLykfyCl9ST2RUxdTzU/U5AOm4imdB49SqawklA612UXpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675452865; 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=B9cj7FnJPEDKIR3g8QyZNwcyoNELO5vHOlIgmvUl5lo=; b=PSJAPzhKNLEnJKjvEhaXJwJuJmUYWUkTUt2lCT7t7yAzG4Ld+Cf9FFbnNDPqsisPO1j1d3 ySF7B08NHTKr8pZf0ZZuEAVGXX8hvUt0cmc67WnCXhubED6N4KVjL/c+H/lc6iR/rXk1CG pgxZVu4Tuk+vBfMsFJ41K3yFZa1hogal50AqBzNtMS7nlKMpmdMxqG99L6uiCxvDHbazoG D1yrn0jygna/CuJvdZ4ZGI5B4gApUiB5Lrzv08E/Zu1oj+Z+sCdcochcx6hQ37K457p5VC gMbmYkdT1JctqOhzCTyXqePdyT7h42IfMLgkzqTK5ruxZ6QqQEqUhRCFtSl2nQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675452865; a=rsa-sha256; cv=none; b=onu6Mwymk1MCCGNHfioUiLsYJxKDqfYL7Wd+mAbuNGR2tkwiUMScU0VRiAmtuT5zDBcY+k SPnyzIeaBEmAqZC1sbWUn4vebTNkp2Sldm0xKq4ug4Bng3T/KscV/IyBDqXLVQJBObO5eU Dn9n8FFjij1vs4P+mYaLR4hWjT8huZJlxv3urjm5aofBp+JvbTq5mjDsLyWaSgXjV+gNhh eTI42Qo2mAZTde/+OYvqSSJEzAQMgbOT+hgDsApU5EvCxiWzUPL3ofOXYE6d0WKQ8FE9Zx Vo4nvuzY6mUpo5NjvT2NuWx7As6eLSCg9LKT8ygbay5zGmsjkaEWJ/MB4FOy/A== 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 4P7m7P15XYzmZD; Fri, 3 Feb 2023 19:34:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 313JYPCp041519; Fri, 3 Feb 2023 19:34:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 313JYPvi041518; Fri, 3 Feb 2023 19:34:25 GMT (envelope-from git) Date: Fri, 3 Feb 2023 19:34:25 GMT Message-Id: <202302031934.313JYPvi041518@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 09d3671b0e32 - main - inpcb: better document INP_ANONPORT flag List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 09d3671b0e32774d9267781bd0c0d8196dbed6c0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=09d3671b0e32774d9267781bd0c0d8196dbed6c0 commit 09d3671b0e32774d9267781bd0c0d8196dbed6c0 Author: Gleb Smirnoff AuthorDate: 2023-02-03 19:33:36 +0000 Commit: Gleb Smirnoff CommitDate: 2023-02-03 19:33:36 +0000 inpcb: better document INP_ANONPORT flag The name is pretty self explaining, but it is unclear why we need this flag, as kernel only sets it and never reads. --- sys/netinet/in_pcb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index dc248b275279..c450685affcb 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -626,7 +626,7 @@ int inp_so_options(const struct inpcb *inp); #define INP_HDRINCL 0x00000008 /* user supplies entire IP header */ #define INP_HIGHPORT 0x00000010 /* user wants "high" port binding */ #define INP_LOWPORT 0x00000020 /* user wants "low" port binding */ -#define INP_ANONPORT 0x00000040 /* port chosen for user */ +#define INP_ANONPORT 0x00000040 /* read by netstat(1) */ #define INP_RECVIF 0x00000080 /* receive incoming interface */ #define INP_MTUDISC 0x00000100 /* user can do MTU discovery */ /* INP_FREED 0x00000200 private to in_pcb.c */