From patchwork Wed Oct 30 09:11:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jukka Rissanen X-Patchwork-Id: 287161 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 57FA12C0371 for ; Wed, 30 Oct 2013 20:11:20 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204Ab3J3JLP (ORCPT ); Wed, 30 Oct 2013 05:11:15 -0400 Received: from mga03.intel.com ([143.182.124.21]:32073 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751739Ab3J3JLO (ORCPT ); Wed, 30 Oct 2013 05:11:14 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 30 Oct 2013 02:11:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,535,1378882800"; d="scan'208";a="382144490" Received: from sorvi.fi.intel.com ([10.237.72.152]) by azsmga001.ch.intel.com with ESMTP; 30 Oct 2013 02:11:13 -0700 From: Jukka Rissanen To: netdev@vger.kernel.org Subject: [PATCH 1/2] net: if_arp: add ARPHRD_RAWIP type Date: Wed, 30 Oct 2013 11:11:10 +0200 Message-Id: <1383124271-15290-2-git-send-email-jukka.rissanen@linux.intel.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1383124271-15290-1-git-send-email-jukka.rissanen@linux.intel.com> References: <1383124271-15290-1-git-send-email-jukka.rissanen@linux.intel.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is used when there is no L2 header before IP header. Example of this is Bluetooth 6LoWPAN network. The RAWIP header type value is already used in some Android kernels so same value is used here in order not to break userspace. Signed-off-by: Jukka Rissanen --- include/uapi/linux/if_arp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/if_arp.h b/include/uapi/linux/if_arp.h index d7fea34..06fc69f 100644 --- a/include/uapi/linux/if_arp.h +++ b/include/uapi/linux/if_arp.h @@ -59,6 +59,7 @@ #define ARPHRD_LAPB 516 /* LAPB */ #define ARPHRD_DDCMP 517 /* Digital's DDCMP protocol */ #define ARPHRD_RAWHDLC 518 /* Raw HDLC */ +#define ARPHRD_RAWIP 530 /* Raw IP */ #define ARPHRD_TUNNEL 768 /* IPIP tunnel */ #define ARPHRD_TUNNEL6 769 /* IP6IP6 tunnel */