---
title: HccnRpingPayloadHead
description: "保存自定义payload数据头的数据结构。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/rpingdev/hccnrpingapi_07_0021.html
sourcePath: /source/zh/canncommercial/900/others/rpingdev/hccnrpingapi_07_0021.html
indexId: 665a246b1719856261d97c07ecd99c43ede1a5840301509e5c7941ed72ca780771
---
# HccnRpingPayloadHead

#### 功能

保存自定义payload数据头的数据结构。


#### 定义原型

```
typedef struct HccnRpingPayloadHeadDef {
char srcIp[64];        /* local(client) IP */
char dstIp[64];        /* remote(target) ip */
uint32_t payloadLen;   /* user defined payload length */
uint32_t resvd[3];
HccnRpingTimestamp t1; /* client send timestamp */
HccnRpingTimestamp t2; /* target recv timestamp */
HccnRpingTimestamp t3; /* target send timestamp */
HccnRpingTimestamp t4; /* client recv timestamp */
uint32_t rpingBatchId; /* batch ping task id */
uint8_t reserved[44];
} HccnRpingPayloadHead;
```
