Displaying 20 results from an estimated 29 matches for "cmsghdr".
Did you mean:
msghdr
2002 Jan 21
1
help for tftp-hpa with libc5
...pe
recvfrom.c:105: warning: unsigned value < 0 is always 0
recvfrom.c:109: sizeof applied to an incomplete type
recvfrom.c:109: warning: unsigned value >= 0 is always 1
recvfrom.c:72: warning: unused variable `on'
make: *** [recvfrom.o] Error 1
===
=== recvfrom.c line 62 onwards
struct cmsghdr *cmptr;
union {
struct cmsghdr cm;
#ifdef IP_PKTINFO
char control[CMSG_SPACE(sizeof(struct in_addr)) +
CMSG_SPACE(sizeof(struct in_pktinfo))];
#else
char control[CMSG_SPACE(sizeof(struct in_addr))];
#endif
} control_un;
int on = 1;
#ifdef IP_PKTINFO
struct in_pkt...
2010 Mar 13
1
klibc build trouble
as the next klibc release 1.5.16 looks like shaping up,
I have a trouble to build that for Debian.
currently I build depent on linux-libc-dev, I don't know what
against I can build latest klibc, see
klibc fails to build due too:
make -C linux/ ARCH=x86_64 INSTALL_HDR_PATH=debian/tmp/usr/lib/klibc/ headers_install
make[3]: *** No rule to make target `headers_install'. Stop.
make[2]: ***
2003 Feb 06
1
No struct cmsghdr - what to do ?
Hi all,
If any perticular OS does not have 'struct cmsghdr' in sys/socket.h and also
it does not have access rights in 'struct msghdr', then how the compilation
should be done ? Does anybody had similar problem earlier ?
Regards,
Ajit
2002 Jun 27
1
(no subject)
Hi Phil,
answer to your questions:
> Which specific Slackware? Too embarrassed to say?
Really, really don't know exactly. :)
Installed approx. 5 yeras ago (maybe 4.5, 4.6, maybe 5.0 ... who knows now ... )
> Which OpenSSL? 0.9.6a? 0.9.6b? 0.9.6c? 0.9.6d?
Only info I found is 0.9.6. Let's suppose it's 0.9.6. ;)
> How about telling me how long you're going
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
.../sys/socket.h
@@ -159,6 +159,86 @@ struct msghdr {
unsigned msg_flags;
};
+/* Ancillary data structures and cmsg macros are also hidden under __KERNEL__ */
+#ifndef CMSG_FIRSTHDR
+/*
+ * POSIX 1003.1g - ancillary data object information
+ * Ancillary data consits of a sequence of pairs of
+ * (cmsghdr, cmsg_data[])
+ */
+
+struct cmsghdr {
+ __kernel_size_t cmsg_len; /* data byte count, including hdr */
+ int cmsg_level; /* originating protocol */
+ int cmsg_type; /* protocol-specific type */
+};
+
+/*
+ * Ancilliary data object information MACROS
+ * Table 5-14 of POSIX 1003.1g...
2002 May 17
0
openssh-3.2.2p1 on Linux 2.0
...--------------------------------------------
diff -ru openssh-3.2.2p1.orig/defines.h openssh-3.2.2p1/defines.h
--- openssh-3.2.2p1.orig/defines.h Fri Apr 26 02:56:07 2002
+++ openssh-3.2.2p1/defines.h Fri May 17 17:21:13 2002
@@ -410,6 +410,15 @@
#define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len))
#endif
+/* Linux 2.0 does not have CMSG_DATA, CMSG_FIRSTHDR */
+#ifndef CMSG_DATA
+#define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr))))
+#endif
+#ifndef CMSG_FIRSTHDR
+#define CMSG_FIRSTHDR(msg) (((msg)->msg_controllen) >= sizeof(...
2004 Jun 15
1
Re: [dovecot-cvs] dovecot/src/lib fdpass.c,1.28,1.29
...#ifndef CMSG_SPACE
> -# define CMSG_ALIGN(len) \
> +# if defined(_CMSG_DATA_ALIGN) && defined(_CMSG_HDR_ALIGN) /* for Solaris */
> +# define CMSG_ALIGN(len) _CMSG_DATA_ALIGN(len)
> +# define CMSG_SPACE(len) \
> + (_CMSG_DATA_ALIGN(len) + _CMSG_HDR_ALIGN(sizeof(struct cmsghdr)))
> +# define CMSG_LEN(len) \
> + (_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)) + (len))
> +# else
> +# define CMSG_ALIGN(len) \
> (((len) + sizeof(size_t) - 1) & ~(sizeof(size_t) - 1))
> -# define CMSG_SPACE(len) \
> +# define CMSG_SPACE(len) \
> (CMSG_ALIGN(...
2004 Jul 22
3
Dovecot auth problem on FreeBSD 4.10
Hello. I am trying to setup Dovecot on an Alpha running FreeBSD
4.10. I am simply trying the imap/pop3 protocols at this time. But
with both protocols the log message I get is:
pop3-login: fd_send(5) failed: Bad file descriptor
dovecot: child 275 (login) returned error 89
or
imap-login: fd_send(5) failed: Bad file descriptor
dovecot: child 275 (login) returned error 89
I have tried
2002 Apr 07
0
[Bug 206] -SNAP-20020405: build failures on AIX 3.2.5 with XLC 1.2.1.16
http://bugzilla.mindrot.org/show_bug.cgi?id=206
------- Additional Comments From Matthew_Clarke at mindlink.bc.ca 2002-04-08 09:44 -------
More investigation shows that adding "--with-cppflags=-D_BSD=44" triggers a
"struct cmsghdr" definition in the system headers, fixing the compilation error.
However, that triggers changes to the WIFEXITED() macro and friends, such that
they expect a "struct wait" instead of an "int", which breaks the compile of entropy.c.
Read some traffic on the openssh-unix-...
2008 Jul 29
1
Question regarding alignment patch
Contrast
http://cvsweb.mindrot.org/index.cgi/openssh/monitor_fdpass.c?r1=1.23;r2=1.24
with
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/monitor_fdpass.c.diff?r1=1.14&r2=1.15
The original replaces cmsgbuf.tmp with cmsgbuf.buf, while the -portable
version *adds* cmsgbuf.buf but retains cmsgbuf.tmp.
I assume this was an oversight, and cmsgbuf.tmp should be removed?
DES
--
Dag-Erling
2023 Nov 07
0
[PATCH AUTOSEL 6.1 11/18] vsock: read from socket's error queue
...#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9)
+/* MSG_ZEROCOPY notifications are encoded in the standard error format,
+ * sock_extended_err. See Documentation/networking/msg_zerocopy.rst in
+ * kernel source tree for more details.
+ */
+
+/* 'cmsg_level' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define SOL_VSOCK 287
+
+/* 'cmsg_type' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define VSOCK_RECVERR 1
+
#endif...
2023 Nov 07
0
[PATCH AUTOSEL 6.6 21/31] vsock: read from socket's error queue
...#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9)
+/* MSG_ZEROCOPY notifications are encoded in the standard error format,
+ * sock_extended_err. See Documentation/networking/msg_zerocopy.rst in
+ * kernel source tree for more details.
+ */
+
+/* 'cmsg_level' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define SOL_VSOCK 287
+
+/* 'cmsg_type' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define VSOCK_RECVERR 1
+
#endif...
2023 Nov 07
0
[PATCH AUTOSEL 6.5 20/30] vsock: read from socket's error queue
...#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9)
+/* MSG_ZEROCOPY notifications are encoded in the standard error format,
+ * sock_extended_err. See Documentation/networking/msg_zerocopy.rst in
+ * kernel source tree for more details.
+ */
+
+/* 'cmsg_level' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define SOL_VSOCK 287
+
+/* 'cmsg_type' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define VSOCK_RECVERR 1
+
#endif...
2002 Apr 17
4
openssh-SNAP-20020412 and AIX ...
Folks,
On AIX 4.3.3-08ML with the IBM C Compiler, and ssh configured to use
the prngd-socket "/dev/egd-pool", the make bombs out at:
/usr/bin/cc -g -I. -I. -I/usr/local/include
-DSSHDIR=\"/usr/local/etc\"
-D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"
2009 Sep 11
1
[PATCH] guestfish: Redirect stdout when executing remote commands
...h>
#include <rpc/xdr.h>
@@ -49,6 +50,124 @@ create_sockpath (pid_t pid, char *sockpath, int len, struct sockaddr_un *addr)
strcpy (addr->sun_path, sockpath);
}
+static const socklen_t controllen = CMSG_LEN (sizeof (int));
+
+static void
+receive_stdout (int s)
+{
+ static struct cmsghdr *cmptr = NULL, *h;
+ struct msghdr msg;
+ struct iovec iov[1];
+
+ /* Our 1 byte buffer */
+ char buf[1];
+
+ if (NULL == cmptr) {
+ cmptr = malloc (controllen);
+ if (NULL == cmptr) {
+ perror ("malloc");
+ exit (1);
+ }
+ }
+
+ /* Don't spe...
2015 Feb 26
4
Call for testing: OpenSSH 6.8
...14,43 +1014,44 @@ fillbuf(int fd, unsigned char *buf, size_t *bufpos)
void
fdpass(int nfd)
{
- struct msghdr mh;
+#if defined(HAVE_SENDMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR))
+ struct msghdr msg;
+#ifndef HAVE_ACCRIGHTS_IN_MSGHDR
union {
struct cmsghdr hdr;
char buf[CMSG_SPACE(sizeof(int))];
} cmsgbuf;
struct cmsghdr *cmsg;
- struct iovec iov;
- char c = '\0';
- ssize_t r;
+#endif
+ struct iovec vec;
+ char ch = '\0';
struct pollfd pfd;
+ ssize_t r;
- /* Avoid obvious stupidity */
- if (isatty(STDOUT_FILENO))
- errx(1,...
2015 Feb 25
2
Call for testing: OpenSSH 6.8
On 24/02/15 21:56, Tim Rice wrote:
> On Wed, 25 Feb 2015, Damien Miller wrote:
>
> | On Tue, 24 Feb 2015, Tom G. Christensen wrote:
> |
> | > I've switched to HEAD in the git repo and it now builds on Solaris
> | > 2.6, 7, 8 and 9 but the testsuite still cannot be built due to the
> | > missing <err.h>.
>
> The err.h issue is fixes but there still
2002 Apr 10
8
[Bug 213] -SNAP-20020410 fails to compile under AIX 4.3.3
http://bugzilla.mindrot.org/show_bug.cgi?id=213
------- Additional Comments From stevesk at pobox.com 2002-04-11 08:57 -------
can you provide cpp output from the file (e.g., cc -E)
for the tmp[] definition?
can someone with some AIX knowledge help with this?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...uncs.h"
+#include <linux/socket.h>
/** If no timeout is specified then use a 60 second select timeout */
#define SELECT_TIMEOUT 60
@@ -1722,6 +1723,82 @@
writefd(f, str, len);
}
+int send_fd(int socket, int fd_to_send)
+{
+ struct msghdr message;
+ struct iovec iov[1];
+ struct cmsghdr *control_message = NULL;
+ char buffer[CMSG_SPACE(sizeof(int))], data[1];
+ int ret;
+
+ memset(&message, 0, sizeof(struct msghdr));
+ memset(buffer, 0, CMSG_SPACE(sizeof(int)));
+
+ data[0] = 'F';
+ iov[0].iov_base = data;
+ iov[0].iov_len = 1;
+
+ message.msg_iov = iov;
+ message.msg_...
2002 Apr 06
0
[Bug 206] New: -SNAP-20020405: build failures on AIX 3.2.5 with XLC 1.2.1.16
...6-043 (S) Sizeof operator cannot be used with
functions, void, bit-fields, incomplete types, or arrays of unknown size.
monitor_fdpass.c line 42:
char tmp[CMSG_SPACE(sizeof(int))];
CMSG_SPACE is being picked up from defines.h, line 464:
#define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) +
__CMSG_ALIGN(len))
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.