Thread View: muc.lists.freebsd.doc
4 messages
4 total messages
Started by bugzilla-noreply
Wed, 11 Nov 2026 07:55
[Bug 300680] Man page / source code discrepancy
Author: bugzilla-noreply
Date: Wed, 11 Nov 2026 07:55
Date: Wed, 11 Nov 2026 07:55
57 lines
3670 bytes
3670 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300680
Bug ID: 300680
Summary: Man page / source code discrepancy
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Manual Pages
Assignee: bugs@FreeBSD.org
Reporter: unixdev73@gmail.com
CC: doc@FreeBSD.org
Attachment #277184 text/plain
mime type:
Created attachment 277184
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277184&action=edit
A minimal reproducer; Can be compiled with: clang main.c
The man page:
https://man.freebsd.org/cgi/man.cgi?query=ip&sektion=4&apropos=0&manpath=FreeBSD+15.1-RELEASE+and+Ports.quarterly
lists a structure definition that does not match the one in the sources:
"struct ip_mreqn {
struct in_addr imr_multiaddr; /* IP multicast address of group */
struct in_addr imr_interface; /* local IP address of interface */
int imr_ifindex; /* interface index */
}"
The actual structure definition can be found here:
https://github.com/freebsd/freebsd-src/blob/main/sys/netinet/in.h#L563:
"struct ip_mreqn {
struct in_addr imr_multiaddr; /* IP multicast address of group */
struct in_addr imr_address; /* local IP address of interface */
int imr_ifindex; /* Interface index; cast to uint32_t */
}"
Using imr_interface in code will cause a compilation error:
error: no member named 'imr_interface' in 'struct ip_mreqn'
--
You are receiving this mail because:
You are on the CC list for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300680] ip(4): Man page / source code discrepancy
Author: bugzilla-noreply
Date: Wed, 11 Nov 2026 08:13
Date: Wed, 11 Nov 2026 08:13
19 lines
2723 bytes
2723 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300680
Wolfram Schneider <wosch@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Man page / source code |ip(4): Man page / source
|discrepancy |code discrepancy
CC| |bms@FreeBSD.org,
| |wosch@FreeBSD.org
--
You are receiving this mail because:
You are on the CC list for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300680] ip(4): Man page / source code discrepancy
Author: bugzilla-noreply
Date: Sun, 15 Nov 2026 07:47
Date: Sun, 15 Nov 2026 07:47
18 lines
2657 bytes
2657 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300680
Alexander Ziaee <ziaee@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |In Progress
CC| |ziaee@FreeBSD.org
Assignee|bugs@FreeBSD.org |ziaee@FreeBSD.org
--
You are receiving this mail because:
You are on the CC list for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300680] ip(4): Man page / source code discrepancy
Author: bugzilla-noreply
Date: Sun, 15 Nov 2026 08:02
Date: Sun, 15 Nov 2026 08:02
37 lines
3188 bytes
3188 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300680
--- Comment #1 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=22a4f5dd0c1be42fdbde9ddb96335bfcf31e53d7
commit 22a4f5dd0c1be42fdbde9ddb96335bfcf31e53d7
Author: Anshuman Dutta <anshuman.123dutta@gmail.com>
AuthorDate: 2026-11-14 14:36:09 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-11-15 07:52:00 +0000
ip.4: Fix ip_mreqn imr_address field name
This manual used imr_interface when describing the second field of
struct ip_mreqn, but sys/netinet/in.h names that field imr_address.
Note that ip_mreq below does have imr_interface which is unchanged.
PR: 300680
MFC after: 3 days
Reviewed by: ziaee
Closes: https://github.com/freebsd/freebsd-src/pull/2553
share/man/man4/ip.4 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads