search for: sin_port

Displaying 20 results from an estimated 160 matches for "sin_port".

2004 Mar 26
1
nmbd dying
...nning, but the child process had died. Here's the end of the ptrace of the child: poll([{fd=9, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 ioctl(9, FIONREAD, [81]) = 0 recvfrom(9, "\t\1\201\200\0\1\0\2\0\0\0\0\vBORDER-ACCT\tbordere"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, [16]) = 81 close(9) = 0 write(5, "BORDER-ACCT\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 88) = 88 read(6, "ACCTMAX\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 88) = 88 open("/...
2004 Jan 06
1
[PATCH] possible bug in bindresvport
...port.c 2003-12-08 02:33:24.000000000 +0100 +++ klibc/inet/bindresvport.c 2004-01-06 21:05:02.283779072 +0100 @@ -23,7 +23,7 @@ int bindresvport(int sd, struct sockaddr if (sin == NULL) { sin = &me; memset(sin, 0, sizeof(me)); - sin->sin_port = AF_INET; + sin->sin_family = AF_INET; } else if (sin->sin_family != AF_INET) { errno = EPFNOSUPPORT; @@ -37,7 +37,7 @@ int bindresvport(int sd, struct sockaddr for (i = 0; i < NUM_PORTS; i++, port++) { sin->sin_por...
2005 Mar 10
5
asterisk and Broadvoice Outgoing Again :(
Hi, I can't make outgoing calls via Broadvoice. I have tried each and every configuration that was posted to list previously. I am able to receive incoming calls fine. I get the following in asterisk console: ===================================================== asterisk*CLI> show version Asterisk CVS-HEAD-03/10/05-22:51:28 built by vicky@asterisk on a i686 running Linux
2005 Jul 11
1
Compile Error chan_sccp-20050705 on asterisk 1.0.9 (tarball)
...: request for member `sin_family' in something not a structure or union sccp_actions.c:752: request for member `sin_addr' in something not a structure or union sccp_actions.c:752: request for member `sin_addr' in something not a structure or union sccp_actions.c:753: request for member `sin_port' in something not a structure or union sccp_actions.c:758: `iabuf' undeclared (first use in this function) sccp_actions.c:758: request for member `sin_addr' in something not a structure or union sccp_actions.c:759: request for member `sin_port' in something not a structure or union...
2009 Jun 08
2
[PATCH] few minor bugfixes
...0){ - return -1; - } + sprintf(port, "%d", vncport); - serv = gethostbyname(vnchost); - if(serv == NULL){ + result = getaddrinfo(vnchost, port, NULL, &vnc_addr); + if(result != 0 || vnc_addr == NULL) return -1; - } - serv_addr.sin_family = PF_INET; - serv_addr.sin_port = htons(vncport); - serv_addr.sin_addr.s_addr = ((struct in_addr *)(serv->h_addr))->s_addr; + // just use first found, ignoring rest + socketfd = socket(vnc_addr->ai_family, + vnc_addr->ai_socktype, + vnc_addr->ai_protocol); - if (connect(...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
...ave a problem with torque (openPBS) on x86_64 CentOS 5.2. Just to add there's no problem on a 32bit CentOS 5.2 or 64bit Ubuntu 8.04. The problem is that pbs_mom's child quits without giving any error logs. [root at frodo9 torque-2.3.3]# strace -f pbs_mom . . . bind(6, {sa_family=AF_INET, sin_port=htons(15002), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 time(NULL) = 1222785330 listen(6, 512) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7 setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 bind(7, {sa_family=AF_INET, sin_port=hto...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...kaddr_in serv_addr; socketfd = socket(PF_INET, SOCK_STREAM, 0); @@ -917,14 +918,9 @@ viewer_open_vnc_socket(const char* vnchost, int vncport) return -1; } - serv = gethostbyname(vnchost); - if(serv == NULL){ - return -1; - } - serv_addr.sin_family = PF_INET; serv_addr.sin_port = htons(vncport); - serv_addr.sin_addr.s_addr = ((struct in_addr *)(serv->h_addr))->s_addr; + serv_addr.sin_addr.s_addr = inet_addr(vnchost); if (connect(socketfd,(struct sockaddr *)&serv_addr,sizeof(serv_addr)) < 0){ return -1; @@ -933,7 +929,7 @@ viewer_open_vnc_socket...
2002 Sep 25
2
smbd process with high cpu utilization.
...es used 100% cpu. I straced the process and the output follows: washington:~# strace -p 3416 fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=404, len=1}, 0xbfffefa0) = 0 sendto(12, "\3\0X\r\0\0&\0\0\0\0\0\0\0\'\374\f\0\0\0\0\0\16\0\0\0", 26, 0, {sin_family=AF_INET, sin_port=htons(41373), sin_addr=inet_addr("127.0.0.1")}}, 16) = 26 fcntl64(13, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=404, len=1}, 0xbfffefa0) = 0 kill(3382, SIG_0) = 0 fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=404, len=1}, 0xbfffefa0) = 0 sendt...
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
2003 Feb 20
0
Netbios name service forwarding.
...zeof (ifr)); strcpy (&ifr.ifr_name[0], name); if (ioctl (i->fd, SIOCGIFADDR, &ifr)) { syslog (LOG_ERR, "Can't get ip address for interface %s: %m", name); exit (1); } bcopy (&ifr.ifr_addr, &i->me, sizeof (struct sockaddr_in)); i->me.sin_port = htons (nb_port); bzero (&ifr, sizeof (ifr)); strcpy (&ifr.ifr_name[0], name); if (ioctl (i->fd, SIOCGIFBRDADDR, &ifr)) { syslog (LOG_ERR, "Can't get broadcast address for interface %s: %m", name); exit (1); } bcopy (&ifr....
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...problems with a few more applications. Here is what the tail of an strace of pbs_mom as it attempts to fork into the background: listen(5, 512) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 bind(6, {sa_family=AF_INET, sin_port=htons(15003), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 listen(6, 512) = 0 fcntl(4, F_SETLK, {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_...
2010 Jul 29
3
[PATCH 1/1] O2net: Disallow o2net accept connection request from itself.
...;unexpected connect attempted from a lower " - "numbered node '%s' at " "%pI4:%d with num %u\n", + "or same numbered node '%s' at " "%pI4:%d with num %u\n", node->nd_name, &sin.sin_addr.s_addr, ntohs(sin.sin_port), node->nd_num); ret = -EINVAL; -- 1.5.5
2009 Mar 20
0
tftpd-hpa can't reopen /dev/log
...ode failing to reopen /dev/log. No wonder, as it tries after chrooting. Cheers, Feri. $ sudo strace -f -p 2356 Process 2356 attached - interrupt to quit select(5, [4], NULL, NULL, NULL) = 1 (in [4]) setsockopt(4, SOL_IP, IP_PKTINFO, [1], 4) = 0 recvmsg(4, {msg_name(16)={sa_family=AF_INET, sin_port=htons(57109), sin_addr=inet_addr("169.254.1.4")}, msg_iov(1)=[{"\0\1dal\0octet\0tsize\0000\0blksize\0001408\0"..., 65468}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_IP, cmsg_type=, ...}, msg_flags=0}, 0) = 33 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5 connect(5, {sa_fami...
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)...
2014 Dec 15
0
[PATCH] p2v: avoid connecting to ourself while probing qemu-nbd (RHBZ#1167774)
..._addr, dst_addr; time_t start_t, now_t; struct timeval timeout = { .tv_usec = 0 }; char magic[8]; /* NBDMAGIC */ @@ -413,10 +414,40 @@ wait_qemu_nbd (int nbd_local_port, int timeout_seconds) return -1; } - memset (&addr, 0, sizeof addr); - addr.sin_family = AF_INET; - addr.sin_port = htons (nbd_local_port); - inet_pton (AF_INET, "localhost", &addr.sin_addr); + memset (&src_addr, 0, sizeof src_addr); + src_addr.sin_family = AF_INET; + /* Source port for probing qemu-nbd should be one greater than + * nbd_local_port. It's not guaranteed to always bi...
2014 Dec 15
2
[PATCH v2 0/1] p2v: avoid connecting to ourself while probing qemu-nbd
Changes since v1: - Set probing source port to be nbd_local_port+1 instead of always using 50124 to deal with multi-disk scenario. - Set SO_REUSEADDR on client socket to avoid issues with old connections in TIME_WAIT. I've been running this for a few hours now using the updated multi-disk test and haven't seen any problems.
2009 Dec 17
4
NIS failover
We just updated our configuratiosn to have multiple NIS servers, when we initiated a test of client failover, we were disapointed. It seemed that the only way to get a filaover was to /etc/init.d/ypbind restart. It behaves as indicated in http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=5084845 using ypbind-1.17.2-13 on Centos 4.5 / Linux xxxxxxxxxxxx 2.6.9-55.0.12.ELsmp #1 SMP Fri Nov
2009 Feb 05
0
sendto syscall: EPERM (Operation not permitted)
...k \ -C /etc/asterisk/asterisk.conf -g -p -T [...] [Initial socket setup] [pid 5006] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 9 [pid 5006] setsockopt(9, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 [pid 5006] setsockopt(9, SOL_IP, IP_MTU_DISCOVER, [0], 4) = 0 [pid 5006] bind(9, {sa_family=AF_INET, sin_port=htons(5060), \ sin_addr=inet_addr("0.0.0.0")}, 16) = 0 [pid 5006] setsockopt(9, SOL_IP, IP_TOS, [96], 4) = 0 [...] [This is the gateway, same network, that asterisk successfully connects to] [pid 5015] sendto(9, "OPTIONS sip:192.168.3.21 SIP/2.0"..., 485, 0, \ {sa_fami...
2016 Apr 07
5
UDP de-fragmentation problem
...select(), then the recvfrom(7...) fails with eagain [...] socket(PF_INET, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 7 fcntl(7, F_GETFL) = 0x2 (flags O_RDWR) fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0 setsockopt(7, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0 bind(7, {sa_family=AF_INET, sin_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...
2008 Feb 28
1
C Code to connect to Asterisk Manager Interface
...#define CLIENT_PORT 5100 int main() { int sd; struct sockaddr_in serveraddr, clientaddr; char msg[MAX_MSG_SIZE]; bzero((char *) &serveraddr, sizeof(serveraddr)); serveraddr.sin_family = AF_INET; serveraddr.sin_addr.s_addr = inet_addr(SERVER_ADDRESS); serveraddr.sin_port = htons(SERVER_PORT); bzero((char *) &clientaddr, sizeof(clientaddr)); clientaddr.sin_family = AF_INET; clientaddr.sin_addr.s_addr = INADDR_ANY; clientaddr.sin_port = htons(CLIENT_PORT); sd = socket(AF_INET, SOCK_STREAM, 0); printf("\nCreated socket ...");...