diff options
| author | 文剑 <wenjianhn@gmail.com> | 2015-05-10 13:12:01 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-05-10 13:12:57 +0200 |
| commit | 4d45036a35bbac36a6dc110c7f032e6446e93aca (patch) | |
| tree | 955d56a451cf62343859913d89c2ec7f916717df /man7/packet.7 | |
| parent | 2174e8e353191826b0dc538fdfbf05ec167a8681 (diff) | |
| download | man-pages-4d45036a35bbac36a6dc110c7f032e6446e93aca.tar.gz | |
packet.7: Fix description of binding a packet socket to an interface
Reported-by: Cortland Setlow <cortland.setlow@gmail.com>
Signed-off-by: Jian Wen <wenjianhn@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/packet.7')
| -rw-r--r-- | man7/packet.7 | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/man7/packet.7 b/man7/packet.7 index e70c09e3be..ffd4d4d7ef 100644 --- a/man7/packet.7 +++ b/man7/packet.7 @@ -89,11 +89,13 @@ To get packets only from a specific interface use specifying an address in a .I struct sockaddr_ll to bind the packet socket to an interface. -Only the -.I sll_protocol -and the -.I sll_ifindex -address fields are used for purposes of binding. +Fields used for binding are +.IR sll_family (should +be +.BR AF_PACKET ), +.IR sll_protocol , +and +.IR sll_ifindex . The .BR connect (2) @@ -181,11 +183,6 @@ The other fields should be 0. and .I sll_pkttype are set on received packets for your information. -For bind, only -.I sll_protocol -and -.I sll_ifindex -are used. .SS Socket options Packet socket options are configured by calling .BR setsockopt (2) |
