rpma_conn_...ivate_data(3)
β¨ rpma_conn_get_private_data β get a pointer to the connection's private data β¨
okay bestie, welcome to the RPMA Programmer's Manual π this one's a lil function from librpma called rpma_conn_get_private_data, and she's giving handshake gossip energy β she hands you a pointer to the private data the other side of your connection sent over. cute, right? π
πΈ NAME πΈ
rpma_conn_get_private_data β grab a pointer to the connection's private data π
π¦ SYNOPSIS π¦
#include <librpma.h>
struct rpma_conn;
struct rpma_conn_private_data;
int rpma_conn_get_private_data(const struct rpma_conn *conn,
struct rpma_conn_private_data *pdata);
β¨ DESCRIPTION β¨
so basically, rpma_conn_get_private_data() obtains the pointer to the private data that was given by the other side of the connection. that's it. that's the whole vibe. the peer slid you their data and this function is the lil messenger that tells you where it's at π«Ά
π₯ SECURITY WARNING π₯
no cap, this one's serious. the connection's private data is INSECURE. π
an attacker might modify all data transferred via the rdma_cm private data. like, all of it. not a vibe.
users should avoid using rpma_conn_get_private_data(3) and rpma_conn_req_get_private_data(3) API calls, and they should utilize TLS/SSL connections to transfer all configuration data between peers instead. protect your data, bestie, she deserves it π
π RETURN VALUE π
rpma_conn_get_private_data() returns 0 on success, or a negative error code on failure. and heads up β on failure, rpma_conn_get_private_data() does not set *pdata. so don't go reading that value like it's gonna be something. it's not. π
π ERRORS π
rpma_conn_get_private_data() can fail with the following error:
RPMA_E_INVALβconnorpdataisNULLπ (yeah, passingNULLis not the move, periodt)
π SEE ALSO π
and that's the whole page, bestie π go forth and pointer responsibly β¨
RPMA β 01 April 2024 β mwah, sending you the fluffiest of vibes from the RPMA Programmer's Manual π«Άππ§ββοΈ
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms