search for: cmsg

Displaying 20 results from an estimated 50 matches for "cmsg".

2005 Jan 22
0
chan_capi patch: app_capiFax modifications
...strcpy((char *)&B3conf->Infos[len1 + 2], headLine); B3conf->len = (unsigned char)(2 * sizeof(unsigned short) + len1 + len2 + 2); } static int capi_change_bchan_fax(struct ast_channel *c, char* stationID) { struct ast_capi_pvt *i = c->pvt->pvt; MESSAGE_EXCHANGE_ERROR error; _cmsg CMSG; B3_PROTO_FAXG3 B3conf; SetupB3Config(&B3conf, FAX_SFF_FORMAT, stationID); // Format ignored by eicon cards DISCONNECT_B3_REQ_HEADER(&CMSG, ast_capi_ApplID, ast_capi_MessageNumber++, 0); DISCONNECT_B3_REQ_NCCI(&CMSG) = i->NCCI; if...
2003 Oct 02
1
another Dovecot problem
Hi All-- First, thanks to Timo for solving my last issue. I got dovecot up and running on one of my machines, and it does exactly what I want. Now I'm trying to install dovecot on an older box (glibc 2.0.7 Linux kernel 2.0.36), and encountering some problems: -- firstly autoconf/automake does not seem to correctly deal with the madvise function on this system. It detects that we don't
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
2008 Feb 20
1
alignment problem in monitor_fdpass.c
...mm_send_fd and mm_receive_fd. Using -O2 used to align the tmp array on a 4 byte boundary and using -O does not. On architectures that do not like unaligned accesses this will break. An extraction of mm_send_fd() look something like this: ############################## struct msghdr msg; char tmp[CMSG_SPACE(sizeof(int))]; struct cmsghdr *cmsg; msg.msg_control = (caddr_t)tmp; cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_len = CMSG_LEN(sizeof(int)); ############################## The bus error happens on the last line when a value is written into cmsg_len. In effect it does: cmsg = tmp; cmsg-...
2010 Sep 09
2
configure error
...config.log: configure:19524: ./conftest configure:19524: $? = 1 configure: program exited with status 1 It seems, that the last changes in "src/lib/fdpass.c" are the reason. ----------------------------------------------------------------------------- 109a110 > void *cmsg_data; 132c133,134 < *((int *) CMSG_DATA(cmsg)) = send_fd; --- > cmsg_data = CMSG_DATA(cmsg); > *(int *)cmsg_data = send_fd; 166a169 > void *cmsg_data; 196,197c199,202 < else < *fd = *((int *) CMSG_DATA(cmsg));...
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]: ***
2004 Apr 28
4
Mysql Confusion..
Ok I know this may have been covered and I did have a look back in the archives but didn't find anthing so I am asking it now.. Many moons ago the MySQL CDR functions and MySQL Voicemail functions had to be removed from the main asterisk code because of licensing issues.. Now there is new MySQL stuff like MySQL FRIENDS for SIP and IAX definitions.. So how is it that these options
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...
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
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
..._port); ipudp_hdrs.udp.dest = htons(cfg_remote_port); commit 617cba04b94cae042f71eb37c0a620587783a660 Author: Mike Waychison <mikew at google.com> Date: Mon Jun 7 16:30:34 2010 -0700 [klibc] Add ancillary data structures and macros to sys/socket.h It turns out that all the CMSG_* structures and macros are hidden behind __KERNEL__ in current kernel.org kernels. Expose these macros in sys/socket.h for the time being to make them available. Signed-off-by: Mike Waychison <mikew at google.com> Signed-off-by: maximilian attems <max at stro.at>...
2002 May 29
2
OpenSSH 3.2.3p1 won't compile under IRIX 6.5.14
...DIR=\"/etc/openssh\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c monitor_fdpass.c cc-1020 cc: ERROR File = monitor_fdpass.c, Line = 58 The identifier "SCM_RIGHTS" is undefined. cmsg->cmsg_type = SCM_RIGHTS; ^ cc-1020 cc: ERROR File = monitor_fdpass.c, Line = 117 The identifier "SCM_RIGHTS" is undefined. if (cmsg->cmsg_type != SCM_RIGHTS) ^ 2 errors detected in the compilation of "monitor_f...
2002 May 28
1
Build problem on IRIX 6.5.16m
...H_PIDDIR=\"/etc/ssh\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/lib/ssh-rand-helper\" -DHAVE_CONFIG_H -c monitor_fdpass.c cc-1020 cc: ERROR File = monitor_fdpass.c, Line = 58 The identifier "SCM_RIGHTS" is undefined. cmsg->cmsg_type = SCM_RIGHTS; ^ cc-1020 cc: ERROR File = monitor_fdpass.c, Line = 117 The identifier "SCM_RIGHTS" is undefined. if (cmsg->cmsg_type != SCM_RIGHTS) ^ 2 errors detected in the compilation of "mon...
2009 Nov 15
2
Segmentation faults on SEXP conversion
.... The relevant C++ routine is as follows: void Rwrite(SEXP fd, SEXP msg) { int *ofd = INTEGER(fd); const char * omsg = CHAR(asChar(msg)); printf("[%i] %s",*ofd,omsg); } And the corresponding interface in R is as follows: ptest <- function() { cfd <- as.integer(2); cmsg <- as.character("Hi"); storage.mode(cfd) <- "integer"; storage.mode(cmsg) <- "character"; .Call("Rwrite", fd=cfd, msg=cmsg, PACKAGE="forkex" ); } Upon running the above code as a call to `...
2006 Nov 01
0
No subject
..., int fd) > { > #if defined(HAVE_SENDMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) > struct msghdr msg; > struct iovec vec; > char ch = '\0'; > int n; > #ifndef HAVE_ACCRIGHTS_IN_MSGHDR > char tmp[CMSG_SPACE(sizeof(int))]; > struct cmsghdr *cmsg; > #endif > > memset(&msg, 0, sizeof(msg)); > #ifdef HAVE_ACCRIGHTS_IN_MSGHDR > msg.msg_accrights = (caddr_t)&fd; > msg.msg_accrightslen = sizeof(fd); > #else > msg.msg_control = (caddr_t)t...
2023 Feb 16
0
[RFC PATCH v1 12/12] test/vsock: MSG_ZEROCOPY support for vsock_perf
...SOCK_BUF_BYTES; >+static bool zerocopy; > > static void error(const char *s) > { >@@ -247,15 +254,74 @@ static void run_receiver(unsigned long rcvlowat_bytes) > close(fd); > } > >+static void recv_completion(int fd) >+{ >+ struct sock_extended_err *serr; >+ char cmsg_data[128]; >+ struct cmsghdr *cm; >+ struct msghdr msg; >+ int ret; >+ >+ msg.msg_control = cmsg_data; >+ msg.msg_controllen = sizeof(cmsg_data); >+ >+ ret = recvmsg(fd, &msg, MSG_ERRQUEUE); >+ if (ret == -1) >+ return; >+ >+ cm = CMSG_FIRSTHDR(&msg); &g...
2006 Oct 15
1
v4.4p1: compile fix
Hello, I've attached a small unified diff fixing a compilation problem under linux v2.0.35: ? monitor_fdpass.c: <sys/un.h> need to be included in order to get the structures fro cmsg... defined. ? --with-mantype=man I would prefer this to be the default, but YMMV. THX for listening. CU Tom. (Thomas M.Ott) Germany -------------- next part -------------- --- openssh-4.4p1/monitor_fdpass.c.orig 2006-08-05 04:39:40.000000000 +0200 +++ openssh-4.4p1/monitor_fdpass.c 2006-10-15...
2015 Feb 01
2
Output to "raw console" rather than stdout/stderr?
...message will always reach the user. (You can use sink(..., type="output") and sink(..., type="message") to confirm this.) Does anyone know of a similar function that outputs the message to "raw console" *without* pausing for user interrupt? This far I came up with: cmsg <- function(...) { if (.Platform$OS.type == "windows") { pager <- "console" } else { pager <- "cat" } ## Write output to a temporary file fh <- tempfile() on.exit(file.remove(fh)) cat(..., file=fh) ## Display file such that it cann...
2003 Apr 19
4
[Bug 544] sshd w/privsep fails on Linux 2.0, mm_receive_fd: expected type 1 got 1074276337
...t debug1: session_new: session 0 debug3: mm_pty_allocate: waiting for MONITOR_ANS_PTY debug3: mm_request_receive_expect entering: type 26 debug3: mm_request_receive entering debug3: mm_request_send entering: type 26 mm_receive_fd: expected type 1 got 1074276337 It seems to be a bug in 2.0 kernels, cmsg_level and cmsg_type returned by recvmsg() make no sense. I built a test program (which I will attach) from code from monitor_fdpass.c. After the fd pass, a 2.0.38 kernel gives: (gdb) print *cmsg $1 = {cmsg_len = 16, cmsg_level = 134514016, cmsg_type = -1073742828, __cmsg_data = 0xbffffc08 &q...
2019 Apr 04
1
Proof of concept for GPU forwarding for Linux guest on Linux host.
Hi, This is a proof of concept of GPU forwarding for Linux guest on Linux host. I'd like to get comments and suggestions from community before I put more time on it. To summarize what it is: 1. It's a solution to bring GPU acceleration for Linux vm guest on Linux host. It could works with different GPU although the current proof of concept only works with Intel GPU. 2. The basic idea
2004 Apr 14
2
Problem creating new domain in unstable
...=============================== Traceback (most recent call last): File "/usr/bin/xc_dom_create.py", line 332, in ? (current_id, current_port) = make_domain() File "/usr/bin/xc_dom_create.py", line 238, in make_domain xend_response = xenctl.utils.xend_control_message(cmsg) File "/usr/lib/python2.2/site-packages/xenctl/utils.py", line 198, in xend_control_message ctl.sendto(message, ''/var/run/xend/management_sock'') socket.error: (2, ''No such file or directory'') ============================================== I w...