search for: sin_addr

Displaying 20 results from an estimated 195 matches for "sin_addr".

2004 Mar 26
1
nmbd dying
...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("/etc/hosts", O_R...
2004 Jan 06
1
[PATCH] possible bug in bindresvport
...gettimeofday({1073419650, 154920}, NULL) = 0 mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x30000000 stat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 connect(3, {sa_family=AF_INET, sin_port=htons(111), sin_addr=inet_addr("192.168.1.2")}, 16) = 0 write(3, "\200\0\0<\33\247~r\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2"..., 60) = 60 read(3, "\200\0\0\34\33\247~r\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32 close(3) = 0 socket(PF_INET, SOCK_STREAM, I...
2001 Jan 22
0
Patches for failing build & bus error on SPARC/Linux
...OKEN_REQD #else # define PAM_STRERROR(a,b) pam_strerror((a),(b)) #endif *** fake-getnameinfo.c.orig Fri Sep 29 00:59:14 2000 --- fake-getnameinfo.c Mon Jan 22 16:19:39 2001 *************** *** 30,39 **** if (host) { if (flags & NI_NUMERICHOST) { ! if (strlen(inet_ntoa(sin->sin_addr)) >= hostlen) return EAI_MEMORY; ! strcpy(host, inet_ntoa(sin->sin_addr)); return 0; } else { hp = gethostbyaddr((char *)&sin->sin_addr, --- 30,43 ---- if (host) { if (flags & NI_NUMERICHOST) { ! /* inet_ntoa wants aligned data on SPARC */ !...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
...e (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=htons(15003), sin_addr=ine...
2002 Sep 25
2
smbd process with high cpu utilization.
...raced 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 sendto(12, "\3\0X\r\0\0...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...et(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(const char* vnchost, int vncport) re...
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.
...i->fd, SIOCGIFBRDADDR, &ifr)) { syslog (LOG_ERR, "Can't get broadcast address for interface %s: %m", name); exit (1); } bcopy (&ifr.ifr_addr, &i->bcast, sizeof (struct sockaddr_in)); i->bcast.sin_port = htons (nb_port); me.sin_addr.s_addr = INADDR_ANY; me.sin_port = htons (nb_port); if (bind (i->fd, (struct sockaddr *) &me, sizeof (struct sockaddr_in)) < 00) { syslog (LOG_ERR, "Can't bind to port %d on interface %s: %m", nb_port, name); exit (1); } if (setsocko...
2006 Oct 19
1
Modifying SIP Stack
Hello list, I am trying to include a new message after I receive a Register in chan_sip, at the beginning I would like to forward the same message to a fixed IP address, I have seen that fileds like p->sa.sin_addr and p->sin.sin_addr have to be with the IP address, but I am not sure about how to force these fields to be the destination that I want (192.168.1.10)... somebody knows how to do it? do you know where can I fond information about the "p" structure in asterisk and how to modify it &q...
2009 Jun 08
2
[PATCH] few minor bugfixes
...rt, "%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(socketfd,(struct sockaddr *)&serv_ad...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...re 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_CHILD_CLEARTID|CLONE_CH...
2010 Jul 29
3
[PATCH 1/1] O2net: Disallow o2net accept connection request from itself.
...;nd_num) { mlog(ML_NOTICE, "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
...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_family=AF_INET, sin_port=ht...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...\0', sizeof(struct sockaddr_in)); > - local.sin_family = AF_INET; > - local.sin_port = htons(INADDR_ANY); > - > - memset(&server, '\0', sizeof(struct sockaddr_in)); > - server.sin_family = AF_INET; > - server.sin_port = htons(port); > - > - memcpy(&server.sin_addr, serv->h_addr, serv->h_length); > - > - if (bind(ups->fd, (struct sockaddr *) &local, > - sizeof(struct sockaddr_in)) == -1) { > - ups->upserror = UPSCLI_ERR_BINDFAILURE; > - ups->syserrno = errno; > - close(ups->fd); > - ups->fd = -1; > + mems...
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, 0...
2010 Oct 12
0
rtpip patch
...get_our_media_address(p, needvideo, &sin, &vsin, &tsin, &dest, &vdest); - - /* - snprintf(owner, sizeof(owner), "o=%s %d %d IN IP4 %s\r\n", ast_strlen_zero(global_sdpowner) ? "-" : global_sdpowner, p->sessionid, p->sessionversion, ast_inet_ntoa(dest.sin_addr)); - snprintf(connection, sizeof(connection), "c=IN IP4 %s\r\n", ast_inet_ntoa(dest.sin_addr)); - - */ - /* replace RTP IP address, if rtpip!=auto */ - if (!strcasestr(global_rtpip, "auto")) { - snprintf(owner, sizeof(owner), "o=%s %d %d IN IP4 %s\r\n", ast_strlen_zer...
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
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
...it does not hurt to do so. Arjen, I wonder about server/access.c, line 60-61: return (IN6_IS_ADDR_V4MAPPED(ip6) && ((((const u_int32_t *)ip6)[3] & (u_int32_t)prefix) == net->s_addr)); Comparing this with line 38: return((((struct sockaddr_in*)ip_addr)->sin_addr.s_addr & htonl(prefix)) == ((struct sockaddr_in*)net_addr)->sin_addr.s_addr); I wonder if it shouldn't be htonl(prefix) in line 61, or perhaps ntohl(net->s_addr) in line 61. I don't understand these data structures well, and presumably the patch came from someone who tested it on...
2009 Feb 05
0
sendto syscall: EPERM (Operation not permitted)
...erisk.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_family=AF_INET, sin_port=htons(5...
2016 Apr 07
5
UDP de-fragmentation problem
...from(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, [2], [4]) = 0 select(...