aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2023-02-03 19:33:36 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2023-02-03 19:33:36 +0000
commit09d3671b0e32774d9267781bd0c0d8196dbed6c0 (patch)
treee7f7a1afb7addab5a40d5f892e633c68222827b0
parent9e46ff4d4cfabb4836c84d97c639c169fd0a8aaa (diff)
downloadsrc-09d3671b0e32774d9267781bd0c0d8196dbed6c0.tar.gz
src-09d3671b0e32774d9267781bd0c0d8196dbed6c0.zip
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.
-rw-r--r--sys/netinet/in_pcb.h2
1 files changed, 1 insertions, 1 deletions
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 */