From patchwork Thu Jan 28 12:47:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60724 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp463546lbb; Thu, 28 Jan 2016 05:10:23 -0800 (PST) X-Received: by 10.140.105.198 with SMTP id c64mr3367088qgf.94.1453986623024; Thu, 28 Jan 2016 05:10:23 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x130si11471466qhc.103.2016.01.28.05.10.22; Thu, 28 Jan 2016 05:10:22 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7FF1F618C6; Thu, 28 Jan 2016 13:10:22 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=cvzVDJQK; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 02876618C6; Thu, 28 Jan 2016 13:00:22 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 448C761740; Thu, 28 Jan 2016 12:57:52 +0000 (UTC) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by lists.linaro.org (Postfix) with ESMTPS id 14D7261772 for ; Thu, 28 Jan 2016 12:47:52 +0000 (UTC) Received: by mail-ob0-f175.google.com with SMTP id is5so34263287obc.0 for ; Thu, 28 Jan 2016 04:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c1BbNdawFfx171K225vZSNb17IxzmlM2ueAkiWyOW6g=; b=cvzVDJQKyLIAC0tfSUpJoJq1KhR1Qhnvw5k0JV/c28sp50A0PgrrFZoth3069rSNGJ V4gDpdpTpFYs3rEzLHX0dxv0De7ac+H7QplIIg1IrLUFEHyLuIsmOaqSw/cfnZzfE+W/ JZFNBb3isBHoUTFSaYZtBUsF1kkz6nUWibDzk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c1BbNdawFfx171K225vZSNb17IxzmlM2ueAkiWyOW6g=; b=Wgs/W2rGWvURwDxv5mx1qd4wqcavzO+THDEABRV8uuT+PryD7A0D31zO+BWcJPiao2 vJvkREJpK18VTwpEmgfeIHq8150LE1cF+ytrSX5INomnZcMrCh43rAW7nQjWg8IT3ucn U6K8H9r7Bqcr35SSkDht7tcui8hqlPYzavcJySN2zvx+jEUjTrobkX+ehGBE86VID/SO uJtNKEXN/PqKwk8NasX+2FXG5ZM9CPmsXvEhRCnbai8QGV9KBLF2Cxp73i16MFiMgBKK AJrMkAHJ4DykFC9lGaIterEkU7fGHft+vd/nkpuFczoHtyz64UDf7v18XtognCLG7/2V YP2A== X-Gm-Message-State: AG10YOT4HUCpx5tx/AgxRIc2q4OPLMcv2l9+JtOHCumf2JkkeiBwdHWClZP9Kesbnhy+/Ec0Qxg= X-Received: by 10.60.177.67 with SMTP id co3mr2066136oec.62.1453985271664; Thu, 28 Jan 2016 04:47:51 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id u18sm5343302oie.9.2016.01.28.04.47.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 04:47:50 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 28 Jan 2016 06:47:39 -0600 Message-Id: <1453985264-3807-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453985264-3807-1-git-send-email-bill.fischofer@linaro.org> References: <1453985264-3807-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv4 1/6] api: packet: add bcast/mcast parse documentation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bill Fischofer --- include/odp/api/packet_flags.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/odp/api/packet_flags.h b/include/odp/api/packet_flags.h index 65fd3ce..7ea08f7 100644 --- a/include/odp/api/packet_flags.h +++ b/include/odp/api/packet_flags.h @@ -109,6 +109,9 @@ int odp_packet_has_eth(odp_packet_t pkt); /** * Check for Ethernet broadcast address * + * ODP recognizes the destination MAC address FF:FF:FF:FF:FF:FF as + * a broadcast address. All others are considered non-broadcast. + * * @param pkt Packet handle * @retval non-zero if Ethernet destination address is the broadcast address * @retval 0 if Ethernet destination address is not the broadcast address @@ -118,6 +121,8 @@ int odp_packet_has_eth_bcast(odp_packet_t pkt); /** * Check for Ethernet multicast address * + * ODP recognizes the destination MAC address as multicast if bit 7 is 1. + * * @param pkt Packet handle * @retval non-zero if Ethernet destination address is a multicast address * @retval 0 if Ethernet destination address is not a multicast address @@ -181,6 +186,11 @@ int odp_packet_has_ipv6(odp_packet_t pkt); /** * Check for IP broadcast address * + * For IPv4, ODP recognizes the destination IP address 255.255.255.255 as + * a broadcast address. All other addresses are considered non-broadcast. + * + * For IPv6, no destination addresses are recognized as broadcast addresses. + * * @param pkt Packet handle * @retval non-zero if IP destination address is a broadcast address * @retval 0 if IP destination address is not a broadcast address @@ -190,6 +200,12 @@ int odp_packet_has_ip_bcast(odp_packet_t pkt); /** * Check for IP multicast address * + * For IPv4 ODP recognizes destination IP addresses in the range 224.0.0.0 + * through 239.255.255.255 as multicast addresses. + * + * For IPv6 ODP recognizes destination IP addresses with prefixes FF00:: + * through FFFF:: as multicast addresses. + * * @param pkt Packet handle * @retval non-zero if IP destination address is a multicast address * @retval 0 if IP destination address is not a multicast address