search for: so_typ

Displaying 17 results from an estimated 17 matches for "so_typ".

Did you mean: so_type
1999 Sep 30
1
A little utility for checking socket settings
...ow-water mark * getsocketopts: could not test SO_SNDLOWAT, send low-water mark * getsocketopts: could not test SO_RCVTIMEO, receive timeout * getsocketopts: could not test SO_SNDTIMEO, send timeout * Default SO_RCVBUF, receive buffer size = 32768 * Default SO_ERROR, error status = 0 * Default SO_TYPE, socket type = 2 * Default TCP_MAXSEG, maximum segment size (mss) = 536 * Default TCP_NODELAY, send even tiny packets = 0 */ #include <stdio.h> #include <sys/types.h> /* for getuid() */ #include <unistd.h> #include <sys/socket.h> /* For socket() */ #include <netinet/i...
2004 Aug 06
1
icecast2 is killed when client connects (on sparc32)
...([{fd=3, events=POLLIN}], 1, 100) = 0 poll([{fd=3, events=POLLIN}], 1, 100) = 0 poll([{fd=3, events=POLLIN}], 1, 100) = 0 poll([{fd=3, events=POLLIN}], 1, 100) = 0 poll([{fd=3, events=POLLIN}], 1, 100) = 0 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 100) = 1 getsockopt(3, SOL_SOCKET, SO_TYPE, [1], [4]) = 0 accept(3, {sin_family=AF_INET, sin_port=htons(32992), sin_addr=inet_addr("192.168.200.201")}}, [16]) = 9 rt_sigtimedwait(ptrace: umoven: Input/output error [?], ptrace: umoven: Input/output error 0xffff, 0x80, -268442784) = 0 rt_sigtimedwait(ptrace: umoven: Input/output e...
1998 May 14
1
samba main cvs branch seems to be broken on 64-bit boxes.....
hi there :) the code in util.c seems to have some bugs w/regard to compilation on 64-bit machines. in this case, the hardware is an Alpha running redhat 4.2 with pam turned off in the makefile. i get a whole series of errors, all of which say "passing arg 'n' of 'function' from incompatible pointer type. in util.c, checked out of the main branch the day before yesterday,
2004 Nov 21
1
mac_portacl and automatic port allocation
..._pcb.h> #include <vm/vm.h> @@ -441,6 +442,7 @@ struct label *socketlabel, struct sockaddr *sockaddr) { struct sockaddr_in *sin; + struct inpcb *inp = sotoinpcb(so); int family, type; u_int16_t port; @@ -467,6 +469,11 @@ type = so->so_type; sin = (struct sockaddr_in *) sockaddr; port = ntohs(sin->sin_port); + /* If port == 0 and user hasn't asked for IP_PORTRANGELOW return + success */ + printf("mac_portacl: port %d, inp_flags: 0x%X\n", port, inp->inp_flags); + if (port ==...
2016 Apr 07
5
UDP de-fragmentation problem
...in_port=htons(10001), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 getsockname(7, {sa_family=AF_INET, sin_port=htons(10001), sin_addr=inet_addr("0.0.0.0")}, [16]) = 0 getpeername(7, 0x7ffdf3073470, [16]) = -1 ENOTCONN (Transport endpoint is not connected) getsockopt(7, SOL_SOCKET, SO_TYPE, [2], [4]) = 0 select(8, [3 7], [], [], NULL) = 1 (in [7]) recvfrom(7, 0x7ffdf3072e1b, 1, 2, 0x7ffdf3072e20, 0x7ffdf3072e1c) = -1 EAGAIN (Resource temporarily unavailable) select(8, [3 7], [], [], NULL [...] And after the netfilter modules are loaded: [...] socket(PF_INET, SOCK_DGRAM|SOC...
2013 Oct 22
1
[LLVMdev] System call miscompilation using the fast register allocator
...syscall Interestingly this sets R9, which would take the 6th argument if this was a 6-arg call, suggesting the syscall sequence is being special-cased as it is not mentioned at all in the IR for the call. This works as expected, yielding correct strace: setsockopt(-1, SOL_SOCKET, SO_TYPE, [1], 4) (TCP_CORK == SO_TYPE). Above, I said I suspected that the list of "asm sideeffect" calls doesn't actually express the right constraints. Is that true? Considering the line that actually makes the system call already specifies register constraints, is there any need for t...
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
...len) < 0) { + close(s); + return -1; } - rprintf(FERROR, RSYNC_NAME ": open inbound socket on port %d failed: " - "%s\n", - port, - strerror(errno)); - - freeaddrinfo(all_ai); - return -1; + return s; } @@ -371,24 +342,52 @@ return(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&v, &l) == 0); } +#define MAXSOCK 20 void start_accept_loop(int port, int (*fn)(int )) { - int s; + int s[MAXSOCK]; + int nsock = 0; + int maxsock = -1; extern char *bind_address; extern int default_af_hint; + struct addrinfo hints, *res, *res0; + char portstr[NI_MAXSER...
2012 Apr 25
3
Semantics of "smb ports = 0"
Hello, The qemu emulator has a feature to fork a samba instance for file sharing with the emulated hosts. It communicates with smbd over stdin. The generated configuration file contains a "smb ports = 0" directive to prevent smbd from listening to any ports. Unfortunately, with at least Samba 3.6.4 this causes a segfault instead: [0] vostro:/tmp/qemu-smb.6836-0# smbd -i -s smb.conf
2008 Aug 11
0
rsync failure with error 12
...], SA_RESTORER|SA_NOCLDSTOP, 0xb7e4cfa8}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [HUP INT USR1 USR2 TERM CHLD], NULL, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGXFSZ, {SIG_IGN}, NULL, 8) = 0 getcwd("/etc", 4095) = 5 getsockopt(0, SOL_SOCKET, SO_TYPE, 0xbf9d4564, 0xbf9d4560) = -1 ENOTSOCK (Socket operation on non-socket) open("/etc/rsyncd.conf", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=157, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f83000 read(3, "[tndc...
2013 Sep 27
0
Wine release 1.7.3
...n the parameters are zero in WSASocket. ws2_32: Auto detect the socket type and family based on the protocol. ws2_32: Filter invalid socket parameters and return the appropriate error. ws2_32: Do not allow socket creation if WSAStartup was not called. ws2_32: Make getsockopt(SO_TYPE) convert the returned socket type. ws2_32/tests: Mark WinNT result as broken. ws2_32: ConnectEx should not work on unbound socket. server: Fix a comment. ws2_32: Add missing else to getsockopt(SO_ACCEPTCONN). ws2_32: Fix some parameters checking in AcceptEx. Dmitry T...
2019 Jun 07
4
[nbdkit PATCH v2 0/2] Reduce network overhead with MSG_MORE/corking
This time around, the numbers are indeed looking better than in v1; and I like the interface better. Eric Blake (2): server: Prefer send() over write() server: Group related transmission send()s server/internal.h | 7 +++- server/connections.c | 51 +++++++++++++++++++++++++--- server/crypto.c | 11 ++++--
2004 Sep 21
2
2.6.2 rsync --daemon is not working for me
Hi! I'm unable to write with remote rsync in daemon mode. ********* My configuration: rsync 2.6.2 Linux 2.4.20-alt16-up (ALTLinux www.altlinux.org) (There is owl-patch in ALTLinux-kernel) ========== /etc/rsyncd.conf ============= log file = /var/log/rsync [routers] comment = Our Backups path = /mnt/backup/routers uid = archiver gid = archiver use chroot = true read only = false list = true
2008 Feb 06
1
Rsync Hang with multiple files
..., SA_RESTORER|SA_NOCLDSTOP, 0x372472e2b0}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [HUP INT USR1 USR2 TERM CHLD], NULL, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGXFSZ, {SIG_IGN}, NULL, 8) = 0 getcwd("/tmp", 4095) = 5 getsockopt(0, SOL_SOCKET, SO_TYPE, 0x7fbfffc6b0, 0x7fbfffc6b4) = -1 ENOTSOCK (Socket operation on non-socket) open("/etc/rsyncd.conf", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1202163972 open("/etc/localtime", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG...
2006 Oct 28
1
Cygwin rsync to RH rsync server
...on(SIGTERM, {0x804ad70, [], SA_NOCLDSTOP}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [HUP INT USR1 USR2 TERM CHLD], NULL, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGXFSZ, {SIG_IGN}, NULL, 8) = 0 getcwd("/tmp", 4095) = 5 getsockopt(0, SOL_SOCKET, SO_TYPE, 0xbfa51814, 0xbfa51810) = -1 ENOTSOCK (Socket operation on non-socket) open("/etc/rsyncd.conf", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=356, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d0c000 read(3, "motd fi...
2006 Mar 17
1
Fatal trap 12: page fault while in kernel mode / current process=12 (swi1: net)
this is 6.0-STABLE as for Mar 17. KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-PRERELEASE #2: Fri Mar 17 11:05:32 UTC 2006 vlad@host:/usr/src/sys/amd64/compile/DEF_WEB Timecounter
2020 Aug 18
15
[PATCH nbdkit 0/9] Port to Windows.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw This is the port to Windows using native Windows APIs (not MSYS or Cygwin). This patch series is at the point where it basically now works. I can run the server with the memory plugin, and access it remotely using guestfish, creating filesystems and so on without any apparent problems. Nevertheless there are many
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib After a lot of work I have made the port to Windows work without using a separate library. Instead, on Windows only, we build an "import library" (library of stubs) which resolves references to nbdkit_* functions in the main program and fixes up the plugin, basically the first technique outlined in