From patchwork Wed Jan 27 20:12:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60643 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp61004lbb; Wed, 27 Jan 2016 12:13:07 -0800 (PST) X-Received: by 10.140.22.210 with SMTP id 76mr37528900qgn.70.1453925587264; Wed, 27 Jan 2016 12:13:07 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t6si7563272qht.91.2016.01.27.12.13.06; Wed, 27 Jan 2016 12:13:07 -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 B9A5F618D1; Wed, 27 Jan 2016 20:13:06 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=L25ssioc; 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_H3, RCVD_IN_MSPIKE_WL, 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 AF035618C9; Wed, 27 Jan 2016 20:12:27 +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 B417861606; Wed, 27 Jan 2016 20:12:22 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by lists.linaro.org (Postfix) with ESMTPS id D6304615DE for ; Wed, 27 Jan 2016 20:12:21 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id o124so12982170oia.3 for ; Wed, 27 Jan 2016 12:12:21 -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=sAmofTZB7VoJi2YvSw4/XyWV8wVhrIT1nZ+hOcXEP8Y=; b=L25ssiocv1WaKcje9oZUTJk01bfl6+iCSIYWoS/33dBOHqGAZkVWWIQJsKo/Mh5DBL riHTJXkO+P4zF56711vVuZ8RKNC/vp52+CNBiQ9ThxvdVkaUM2jTi22Uwt9rotZVtMZQ Ql/hkQfTBu1aP4XherCGIK1V8ilpg9PhsoX48= 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=sAmofTZB7VoJi2YvSw4/XyWV8wVhrIT1nZ+hOcXEP8Y=; b=aGV8SK/svwNIATgpL0S6NDmrIlr9VtKXDM5LsOER7wMjXqG5AsWd+/rnetxFNrWprC lwm//bYnTYeAShJBpyM0h/L1paafYCNJQueJ00tMCKKijc95vmV2p+C4mRQ3w63E4RYp 2jHJWQj2r4TZRiPedTRlvm1VQGYMi52kcTVX0zuy9wPuEu79ELWs80b9bFLER648NLNa xFCt3eZdMhLXz5VN1lxyTuYIWRTZlojd5nPR/jd/wW3uuzK1cB56sndfwMinjlReYzSG 1McM7PPutegwGZ9zKzgNTmkFCvcP57Huwe1MiiLy5GAht3TJ0nhYuDvMQTdrYdkAPcMr CUVg== X-Gm-Message-State: AG10YORF3nUk8KRNGSp+JetctsEmz/h58mMrs6UjzCN5idEDq+LfqJH8lYgaTwyvp28DfrfKtJw= X-Received: by 10.202.222.7 with SMTP id v7mr3715004oig.79.1453925541423; Wed, 27 Jan 2016 12:12:21 -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 a1sm2565930obt.0.2016.01.27.12.12.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jan 2016 12:12:20 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 27 Jan 2016 14:12:09 -0600 Message-Id: <1453925534-29840-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453925534-29840-1-git-send-email-bill.fischofer@linaro.org> References: <1453925534-29840-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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..a9fd07a 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 as broadcast if it begins + * FF:FF: + * * @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