[net-next] packet: fix typo in packet_mmap.txt

Submitted by Wei Yongjun on Dec. 23, 2011, 3:47 a.m.

Details

Message ID CAPgLHd-YqSvDKDpsgyL5UJx1wK4MUOGw=LpMbWkENti=7MdkgA@mail.gmail.com
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Wei Yongjun Dec. 23, 2011, 3:47 a.m.
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Just fixed typo of sample code in packet_mmap.txt

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Comments

David Miller Dec. 23, 2011, 9:53 p.m.
From: Wei Yongjun <weiyj.lk@gmail.com>
Date: Fri, 23 Dec 2011 11:47:54 +0800

> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Just fixed typo of sample code in packet_mmap.txt
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch hide | download patch | download mbox

diff --git a/Documentation/networking/packet_mmap.txt b/Documentation/networking/packet_mmap.txt
index 4acea66..1c08a4b 100644
--- a/Documentation/networking/packet_mmap.txt
+++ b/Documentation/networking/packet_mmap.txt
@@ -155,7 +155,7 @@  As capture, each frame contains two parts:
 
  /* fill sockaddr_ll struct to prepare binding */
  my_addr.sll_family = AF_PACKET;
- my_addr.sll_protocol = ETH_P_ALL;
+ my_addr.sll_protocol = htons(ETH_P_ALL);
  my_addr.sll_ifindex =  s_ifr.ifr_ifindex;
 
  /* bind socket to eth0 */