git: 09d3671b0e32 - main - inpcb: better document INP_ANONPORT flag
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Feb 2023 19:34:25 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=09d3671b0e32774d9267781bd0c0d8196dbed6c0
commit 09d3671b0e32774d9267781bd0c0d8196dbed6c0
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-02-03 19:33:36 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
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 */