* [PATCH net-next] packet: fix typo in packet_mmap.txt
@ 2011-12-23 3:47 Wei Yongjun
2011-12-23 21:53 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2011-12-23 3:47 UTC (permalink / raw)
To: davem; +Cc: netdev
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>
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 */
--
1.7.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] packet: fix typo in packet_mmap.txt
2011-12-23 3:47 [PATCH net-next] packet: fix typo in packet_mmap.txt Wei Yongjun
@ 2011-12-23 21:53 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-12-23 21:53 UTC (permalink / raw)
To: weiyj.lk; +Cc: netdev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-23 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23 3:47 [PATCH net-next] packet: fix typo in packet_mmap.txt Wei Yongjun
2011-12-23 21:53 ` David Miller
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).