From patchwork Tue Feb 9 15:00:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 61541 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2095540lbl; Tue, 9 Feb 2016 07:04:28 -0800 (PST) X-Received: by 10.140.20.39 with SMTP id 36mr15809592qgi.15.1455030268682; Tue, 09 Feb 2016 07:04:28 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q18si13178885qkl.107.2016.02.09.07.04.28; Tue, 09 Feb 2016 07:04:28 -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 2AA256179F; Tue, 9 Feb 2016 15:04:28 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=E8mN58N3; 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 CDBF4617B4; Tue, 9 Feb 2016 15:01:03 +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 A9E5D6179F; Tue, 9 Feb 2016 15:00:44 +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 6D00561783 for ; Tue, 9 Feb 2016 15:00:38 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id m82so16392612oif.2 for ; Tue, 09 Feb 2016 07:00:38 -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=wmPm1QrILH4exE7FPcv9d+Xt+HueG1VDvs0szdZ8FQE=; b=E8mN58N3KrKx//Rvlms/eNdFjjxnpeXBKIABGqeSZT6+QC0kWSwr4x49oeQJODIy2C SEfFKQ3CZvOeaB82M3CTR41ixxEuDiq11Xrsp0lIe+dr/P66+bayftWb+E6l9RR2DtCR y/N3mPG9JXvmCbK5Do99CQB6KYS7qjnY+A0PY= 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=wmPm1QrILH4exE7FPcv9d+Xt+HueG1VDvs0szdZ8FQE=; b=ksERrlKYXqZ71xMX33Jy0SxgiRirIKx/Sf4bA/5Gsq4EhIyOFDKmjnhY0S2ET7qh+c o+nRlNvxBF4Ha226yz1OD1+kZPrBGs1reM2pk6Bc82UhGunUOLYhCoTq4m40xE/cLGYt tgzOfBDJu2jHjCuseS3uUcr6NuDbPzi06i8GsVLzs/ng42dl83mABMHFOJuEAEmCMvP1 +ZS9FYFOU46X55Ypzn6+TzGk3oEAR28gOF5CpKQ+reHzT+cLRm3RdXjMx/IZ6YPTvIqw jenzxxR6HWHhyfx+/cFDaGhl+HE+SQfrCD0MEZnHpfvwCc9/IRCbSts+4Wgq4w+rYK58 6/jw== X-Gm-Message-State: AG10YOT4PMXn4uSheaVanHDHNB9xCHXh9KSiomFMPKWGb9IZLaA8k7KrA8TzLVx04qkmUgqw9L4= X-Received: by 10.202.84.214 with SMTP id i205mr3836299oib.51.1455030037958; Tue, 09 Feb 2016 07:00:37 -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 k1sm20168269obz.22.2016.02.09.07.00.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Feb 2016 07:00:37 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 9 Feb 2016 09:00:26 -0600 Message-Id: <1455030031-4495-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455030031-4495-1-git-send-email-bill.fischofer@linaro.org> References: <1455030031-4495-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv6 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 Reviewed-by: Petri Savolainen --- 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