Searched refs:cmsg (Results 1 – 8 of 8) sorted by relevance
/reactos/dll/3rdparty/libtirpc/src/ |
H A D | rpc_callmsg.c | 50 xdr_callmsg(xdrs, cmsg) in xdr_callmsg() argument 52 struct rpc_msg *cmsg; 58 assert(cmsg != NULL); 72 IXDR_PUT_INT32(buf, cmsg->rm_xid); 74 if (cmsg->rm_direction != CALL) { 84 oa = &cmsg->rm_call.cb_cred; 91 oa = &cmsg->rm_call.cb_verf; 108 if (cmsg->rm_direction != CALL) { 118 oa = &cmsg->rm_call.cb_cred; 146 oa = &cmsg->rm_call.cb_verf; [all …]
|
H A D | rpc_prot.c | 257 xdr_callhdr(xdrs, cmsg) in xdr_callhdr() argument 259 struct rpc_msg *cmsg; 263 assert(cmsg != NULL); 265 cmsg->rm_direction = CALL; 266 cmsg->rm_call.cb_rpcvers = RPC_MSG_VERSION; 269 xdr_u_int32_t(xdrs, &(cmsg->rm_xid)) && 270 xdr_enum(xdrs, (enum_t *)&(cmsg->rm_direction)) && 271 xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_rpcvers)) && 272 xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_prog)) ) 273 return (xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_vers)));
|
H A D | clnt_dg.c | 476 struct cmsghdr *cmsg; local 504 for (cmsg = CMSG_FIRSTHDR (&msg); cmsg; 505 cmsg = CMSG_NXTHDR (&msg, cmsg)) 506 if (cmsg->cmsg_level == SOL_IP && cmsg->cmsg_type == IP_RECVERR) 508 e = (struct sock_extended_err *) CMSG_DATA(cmsg);
|
H A D | clnt_vc.c | 116 struct cmsghdr cmsg; member
|
/reactos/sdk/include/psdk/ |
H A D | ws2def.h | 597 #define WSA_CMSG_NXTHDR(msg, cmsg) \ argument 598 ( ((cmsg) == NULL) \ 600 : ( ( ((PUCHAR)(cmsg) + \ 601 WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len) + \ 606 : (LPWSACMSGHDR)((PUCHAR)(cmsg) + \ 607 WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len)) ) ) 628 #define WSA_CMSG_DATA(cmsg) ((PUCHAR)(cmsg) + WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR))) argument
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/ |
H A D | sockets.h | 172 #define CMSG_NXTHDR(mhdr, cmsg) \ argument 173 (((cmsg) == NULL) ? CMSG_FIRSTHDR(mhdr) : \ 174 (((u8_t *)(cmsg) + ALIGN_H((cmsg)->cmsg_len) \ 178 (struct cmsghdr *)((void*)((u8_t *)(cmsg) + \ 179 ALIGN_H((cmsg)->cmsg_len))))) 181 #define CMSG_DATA(cmsg) ((void*)((u8_t *)(cmsg) + \ argument
|
/reactos/drivers/network/tcpip/lwip/test/unit/api/ |
H A D | test_sockets.c | 555 struct cmsghdr *cmsg; in test_sockets_msgapi_cmsg() local 599 cmsg = CMSG_FIRSTHDR(&msg); in test_sockets_msgapi_cmsg() 600 fail_unless(cmsg != NULL); in test_sockets_msgapi_cmsg() 601 fail_unless(cmsg->cmsg_len > 0); in test_sockets_msgapi_cmsg() 602 fail_unless(cmsg->cmsg_level == IPPROTO_IP); in test_sockets_msgapi_cmsg() 603 fail_unless(cmsg->cmsg_type == IP_PKTINFO); in test_sockets_msgapi_cmsg() 606 pktinfo = (struct in_pktinfo*)CMSG_DATA(cmsg); in test_sockets_msgapi_cmsg() 612 cmsg = CMSG_NXTHDR(&msg, cmsg); in test_sockets_msgapi_cmsg() 613 fail_unless(cmsg == NULL); in test_sockets_msgapi_cmsg()
|
/reactos/modules/rostests/winetests/ws2_32/ |
H A D | sock.c | 2016 WSACMSGHDR *cmsg; in test_ip_pktinfo() local 2164 for (cmsg = WSA_CMSG_FIRSTHDR(&hdr); cmsg != NULL; cmsg = WSA_CMSG_NXTHDR(&hdr, cmsg)) in test_ip_pktinfo() 2166 if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_PKTINFO) in test_ip_pktinfo() 2168 struct in_pktinfo *pi = (struct in_pktinfo *)WSA_CMSG_DATA(cmsg); in test_ip_pktinfo()
|