linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [Bug 115721] New: rtnetlink(7) / RTM_GETROUTE specifies incorrect structure
Date: Fri, 01 Apr 2016 10:40:33 +0000	[thread overview]
Message-ID: <bug-115721-11311@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=115721

            Bug ID: 115721
           Summary: rtnetlink(7) / RTM_GETROUTE specifies incorrect
                    structure
           Product: Documentation
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
          Assignee: documentation_man-pages-ztI5WcYan/vQLgFONoPN62D2FQJk+8+b@public.gmane.org
          Reporter: dacut-YzQ35w7zxAfYtjvyW6yDsg@public.gmane.org
        Regression: No

The current manpage for rtnetlink(7) states:

RTM_NEWROUTE, RTM_DELROUTE, RTM_GETROUTE
  Create, remove or receive information about a network route.  These messages
contain an rtmsg structure with an optional sequence of rtattr structures
following.

However, this appears to be incorrect as of this commit:
https://github.com/torvalds/linux/commit/88c5b5ce5cb57af6ca2a7cf4d5715fa320448ff9

Updated by:
https://github.com/torvalds/linux/commit/e5eca6d41f53db48edd8cf88a3f59d2c30227f8e


Prior to 88c5b5ce, the correct structure was a struct rtgenmsg (not rtmsg),
which only has the family parameter. On and after 88c5b5ce, this was changed to
struct ifinfomsg.

iproute2 shows the usage of this before and after the change:
https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=63338dca45135c85c7f588bd5068e6e77ff816eb

I'm not quite sure what the text should say. ifinfomsg has a number of other
fields beyond ifi_family, but they seem to be unused with this API.

Thanks.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2016-04-01 10:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-115721-11311@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon-590eeb7gvniway/ihj7yzeb+6bgklq7r@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).