🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.doc
Article #53

[Bug 300680] Man page / source code discrepancy

#53
From: bugzilla-noreply
Date: Wed, 11 Nov 2026 07:55
57 lines
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
Technical Details
Message-ID: <bug-300680-9@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.doc
Subject: [Bug 300680] Man page / source code discrepancy
Date: Wed, 11 Nov 2026 07:55:58 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300680-9@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="17612"; mail-complaints-to="news-admin@muc.de"
X-Original-To: doc@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794383758;
	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=UjQezYxCE4CdQkVXxvsvzsWPmieSRMAaWVKjM+YCr6I=;
	b=BpYzqyK9px8cbK56HJpCtQqvWW2keN0/t18BLUMEYawZfX1mGlOBH1FV+9FtApnmqTIqBv
	ozjjiDuJt9Ebn/ZP2GFy9MjqEPHIx1WSMbDpUF5eWoAK53vBPvLDUcVMFPwnxRyx9QzvEt
	kvMShSITAQ26SZig8pmD8WKnHpDHWPfPMw1LNtQHe7KEc5tllEk5pQCbhTyJywBXz0xnF3
	xQsyctEkpGadDUJZ5kIhbpUZGAMJooL0hpxpoHR0NKUT/Fzhi8RcD9h7vNz0xHusvddpVL
	lDNYP14L5BrG1Oj028Bsa1ax3f3lJyDzebSQiimm2iG4nUraUJFl18/713tArA==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes