From patchwork Fri Apr 25 09:16:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 29038 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9A822202E6 for ; Fri, 25 Apr 2014 09:16:54 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id i50sf6442821qgf.1 for ; Fri, 25 Apr 2014 02:16:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=gTW99ty1yRX/YsR5spgAjh+QYoBR69IysOVATckfiGA=; b=Vrr08VZHL9soFkLaCPEPtSvNrttGndBA+kWknYGQFQkQhnH+lfiXcY2Sb67M1qqeQP VZ4aT1z0PbVUIhpeFlSJmKAIn0d2UY/DyPu5t/ZxM4/6UDmhH/g/DIxQvJsHktuBWm9o 2gyGzdakvh4YAyDJtPXIQVgZQbp6qCr6O4zDlRVW6mWqzYZCLBM2jGJHo1DyD0FaC2vR CLa2nLI30oMwvSE9GIRQUYyC7mvIxLxcOsaKgdY6z3paxdwIAAGEF0m2bqSxNrGj61ui BSpuEb2SnNWtui/5QCD6Rb7rOKu2Zb5i2boi0Ttn2fXof4AV8v26j2V4j0g/VJaGPuA9 Rf/w== X-Gm-Message-State: ALoCoQm+1MFq+PYtT7A0iZ7cX+TOWijG23c7b+5dfg0V2v5Rc2TsYJQD6QXtp6mKpQiHyUyJ6YYf X-Received: by 10.236.182.230 with SMTP id o66mr3243154yhm.12.1398417414434; Fri, 25 Apr 2014 02:16:54 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.213 with SMTP id u79ls1421618qge.79.gmail; Fri, 25 Apr 2014 02:16:54 -0700 (PDT) X-Received: by 10.220.103.141 with SMTP id k13mr5783086vco.25.1398417414318; Fri, 25 Apr 2014 02:16:54 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id fn10si1565032vdc.9.2014.04.25.02.16.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 02:16:54 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so4402597vcb.33 for ; Fri, 25 Apr 2014 02:16:54 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr5836921vcm.11.1398417414217; Fri, 25 Apr 2014 02:16:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp82408vcb; Fri, 25 Apr 2014 02:16:53 -0700 (PDT) X-Received: by 10.140.96.182 with SMTP id k51mr9428527qge.60.1398417413416; Fri, 25 Apr 2014 02:16:53 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 4si3517289qcl.68.2014.04.25.02.16.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 02:16:53 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WdcFA-0003x5-UG; Fri, 25 Apr 2014 09:16:28 +0000 Received: from mail-lb0-f170.google.com ([209.85.217.170]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WdcF3-0003x0-L0 for lng-odp@lists.linaro.org; Fri, 25 Apr 2014 09:16:21 +0000 Received: by mail-lb0-f170.google.com with SMTP id s7so2910594lbd.1 for ; Fri, 25 Apr 2014 02:16:39 -0700 (PDT) X-Received: by 10.112.209.5 with SMTP id mi5mr4684757lbc.30.1398417399094; Fri, 25 Apr 2014 02:16:39 -0700 (PDT) Received: from maxim-lap.localhost.onion ([92.39.133.154]) by mx.google.com with ESMTPSA id x5sm7493526lbk.5.2014.04.25.02.16.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 02:16:38 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 25 Apr 2014 13:16:32 +0400 Message-Id: <1398417392-5292-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 Subject: [lng-odp] [PATCH] make odp_icmp comments doxygen friendly X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Maxim Uvarov --- include/helper/odp_icmp.h | 88 +++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/include/helper/odp_icmp.h b/include/helper/odp_icmp.h index bfa356d..a9acebd 100644 --- a/include/helper/odp_icmp.h +++ b/include/helper/odp_icmp.h @@ -27,65 +27,65 @@ extern "C" { /** ICMP header */ typedef struct ODP_PACKED { - uint8_t type; /** message type */ - uint8_t code; /** type sub-code */ - uint16be_t chksum; + uint8_t type; /**< message type */ + uint8_t code; /**< type sub-code */ + uint16be_t chksum; /**< checksum of icmp header */ union { struct { uint16be_t id; uint16be_t sequence; - } echo; /** echo datagram */ - uint32be_t gateway; /** gateway address */ + } echo; /**< echo datagram */ + uint32be_t gateway; /**< gateway address */ struct { uint16be_t __unused; uint16be_t mtu; - } frag; /** path mtu discovery */ - } un; + } frag; /**< path mtu discovery */ + } un; /**< icmp sub header */ } odp_icmphdr_t; -#define ICMP_ECHOREPLY 0 /** Echo Reply */ -#define ICMP_DEST_UNREACH 3 /** Destination Unreachable */ -#define ICMP_SOURCE_QUENCH 4 /** Source Quench */ -#define ICMP_REDIRECT 5 /** Redirect (change route) */ -#define ICMP_ECHO 8 /** Echo Request */ -#define ICMP_TIME_EXCEEDED 11 /** Time Exceeded */ -#define ICMP_PARAMETERPROB 12 /** Parameter Problem */ -#define ICMP_TIMESTAMP 13 /** Timestamp Request */ -#define ICMP_TIMESTAMPREPLY 14 /** Timestamp Reply */ -#define ICMP_INFO_REQUEST 15 /** Information Request */ -#define ICMP_INFO_REPLY 16 /** Information Reply */ -#define ICMP_ADDRESS 17 /** Address Mask Request */ -#define ICMP_ADDRESSREPLY 18 /** Address Mask Reply */ -#define NR_ICMP_TYPES 18 +#define ICMP_ECHOREPLY 0 /**< Echo Reply */ +#define ICMP_DEST_UNREACH 3 /**< Destination Unreachable */ +#define ICMP_SOURCE_QUENCH 4 /**< Source Quench */ +#define ICMP_REDIRECT 5 /**< Redirect (change route) */ +#define ICMP_ECHO 8 /**< Echo Request */ +#define ICMP_TIME_EXCEEDED 11 /**< Time Exceeded */ +#define ICMP_PARAMETERPROB 12 /**< Parameter Problem */ +#define ICMP_TIMESTAMP 13 /**< Timestamp Request */ +#define ICMP_TIMESTAMPREPLY 14 /**< Timestamp Reply */ +#define ICMP_INFO_REQUEST 15 /**< Information Request */ +#define ICMP_INFO_REPLY 16 /**< Information Reply */ +#define ICMP_ADDRESS 17 /**< Address Mask Request */ +#define ICMP_ADDRESSREPLY 18 /**< Address Mask Reply */ +#define NR_ICMP_TYPES 18 /**< Number of icmp types */ /** Codes for UNREACH. */ -#define ICMP_NET_UNREACH 0 /** Network Unreachable */ -#define ICMP_HOST_UNREACH 1 /** Host Unreachable */ -#define ICMP_PROT_UNREACH 2 /** Protocol Unreachable */ -#define ICMP_PORT_UNREACH 3 /** Port Unreachable */ -#define ICMP_FRAG_NEEDED 4 /** Fragmentation Needed/DF set */ -#define ICMP_SR_FAILED 5 /** Source Route failed */ -#define ICMP_NET_UNKNOWN 6 -#define ICMP_HOST_UNKNOWN 7 -#define ICMP_HOST_ISOLATED 8 -#define ICMP_NET_ANO 9 -#define ICMP_HOST_ANO 10 -#define ICMP_NET_UNR_TOS 11 -#define ICMP_HOST_UNR_TOS 12 -#define ICMP_PKT_FILTERED 13 /** Packet filtered */ -#define ICMP_PREC_VIOLATION 14 /** Precedence violation */ -#define ICMP_PREC_CUTOFF 15 /** Precedence cut off */ -#define NR_ICMP_UNREACH 15 /** instead of hardcoding immediate value */ +#define ICMP_NET_UNREACH 0 /**< Network Unreachable */ +#define ICMP_HOST_UNREACH 1 /**< Host Unreachable */ +#define ICMP_PROT_UNREACH 2 /**< Protocol Unreachable */ +#define ICMP_PORT_UNREACH 3 /**< Port Unreachable */ +#define ICMP_FRAG_NEEDED 4 /**< Fragmentation Needed/DF set*/ +#define ICMP_SR_FAILED 5 /**< Source Route failed */ +#define ICMP_NET_UNKNOWN 6 /**< Network Unknown */ +#define ICMP_HOST_UNKNOWN 7 /**< Host Unknown */ +#define ICMP_HOST_ISOLATED 8 /**< Host Isolated */ +#define ICMP_NET_ANO 9 /**< ICMP_NET_ANO */ +#define ICMP_HOST_ANO 10 /**< ICMP_HOST_ANO */ +#define ICMP_NET_UNR_TOS 11 /**< ICMP_NET_UNR_TOS */ +#define ICMP_HOST_UNR_TOS 12 /**< ICMP_HOST_UNR_TOS */ +#define ICMP_PKT_FILTERED 13 /**< Packet filtered */ +#define ICMP_PREC_VIOLATION 14 /**< Precedence violation */ +#define ICMP_PREC_CUTOFF 15 /**< Precedence cut off */ +#define NR_ICMP_UNREACH 15 /**< instead of hardcoding immediate value */ /** Codes for REDIRECT. */ -#define ICMP_REDIR_NET 0 /** Redirect Net */ -#define ICMP_REDIR_HOST 1 /** Redirect Host */ -#define ICMP_REDIR_NETTOS 2 /** Redirect Net for TOS */ -#define ICMP_REDIR_HOSTTOS 3 /** Redirect Host for TOS */ +#define ICMP_REDIR_NET 0 /**< Redirect Net */ +#define ICMP_REDIR_HOST 1 /**< Redirect Host */ +#define ICMP_REDIR_NETTOS 2 /**< Redirect Net for TOS */ +#define ICMP_REDIR_HOSTTOS 3 /**< Redirect Host for TOS */ /** Codes for TIME_EXCEEDED. */ -#define ICMP_EXC_TTL 0 /** TTL count exceeded */ -#define ICMP_EXC_FRAGTIME 1 /** Fragment Reass time exceeded */ +#define ICMP_EXC_TTL 0 /**< TTL count exceeded */ +#define ICMP_EXC_FRAGTIME 1 /**< Fragment Reass time exceeded*/ /** @internal Compile time assert */ ODP_ASSERT(sizeof(odp_icmphdr_t) == ODP_ICMPHDR_LEN, ODP_ICMPHDR_T__SIZE_ERROR);