Lines Matching refs:msg
138 char msg[12] = "hello world\0"; in test_sockmap_ktls_offload() local
145 sent = send(c, msg, sizeof(msg), 0); in test_sockmap_ktls_offload()
154 ASSERT_OK(memcmp(msg, rcv, sizeof(msg)), "data mismatch"); in test_sockmap_ktls_offload()
170 char msg[12] = "hello world\0"; in test_sockmap_ktls_tx_cork() local
197 skel->bss->cork_byte = sizeof(msg); in test_sockmap_ktls_tx_cork()
205 off = sizeof(msg) / 2; in test_sockmap_ktls_tx_cork()
206 sent = send(c, msg, off, 0); in test_sockmap_ktls_tx_cork()
215 sent = send(c, msg + off, sizeof(msg) - off, 0); in test_sockmap_ktls_tx_cork()
216 if (!ASSERT_EQ(sent, sizeof(msg) - off, "send remaining data")) in test_sockmap_ktls_tx_cork()
221 !ASSERT_EQ(recvd, sizeof(msg) + push_len, "check length mismatch")) in test_sockmap_ktls_tx_cork()
230 if (!ASSERT_EQ(rcv[i], msg[j], "data mismatch")) in test_sockmap_ktls_tx_cork()
248 struct msghdr msg = {0}; in test_sockmap_ktls_tx_no_buf() local
297 msg.msg_iov = iov; in test_sockmap_ktls_tx_no_buf()
298 msg.msg_iovlen = 2; in test_sockmap_ktls_tx_no_buf()
301 err = sendmsg(c, &msg, MSG_DONTWAIT); in test_sockmap_ktls_tx_no_buf()
319 char msg[37] = "0123456789abcdefghijklmnopqrstuvwxyz\0"; in test_sockmap_ktls_tx_pop() local
370 sent = send(c, msg, sizeof(msg), 0); in test_sockmap_ktls_tx_pop()
371 if (!ASSERT_EQ(sent, sizeof(msg), "send(msg)")) in test_sockmap_ktls_tx_pop()
375 if (!ASSERT_EQ(recvd, sizeof(msg) - pop_policy[i].pop_len, "pop len mismatch")) in test_sockmap_ktls_tx_pop()
383 for (m = 0, r = 0; m < sizeof(msg);) { in test_sockmap_ktls_tx_pop()
391 if (!ASSERT_EQ(msg[m], rcv[r], "data mismatch")) in test_sockmap_ktls_tx_pop()