From patchwork Thu Jan 28 12:39:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60716 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp448062lbb; Thu, 28 Jan 2016 04:40:41 -0800 (PST) X-Received: by 10.55.18.207 with SMTP id 76mr3005668qks.99.1453984841076; Thu, 28 Jan 2016 04:40:41 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e5si11986775qga.29.2016.01.28.04.40.40; Thu, 28 Jan 2016 04:40:41 -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 8A2A661A4F; Thu, 28 Jan 2016 12:40:40 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=Lp4eLQz/; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A2A31617E5; Thu, 28 Jan 2016 12:39:52 +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 5C6C9617E5; Thu, 28 Jan 2016 12:39:43 +0000 (UTC) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by lists.linaro.org (Postfix) with ESMTPS id 542C261772 for ; Thu, 28 Jan 2016 12:39:42 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id is5so34110972obc.0 for ; Thu, 28 Jan 2016 04:39:42 -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=Lp4eLQz/10000luuGcZdQNU6/t4WG72f7Pxh7J4y6XLTHttJRGYwj/1roMsiBUsfpe rUyRBOF8MI/S6xslzyRUp0rngLYG91927S8R7FS7Jdnk5t5S1SOZx/MnZJECftnJHJ6e pQAgc3i9PGWdfWFXLLr8Tq2RgQz1ZTlgns2Lo= 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=aqOwNOmxzWfgV9z3nrsAuaupbhBz9e2OxPA1SIu7RqNTMZgX7FmRz1nM7B99sR7hoT hrzUEP5Ii4ek0LNh7Jmk71q8lwAAT3C2bRHjrqk0p2Pj6qdbKtxFvec5Fz/4GKaXvYOo k5U6fCkagxbBYkHsJkmfGeNoQU1jUIBkqog4PD04FcQF/wico0mlQJoxlB4r8V188Bqb s8OB+xg0jLzPI36Z3hZCisAlmsNOJXlWnJwMVyWI7q2Sry3bTWuSykzHvzn0Oz2HyEwQ Zy9AzUhwedcJ129zlNf3rHKwwz+0NVBGBFG85seuuSy5bvBB9QyDe/6Eib0dhpDl+jhd lw8A== X-Gm-Message-State: AG10YORuP9WmvylXITbQWedmsPpXd8c58NQXvkb/dVGexgiPPg5Hnu3uPjGdcLYEb3OwwmmxQac= X-Received: by 10.182.125.129 with SMTP id mq1mr1932795obb.7.1453984781884; Thu, 28 Jan 2016 04:39:41 -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 133sm5359632oid.5.2016.01.28.04.39.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 04:39:41 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 28 Jan 2016 06:39:31 -0600 Message-Id: <1453984776-29674-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453984776-29674-1-git-send-email-bill.fischofer@linaro.org> References: <1453984776-29674-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 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