search for: getsockname

Displaying 20 results from an estimated 240 matches for "getsockname".

2008 Jan 16
3
getsockname access
Is getsockname (or its equivalent) available to an EM Connection object? I''d like to access the local port number in my client application. --Michael
2014 Feb 12
5
[Bug 2200] New: ssh -W causes "getsockname failed: Bad file descriptor" errors
https://bugzilla.mindrot.org/show_bug.cgi?id=2200 Bug ID: 2200 Summary: ssh -W causes "getsockname failed: Bad file descriptor" errors Product: Portable OpenSSH Version: 6.5p1 Hardware: All URL: http://bugs.debian.org/738693 OS: Linux Status: NEW Severity: normal Priority: P5...
2006 Oct 31
0
6292950 getsockname consumes pending ECONNREFUSED errors
Author: blu Repository: /hg/zfs-crypto/gate Revision: f0d84e66bf3b67624b5681ccf78a3435e40e1ea5 Log message: 6292950 getsockname consumes pending ECONNREFUSED errors Files: update: usr/src/uts/common/fs/sockfs/socktpi.c
2004 Aug 06
0
FreeBSD 4.6-STABLE + icecast 1.3.12 problem
...jmp () from /usr/lib/libc_r.so.4 #4 0x2809ef2f in process_options () from /usr/lib/libwrap.so.3 #5 0x2809eeef in process_options () from /usr/lib/libwrap.so.3 #6 0x2809fe01 in hosts_access () from /usr/lib/libwrap.so.3 #7 0x2809fbc8 in hosts_access () from /usr/lib/libwrap.so.3 #8 0x805a91f in getsockname () #9 0x8050a39 in getsockname () #10 0x804ac4c in getsockname () #11 0x8049ebb in getsockname () #12 0x8049d2a in getsockname () #13 0x8049c21 in getsockname () (gdb) Any ideas? for now i'm compiling icecast without libwrap... PS: Please respond directly too me, cause i'm not subscribe...
2015 Jun 21
3
dovecot auth using 100% CPU
Every few days I find that dovecot auth is using all my CPU. This is from dovecot 2.2.13, I've just upgraded to 2.2.18 strace -r -p 17956 output: Process 17956 attached 0.000000 lseek(19, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 0.000057 getsockname(19, {sa_family=AF_LOCAL, NULL}, [2]) = 0 0.000043 epoll_ctl(15, EPOLL_CTL_ADD, 19, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP, {u32=850618928, u64=140128453618224}}) = 0 0.000040 write(19, "VERSION\tauth-worker\t1\t0\nDBHASH\t5"..., 97) = -1 EPIPE (Broken pipe) 0.000035 --- SIGPIP...
2004 Nov 26
0
Dovecot 1.0-test52 and LDAP authentication
...E|O_DIRECTORY) = 6 [pid 16545] fstat64(6, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 [pid 16545] fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 [pid 16545] getdents64(6, /* 2 entries */, 4096) = 48 [pid 16545] getdents64(6, /* 0 entries */, 4096) = 0 [pid 16545] close(6) = 0 [pid 16545] getsockname(0, {sa_family=AF_INET, sin_port=htons(143), sin_addr=inet_addr("0.0.0.0")}, [16]) = 0 [pid 16545] getsockname(1, <unfinished ...> [pid 16547] <... select resumed> ) = 1 (in [5]) [pid 16545] <... getsockname resumed> 0xfef3d050, [28]) = -1 ENOTSOCK (Socket operation...
2014 Feb 20
1
Regression in 6.5p1 when using -W option
Hi, we got a report on the Cygwin mailing list showing that there's a spurious error message when using the -W option. This didn't occur with OpenSSH 6.4p1. Here's an example: $ ssh machine1 -W machine2:22 getsockname failed: Bad file descriptor SSH-2.0-OpenSSH_6.1 The error message is a result of getsockname being called with a file descriptor -1. The call stack at the time looks like this: Breakpoint 2, get_socket_address (sock=-1, remote=remote at entry=0, flags=flags at entry=2) at /usr/src/debug/op...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...K, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 clone(Process 23938 attached (waiting for parent) Process 23938 resumed (parent 23937 ready) child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2aaaaad30db0) = 23938 [pid 23937] exit_group(0) = ? getsockname(3, 0x7fff6b7728a0, [128]) = -1 ENOTSOCK (Socket operation on non-socket) fcntl(3, F_GETFD) = 0 dup(3) = 7 fcntl(7, F_SETFD, 0) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 close(3) = 0 fcn...
2016 May 31
2
[Bug 1071] New: nftables: set does not work within inet table with option flags interval
...tnl-1.0.6-x86_64-1 nftables-e049f92bb7b98dfa218eda2b9b6f14506238abf2-x86_64-1 Without flags interval: socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5 connect(5, {sa_family=AF_INET6, sin6_port=htons(22), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 getsockname(5, {sa_family=AF_INET6, sin6_port=htons(45890), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0 connect(5, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0 connect(5, {sa_family=AF_INET, sin_port=htons(22), sin_addr=...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
...= 1222785330 listen(7, 512) = 0 fcntl(5, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 clone(Process 18441 attached child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b276258fdb0) = 18441 [pid 18441] getsockname(3, {sa_family=AF_INET, sin_port=htons(56711), sin_addr=inet_addr("172.16.0.9")}, [16]) = 0 [pid 18441] getpeername(3, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("172.16.2.24")}, [68719476752]) = 0 [pid 18441] fcntl(3, F_GETFD) = 0x1 (flags FD_CLOEXEC...
2015 Jun 21
0
dovecot auth using 100% CPU
...t; Every few days I find that dovecot auth is using all my CPU. > > This is from dovecot 2.2.13, I've just upgraded to 2.2.18 > > strace -r -p 17956 output: > > Process 17956 attached > 0.000000 lseek(19, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) > 0.000057 getsockname(19, {sa_family=AF_LOCAL, NULL}, [2]) = 0 > 0.000043 epoll_ctl(15, EPOLL_CTL_ADD, 19, > {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP, {u32=850618928, > u64=140128453618224}}) = 0 > 0.000040 write(19, "VERSION\tauth-worker\t1\t0\nDBHASH\t5"..., 97) > = -1 EPIPE (Broken pipe)...
2015 Feb 26
4
Call for testing: OpenSSH 6.8
On Thu, 26 Feb 2015, Darren Tucker wrote: > I noticed this error log spam on the tinderbox when looking at one of the > failures. It happens with Unix domain socket forwarding is requested: > > debug1: channel 1: new [forwarded-streamlocal at openssh.com] > get_socket_address: getnameinfo 1 failed: ai_family not supported > get_sock_port: getnameinfo NI_NUMERICSERV failed:
2019 Mar 08
1
Dovecot v2.3.5 released
On 7.3.2019 23.37, A. Schulze via dovecot wrote: > > Am 07.03.19 um 17:33 schrieb Aki Tuomi via dovecot: > >>> test-http-client-errors.c:2989: Assert failed: FALSE >>> connection timed out ................................................. : FAILED > Hello Aki, > >> Are you running with valgrind or on really slow system? > I'm not aware my buildsystem
2002 Dec 04
2
Won't %L work anymore?
...n port 445, as clients no longer send this information So, the question is: how do I do it now? I tried %h but that does not seem to be the same thing? How can I get something based upon how the user refered to the server? Shouldn't there be a way to use the IP address from a getsockname() call? I do have interfaces set to several addresses, btw. Also, how do I know if samba is listening on port 445? There seems to be no other mention in the man page. (I do know it isn't because "lsof" does not show it). -- Gary Algier, WB2FWZ gaa at ulticom.com...
2019 Dec 12
2
[PATCH] vhost/vsock: accept only packets with the right dst_cid
...a malformed guest > > that sends a packet with a wrong dst_cid: > > - before v5.4 we supported only one transport at runtime, so the sockets > > in the host can only receive packets from guests. In this case, if > > the dst_cid is wrong, maybe the only issue is that the getsockname() > > returns an inconsistent address (the cid returned is the one received > > from the guest) > > > > - from v5.4 we support multi-transport, so the L1 VM (e.g. L0 assigned > > cid 5 to this VM) can have both Guest2Host and Host2Guest transports. > > I...
2001 Feb 21
3
X11 display issues
...2029,2034 **** --- 2034,2070 ---- display_number, screen_number); #endif /* IPADDR_IN_DISPLAY */ + #else + /* and now something completely different:-) <appro at fy.chalmers.se> */ + { + struct sockaddr_in me; + socklen_t melen = sizeof(me); + struct hostent *he; + + if (getsockname(packet_get_connection_in(), + (struct sockaddr *)&me, &melen) != 0 + || me.sin_family != AF_INET) { + error("[X11-broken-fwd] Unable to getsockname or unsupported protocol family"); + packet_send_debug("[X11-broken-fwd] Unable to getsockname or unsupported prot...
2018 Oct 24
0
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{ 2147483.000000000 }) = 1 (0x1) accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb) getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\" },0x7fffffffe7fc) = 0 (0x0) fcntl(11,F_GETFL,) = 6 (0x6) fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0) getpid() = 3446 (0xd76) __sysctl(0x7fffffffe7b0,0x4,0x0,0x...
2019 Dec 12
2
[PATCH] vhost/vsock: accept only packets with the right dst_cid
...a better analysis (I hope) when there is a malformed guest that sends a packet with a wrong dst_cid: - before v5.4 we supported only one transport at runtime, so the sockets in the host can only receive packets from guests. In this case, if the dst_cid is wrong, maybe the only issue is that the getsockname() returns an inconsistent address (the cid returned is the one received from the guest) - from v5.4 we support multi-transport, so the L1 VM (e.g. L0 assigned cid 5 to this VM) can have both Guest2Host and Host2Guest transports. In this case, we have these possible issues: - L2 (or L1) g...
2019 Dec 12
2
[PATCH] vhost/vsock: accept only packets with the right dst_cid
...a better analysis (I hope) when there is a malformed guest that sends a packet with a wrong dst_cid: - before v5.4 we supported only one transport at runtime, so the sockets in the host can only receive packets from guests. In this case, if the dst_cid is wrong, maybe the only issue is that the getsockname() returns an inconsistent address (the cid returned is the one received from the guest) - from v5.4 we support multi-transport, so the L1 VM (e.g. L0 assigned cid 5 to this VM) can have both Guest2Host and Host2Guest transports. In this case, we have these possible issues: - L2 (or L1) g...
2005 Oct 10
1
Dovecot versus libsafe 2.0.15
Hi, I encountered a problem using Dovecot (todays CVS, 11/10/2005) with libsafe, systemwide install. Dovecot silently dies. Here is the end of the systrace output I got: bind(6, {sin_family=AF_INET, sin_port=htons(143), sin_addr=inet_addr("0.0.0.0")}}, 16) = 0 getsockname(6, {sin_family=AF_INET, sin_port=htons(143), sin_addr=inet_addr("0.0.0.0")}}, [16]) = 0 listen(6, 8) = 0 fcntl64(0x6, 0x3, 0, 0x8072ed8) = 2 fcntl64(0x6, 0x4, 0x802, 0x8072ed8) = 0 fcntl64(0x6, 0x1, 0, 0x8072ed8) = 0 fcntl64(0x6, 0x2, 0x1, 0...