Home
last modified time | relevance | path

Searched refs:mhdr (Results 1 – 22 of 22) sorted by relevance

/external/toybox/toys/pending/
Dip.c103 static int filter_nlmesg(int (*fun)(struct nlmsghdr *mhdr, char **), char **);
598 struct nlmsghdr mhdr; in linkupdate() member
628 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in linkupdate()
629 request.mhdr.nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; in linkupdate()
631 request.mhdr.nlmsg_flags |= NLM_F_CREATE|NLM_F_EXCL; in linkupdate()
632 request.mhdr.nlmsg_type = RTM_NEWLINK; in linkupdate()
634 request.mhdr.nlmsg_type = RTM_DELLINK; in linkupdate()
638 attr = NLMSG_TAIL(&request.mhdr); in linkupdate()
640 add_string_to_rtattr(&request.mhdr, sizeof(request), in linkupdate()
642 add_string_to_rtattr(&request.mhdr, sizeof(request), in linkupdate()
[all …]
/external/rust/crates/nix/src/sys/socket/
Dmod.rs424 mhdr: msghdr, field
433 mhdr: &self.mhdr in cmsgs()
442 mhdr: &'a msghdr field
458 let p = CMSG_NXTHDR(self.mhdr as *const _, hdr as *const _); in next()
1028 let mhdr = pack_mhdr_to_send(&mut cmsg_buffer[..], &iov, &cmsgs, addr); in sendmsg() localVariable
1030 let ret = unsafe { libc::sendmsg(fd, &mhdr, flags.bits()) }; in sendmsg()
1194 let (msg_controllen, mhdr) = unsafe { in recvmmsg()
1204 msg_hdr: mhdr, in recvmmsg()
1242 mhdr: msghdr, in read_mhdr()
1249 if mhdr.msg_controllen > 0 { in read_mhdr()
[all …]
/external/iputils/
Dping6.c1422 struct msghdr mhdr; in send_probe() local
1428 memset(&mhdr, 0, sizeof(mhdr)); in send_probe()
1429 mhdr.msg_name = &whereto; in send_probe()
1430 mhdr.msg_namelen = sizeof(struct sockaddr_in6); in send_probe()
1431 mhdr.msg_iov = &iov; in send_probe()
1432 mhdr.msg_iovlen = 1; in send_probe()
1433 mhdr.msg_control = cmsgbuf; in send_probe()
1434 mhdr.msg_controllen = cmsglen; in send_probe()
1436 cc = sendmsg(icmp_sock, &mhdr, confirm); in send_probe()
/external/openssh/
Ddefines.h582 #define CMSG_FIRSTHDR(mhdr) \ argument
583 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
584 (struct cmsghdr *)(mhdr)->msg_control : \
/external/rust/crates/libc/src/unix/haiku/
Dmod.rs1252 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1253 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() {
1254 (*mhdr).msg_control as *mut cmsghdr
1274 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
1277 return ::CMSG_FIRSTHDR(mhdr);
1281 let max = (*mhdr).msg_control as usize
1282 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/bsd/
Dmod.rs521 pub fn CMSG_FIRSTHDR(mhdr: *const ::msghdr) -> *mut ::cmsghdr {
522 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<::cmsghdr>() {
523 (*mhdr).msg_control as *mut ::cmsghdr
/external/rust/crates/libc/src/vxworks/
Dmod.rs1036 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
1040 let max = (*mhdr).msg_control as usize
1041 + (*mhdr).msg_controllen as usize;
1050 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1051 if (*mhdr).msg_controllen as usize > 0 {
1052 (*mhdr).msg_control as *mut cmsghdr
/external/rust/crates/libc/patches/
Dmissing.diff66 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
/external/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/
Dmod.rs1040 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
1045 let max = (*mhdr).msg_control as usize
1046 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/solarish/
Dmod.rs2122 pub fn CMSG_FIRSTHDR(mhdr: *const ::msghdr) -> *mut ::cmsghdr {
2123 if ((*mhdr).msg_controllen as usize) < ::mem::size_of::<::cmsghdr>() {
2126 (*mhdr).msg_control as *mut ::cmsghdr
2130 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
2134 return ::CMSG_FIRSTHDR(mhdr);
2138 let max = (*mhdr).msg_control as usize
2139 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
Dmod.rs1416 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
1420 return ::CMSG_FIRSTHDR(mhdr);
1424 let max = (*mhdr).msg_control as usize
1425 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
Dmod.rs1232 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
1236 return ::CMSG_FIRSTHDR(mhdr);
1240 let max = (*mhdr).msg_control as usize
1241 + (*mhdr).msg_controllen as usize;
/external/python/cpython2/Lib/plat-linux2/
DIN.py433 def CMSG_FIRSTHDR(mhdr): return \ argument
/external/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/
Dmod.rs1765 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
1769 return ::CMSG_FIRSTHDR(mhdr);
1773 let max = (*mhdr).msg_control as usize
1774 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/linux_like/
Dmod.rs1329 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1330 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() {
1331 (*mhdr).msg_control as *mut cmsghdr
/external/mdnsresponder/mDNSShared/
Duds_daemon.c240 ipc_msg_hdr mhdr[1]; member
375 reply->mhdr->version = VERSION; in create_reply()
376 reply->mhdr->datalen = (mDNSu32)datalen; in create_reply()
377 reply->mhdr->ipc_flags = 0; in create_reply()
378 reply->mhdr->op = op; in create_reply()
379 reply->mhdr->client_context = request->hdr.client_context; in create_reply()
380 reply->mhdr->reg_index = 0; in create_reply()
903 reply->mhdr->client_context = re->regrec_client_context; in regrecord_callback()
4645 ConvertHeaderBytes(rep->mhdr); in send_msg()
4646 nwriten = send(req->sd, (char *)&rep->mhdr + rep->nwriten, rep->totallen - rep->nwriten, 0); in send_msg()
[all …]
/external/rust/crates/libc/src/fuchsia/
Dmod.rs3238 pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr)
3244 >= __MHDR_END(mhdr) {
3251 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
3252 if (*mhdr).msg_controllen as ::size_t >= ::mem::size_of::<cmsghdr>() {
3253 (*mhdr).msg_control.cast()
3321 fn __MHDR_END(mhdr: *const msghdr) -> *mut c_uchar { in __MHDR_END()
3322 unsafe { (*mhdr).msg_control.offset((*mhdr).msg_controllen as isize) }.cast() in __MHDR_END()
/external/rust/crates/libc/src/unix/linux_like/emscripten/
Dmod.rs1693 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
1701 let max = (*mhdr).msg_control as usize
1702 + (*mhdr).msg_controllen as usize;
/external/python/cpython2/Lib/plat-atheos/
DIN.py451 def CMSG_FIRSTHDR(mhdr): return \ argument
/external/rust/crates/libc/src/unix/bsd/apple/
Dmod.rs3385 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr,
3388 return ::CMSG_FIRSTHDR(mhdr);
3392 let max = (*mhdr).msg_control as usize
3393 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs2293 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
2298 let max = (*mhdr).msg_control as usize
2299 + (*mhdr).msg_controllen as usize;
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs2816 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
2824 let max = (*mhdr).msg_control as usize
2825 + (*mhdr).msg_controllen as usize;