From patchwork Fri Dec 23 03:47:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 132965 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D1AB2B71C5 for ; Fri, 23 Dec 2011 14:48:21 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753639Ab1LWDr5 (ORCPT ); Thu, 22 Dec 2011 22:47:57 -0500 Received: from mail-qy0-f174.google.com ([209.85.216.174]:50869 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752535Ab1LWDrz (ORCPT ); Thu, 22 Dec 2011 22:47:55 -0500 Received: by qcqz2 with SMTP id z2so5374838qcq.19 for ; Thu, 22 Dec 2011 19:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=SSJxjZ/YDH9Q+TnW1Sfrp+xGjP8+K5kBSkbdhi5RgL4=; b=SkfeiD0eHgK3NiiCo6nbpF36GnJJEByZeixXuCo8aSOIkEYMvYSMn+esNcP2C1c8fr +2iNwt/3Q30wzz/gRk9WhNWzXYi9R+FEVah3LHnO19kaU1dM9cOPyC7dXluyNanKGo+x NTFzlsSyALPnWwA1hWxwmVQDEAnwTu2wTRqf4= MIME-Version: 1.0 Received: by 10.229.77.133 with SMTP id g5mr5161983qck.39.1324612075006; Thu, 22 Dec 2011 19:47:55 -0800 (PST) Received: by 10.229.58.34 with HTTP; Thu, 22 Dec 2011 19:47:54 -0800 (PST) Date: Fri, 23 Dec 2011 11:47:54 +0800 Message-ID: Subject: [PATCH net-next] packet: fix typo in packet_mmap.txt From: Wei Yongjun To: davem@davemloft.net Cc: netdev@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Wei Yongjun Just fixed typo of sample code in packet_mmap.txt Signed-off-by: Wei Yongjun 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 */