Skip to contentSkip to conversation

New: sll_family required for bind() on AF_PACKET socket

Bug 100081 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 2 messages Jun 17, 2015 – Jun 18, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 100081
Summary: sll_family required for bind() on AF_PACKET socket
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No

This is from "man 7 packet":

Quoted 1 line

When you send packets it is enough to specify sll_family, sll_addr, sll_halen, sll_ifindex. The other fields should be 0. sll_hatype and sll_pkttype are set on received packets for your information. For bind only sll_protocol and sll_ifindex are used.

However, the last sentence is not correct. You have to specifiy sll_family for bind() too, otherwise it will fail.

Signature · 6 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

[Bug 100081] sll_family required for bind() on AF_PACKET socket

In reply to a message not in the archive

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

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |PATCH_ALREADY_AVAILABLE

--- Comment #1 from Michael Kerrisk <[email protected]> --- By chance, this was actually reported and fixed a few weeks ago, and the text that will appear in the next man-pages release is:

Fields used for binding are sll_family (should be AF_PACKET), sll_protocol, and sll_ifindex.

Signature · 6 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html