New: sll_family required for bind() on AF_PACKET socket
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_hatypeandsll_pkttypeare set on received packets for your information. For bind onlysll_protocolandsll_ifindexare 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
A message that is not in the archive (sent off-list or not yet received): bug-100081-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/
[Bug 100081] sll_family required for bind() on AF_PACKET socket
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