Home
last modified time | relevance | path

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

12

/third_party/rust/crates/libc/libc-test/test/
Dcmsg.rs16 pub fn cmsg_nxthdr(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr; in cmsg_nxthdr()
34 let mut mhdr: msghdr = unsafe { mem::zeroed() }; in test_cmsg_firsthdr() localVariable
35 mhdr.msg_control = 0xdeadbeef as *mut c_void; in test_cmsg_firsthdr()
36 let pmhdr = &mhdr as *const msghdr; in test_cmsg_firsthdr()
38 mhdr.msg_controllen = l; in test_cmsg_firsthdr()
62 let mut mhdr: msghdr = unsafe { mem::zeroed() }; in test_cmsg_nxthdr() localVariable
63 let pmhdr = &mhdr as *const msghdr; in test_cmsg_nxthdr()
66 mhdr.msg_control = pcmsghdr as *mut c_void; in test_cmsg_nxthdr()
67 mhdr.msg_controllen = (160 - start_ofs) as _; in test_cmsg_nxthdr()
/third_party/toybox/toys/pending/
Dip.c104 static int filter_nlmesg(int (*fun)(struct nlmsghdr *mhdr, char **), char **);
599 struct nlmsghdr mhdr; in linkupdate() member
629 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in linkupdate()
630 request.mhdr.nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; in linkupdate()
632 request.mhdr.nlmsg_flags |= NLM_F_CREATE|NLM_F_EXCL; in linkupdate()
633 request.mhdr.nlmsg_type = RTM_NEWLINK; in linkupdate()
635 request.mhdr.nlmsg_type = RTM_DELLINK; in linkupdate()
639 attr = NLMSG_TAIL(&request.mhdr); in linkupdate()
641 add_string_to_rtattr(&request.mhdr, sizeof(request), in linkupdate()
643 add_string_to_rtattr(&request.mhdr, sizeof(request), in linkupdate()
[all …]
/third_party/libcoap/src/
Dcoap_io.c676 struct msghdr mhdr; local
687 memset(&mhdr, 0, sizeof(struct msghdr));
688 memcpy (&mhdr.msg_name, &addr, sizeof (mhdr.msg_name));
689 mhdr.msg_namelen = session->addr_info.remote.size;
691 mhdr.msg_iov = iov;
692 mhdr.msg_iovlen = 1;
704 mhdr.msg_control = buf;
705 mhdr.msg_controllen = CMSG_SPACE(sizeof(struct in_pktinfo));
707 cmsg = CMSG_FIRSTHDR(&mhdr);
719 mhdr.msg_control = buf;
[all …]
/third_party/musl/include/sys/
Dsocket.h354 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
357 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
358 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
360 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/porting/linux/user/include/sys/
Dsocket.h358 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
361 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
362 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
364 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
Dsocket.h343 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
346 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
347 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
349 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dsocket.h352 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
355 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
356 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
358 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/porting/uniproton/kernel/include/sys/
Dsocket.h352 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
355 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
356 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
358 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dsocket.h354 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
357 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
358 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
360 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dsocket.h352 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
355 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
356 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
358 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/musl/ndk_musl_include/sys/
Dsocket.h356 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen) argument
359 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ argument
360 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
362 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct c… argument
/third_party/openssl/crypto/asn1/
Dasn_mime.c49 static int mime_hdr_addparam(MIME_HEADER *mhdr, const char *name, const char *value);
676 MIME_HEADER *mhdr = NULL, *new_hdr = NULL; in STACK_OF() local
685 if (mhdr && ossl_isspace(linebuf[0])) in STACK_OF()
718 mhdr = new_hdr; in STACK_OF()
748 mime_hdr_addparam(mhdr, ntmp, strip_ends(q)); in STACK_OF()
775 mhdr = new_hdr; in STACK_OF()
778 mime_hdr_addparam(mhdr, ntmp, strip_ends(q)); in STACK_OF()
841 MIME_HEADER *mhdr = NULL; in mime_hdr_new() local
856 mhdr = OPENSSL_malloc(sizeof(*mhdr)); in mime_hdr_new()
857 if (mhdr == NULL) in mime_hdr_new()
[all …]
/third_party/rust/crates/nix/src/sys/socket/
Dmod.rs610 mhdr: msghdr,
619 mhdr: &self.mhdr
628 mhdr: &'a msghdr
644 let p = CMSG_NXTHDR(self.mhdr as *const _, hdr as *const _);
1485 let mhdr = pack_mhdr_to_send(&mut cmsg_buffer[..], iov, cmsgs, addr); localVariable
1487 let ret = unsafe { libc::sendmsg(fd, &mhdr, flags.bits()) };
1783 std::slice::from_raw_parts(self.mhdr.msg_iov as *const _, self.mhdr.msg_iovlen as _)
1916 mhdr: msghdr,
1926 if mhdr.msg_controllen > 0 {
1927 debug_assert!(!mhdr.msg_control.is_null());
[all …]
/third_party/rust/crates/linux-raw-sys/src/
Dlib.rs105 pub unsafe fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { in CMSG_FIRSTHDR()
106 if (*mhdr).msg_controllen < size_of::<cmsghdr>() as _ { in CMSG_FIRSTHDR()
110 (*mhdr).msg_control as *mut cmsghdr in CMSG_FIRSTHDR()
113 pub unsafe fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr { in CMSG_NXTHDR()
119 let max = ((*mhdr).msg_control as usize) + ((*mhdr).msg_controllen as usize); in CMSG_NXTHDR()
/third_party/lwip/src/include/lwip/
Dsockets.h158 #define CMSG_FIRSTHDR(mhdr) \ argument
159 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
160 (struct cmsghdr *)(mhdr)->msg_control : \
163 #define CMSG_NXTHDR(mhdr, cmsg) \ argument
164 (((cmsg) == NULL) ? CMSG_FIRSTHDR(mhdr) : \
167 (u8_t *)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
/third_party/libbpf/src/
Dnetlink.c98 static int netlink_recvmsg(int sock, struct msghdr *mhdr, int flags) in netlink_recvmsg() argument
103 len = recvmsg(sock, mhdr, flags); in netlink_recvmsg()
129 struct msghdr mhdr = { in libbpf_netlink_recv() local
145 len = netlink_recvmsg(sock, &mhdr, MSG_PEEK | MSG_TRUNC); in libbpf_netlink_recv()
157 len = netlink_recvmsg(sock, &mhdr, 0); in libbpf_netlink_recv()
/third_party/rust/crates/libc/src/unix/haiku/
Dmod.rs1471 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1472 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() {
1473 (*mhdr).msg_control as *mut cmsghdr
1493 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
1496 return ::CMSG_FIRSTHDR(mhdr);
1500 let max = (*mhdr).msg_control as usize
1501 + (*mhdr).msg_controllen as usize;
/third_party/rust/crates/libc/src/vxworks/
Dmod.rs1043 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
1047 let max = (*mhdr).msg_control as usize
1048 + (*mhdr).msg_controllen as usize;
1057 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
1058 if (*mhdr).msg_controllen as usize > 0 {
1059 (*mhdr).msg_control as *mut cmsghdr
/third_party/rust/crates/libc/src/unix/bsd/
Dmod.rs545 pub fn CMSG_FIRSTHDR(mhdr: *const ::msghdr) -> *mut ::cmsghdr {
546 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<::cmsghdr>() {
547 (*mhdr).msg_control as *mut ::cmsghdr
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
Dmod.rs1690 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
1694 return ::CMSG_FIRSTHDR(mhdr);
1698 let max = (*mhdr).msg_control as usize
1699 + (*mhdr).msg_controllen as usize;
/third_party/rust/crates/libc/src/unix/solarish/
Dmod.rs2606 pub fn CMSG_FIRSTHDR(mhdr: *const ::msghdr) -> *mut ::cmsghdr {
2607 if ((*mhdr).msg_controllen as usize) < ::mem::size_of::<::cmsghdr>() {
2610 (*mhdr).msg_control as *mut ::cmsghdr
2614 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
2618 return ::CMSG_FIRSTHDR(mhdr);
2622 let max = (*mhdr).msg_control as usize
2623 + (*mhdr).msg_controllen as usize;
/third_party/rust/crates/libc/src/unix/nto/
Dmod.rs2517 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
2518 if (*mhdr).msg_controllen as usize >= ::mem::size_of::<cmsghdr>() {
2519 (*mhdr).msg_control as *mut cmsghdr
2525 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
2530 if next > (*mhdr).msg_control as usize + (*mhdr).msg_controllen as usize {
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/
Dmod.rs1538 pub fn CMSG_NXTHDR(mhdr: *const ::msghdr, cmsg: *const ::cmsghdr)
1543 let max = (*mhdr).msg_control as usize
1544 + (*mhdr).msg_controllen as usize;
/third_party/rust/crates/libc/src/fuchsia/
Dmod.rs3242 pub fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr)
3248 >= __MHDR_END(mhdr) {
3255 pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
3256 if (*mhdr).msg_controllen as ::size_t >= ::mem::size_of::<cmsghdr>() {
3257 (*mhdr).msg_control.cast()
3336 fn __MHDR_END(mhdr: *const msghdr) -> *mut c_uchar { in __MHDR_END()
3337 unsafe { (*mhdr).msg_control.offset((*mhdr).msg_controllen as isize) }.cast() in __MHDR_END()
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/
Dmod.rs1675 pub fn CMSG_NXTHDR(mhdr: *const msghdr,
1683 let max = (*mhdr).msg_control as usize
1684 + (*mhdr).msg_controllen as usize;

12