Home
last modified time | relevance | path

Searched refs:hdr (Results 1 - 6 of 6) sorted by relevance

/test/xts/hats/kernel/syscalls/security/capget/
H A DCapGetApiTest.cpp69 struct __user_cap_header_struct hdr; in HWTEST_F() local
71 hdr.pid = g_pid; in HWTEST_F()
73 hdr.version = _LINUX_CAPABILITY_VERSION_1; in HWTEST_F()
74 int ret = capget(&hdr, data); in HWTEST_F()
77 hdr.version = _LINUX_CAPABILITY_VERSION_2; in HWTEST_F()
78 ret = capget(&hdr, data); in HWTEST_F()
81 hdr.version = _LINUX_CAPABILITY_VERSION_3; in HWTEST_F()
82 ret = capget(&hdr, data); in HWTEST_F()
85 hdr.version = _LINUX_CAPABILITY_VERSION_2; in HWTEST_F()
86 ret = capget(&hdr, nullpt in HWTEST_F()
100 struct __user_cap_header_struct hdr; HWTEST_F() local
121 struct __user_cap_header_struct hdr; HWTEST_F() local
142 struct __user_cap_header_struct hdr; HWTEST_F() local
[all...]
/test/xts/hats/kernel/syscalls/fileio/capset/
H A DCapsetApiTest.cpp69 struct __user_cap_header_struct hdr; in HWTEST_F() local
71 hdr.pid = g_pid; in HWTEST_F()
73 hdr.version = _LINUX_CAPABILITY_VERSION_1; in HWTEST_F()
74 int ret = capset(&hdr, data); in HWTEST_F()
78 hdr.version = _LINUX_CAPABILITY_VERSION_2; in HWTEST_F()
79 ret = capset(&hdr, data); in HWTEST_F()
83 hdr.version = _LINUX_CAPABILITY_VERSION_3; in HWTEST_F()
84 ret = capset(&hdr, data); in HWTEST_F()
98 struct __user_cap_header_struct hdr; in HWTEST_F() local
100 hdr in HWTEST_F()
119 struct __user_cap_header_struct hdr; HWTEST_F() local
140 struct __user_cap_header_struct hdr; HWTEST_F() local
[all...]
/test/xts/hats/hdf/wlan/hdi_service/
H A Dwlan_callback_impl.c41 struct ElementHeader *hdr = (struct ElementHeader *)ie; in PrintSsid() local
46 while ((ie + len) >= ((uint8_t *)hdr + sizeof(*hdr) + hdr->datalen)) { in PrintSsid()
47 pos = (uint8_t *)hdr + sizeof(*hdr); in PrintSsid()
48 if (hdr->id == WLAN_EID_SSID) { in PrintSsid()
49 if (hdr->datalen < MAX_SSID_LEN && memcpy_s(ssid, MAX_SSID_LEN, pos, hdr->datalen) == EOK) { in PrintSsid()
54 hdr in PrintSsid()
[all...]
/test/xts/device_attest_lite/services/core/network/
H A Dattest_coap.c39 pkt->hdr.code = code; in CoapCreateHead()
46 buf->rwBuffer[1] = (char)pkt->hdr.code; in CoapCreateHead()
86 pkt->hdr.tkl = pkt->tok.len & 0x0F; in CoapAddToken()
92 buf->rwBuffer[0] = (char)((uint8_t)(buf->rwBuffer[0] & 0xF0) | pkt->hdr.tkl); /* rwBuffer 0 is the first Byte */ in CoapAddToken()
93 if (memcpy_s(&buf->rwBuffer[buf->len], pkt->hdr.tkl, token->buffer, token->len) != 0) { in CoapAddToken()
372 pkt->hdr.len += len; in CoapCopyMessage()
566 const CoapHead* hdr, CoapBuffer *buffer) in CoapParseOptionAndPayload()
568 if (options == NULL || numOptions == NULL || payload == NULL || hdr == NULL || buffer == NULL) { in CoapParseOptionAndPayload()
574 const uint8_t* p = buffer->buffer + CODE_LEN + hdr->tkl; in CoapParseOptionAndPayload()
622 pkt->hdr in CoapDecode()
565 CoapParseOptionAndPayload(CoapOption* options, uint8_t* numOptions, CoapBuffer* payload, const CoapHead* hdr, CoapBuffer *buffer) CoapParseOptionAndPayload() argument
[all...]
H A Dattest_network.c893 coapPkt->hdr.len = msgLen; in DecodeLenTkl()
894 coapPkt->hdr.tkl = msgTkl; in DecodeLenTkl()
906 coapPkt->hdr.extendedLength.buffer = extendedLength; in DecodeLenTkl()
907 coapPkt->hdr.extendedLength.len = extendedLengthSize; in DecodeLenTkl()
924 if ((LENTKL_LEN + coapPkt.hdr.extendedLength.len + CODE_LEN + in RecvCoapMsg()
925 coapPkt.hdr.tkl + coapPkt.hdr.extendedLength.buffer) > MAX_MESSAGE_LEN) { in RecvCoapMsg()
929 size_t coapMessageLen = CODE_LEN + coapPkt.hdr.tkl + coapPkt.hdr.extendedLength.buffer; in RecvCoapMsg()
930 coapPkt.len = coapMessageLen + coapPkt.hdr in RecvCoapMsg()
[all...]
/test/xts/device_attest_lite/services/core/include/network/
H A Dattest_coap.h84 CoapHead hdr; member

Completed in 4 milliseconds