search for: sock_dgram

Displaying 20 results from an estimated 178 matches for "sock_dgram".

2010 Feb 23
0
[PATCH 2/3] nfsmount: s/PF_INET/AF_INET/
...eletions(-) diff --git a/usr/kinit/nfsmount/dummypmap.c b/usr/kinit/nfsmount/dummypmap.c index 43abe37..481e23b 100644 --- a/usr/kinit/nfsmount/dummypmap.c +++ b/usr/kinit/nfsmount/dummypmap.c @@ -39,7 +39,7 @@ struct portmap_reply { static int bind_portmap(void) { - int sock = socket(PF_INET, SOCK_DGRAM, 0); + int sock = socket(AF_INET, SOCK_DGRAM, 0); struct sockaddr_in sin; if (sock < 0) diff --git a/usr/kinit/nfsmount/mount.c b/usr/kinit/nfsmount/mount.c index a55af91..f18cffa 100644 --- a/usr/kinit/nfsmount/mount.c +++ b/usr/kinit/nfsmount/mount.c @@ -290,9 +290,9 @@ int nfs_mount(con...
2015 Oct 02
1
authentication problems sernet-samba
Hello Rowland, I think avahi-daemon is not installed as standard in ubuntu 14.04.3 LTS Here is in our server : ROOT at SERVER:~# DPKG -L |GREP AVAHI II  LIBAVAHI-CLIENT3:AMD64              0.6.31-4UBUNTU1                  AMD64        AVAHI CLIENT LIBRARY II  LIBAVAHI-COMMON-DATA:AMD64          0.6.31-4UBUNTU1                  AMD64        AVAHI COMMON DATA FILES II 
2004 Mar 26
1
nmbd dying
...96, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(9, "# Generated automatically from h"..., 4096) = 154 read(9, "", 4096) = 0 close(9) = 0 munmap(0x40018000, 4096) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 9 connect(9, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 28) = 0 send(9, "\t\2\1\0\0\1\0\0\0\0\0\0\7ACCTMAX\tborderent\3c"..., 39, 0) = 39 gettimeofday({1080304120, 623860}, NULL) = 0 poll([{fd=9, events=POLLIN, revents=POLLIN}], 1, 5...
2009 Mar 20
0
tftpd-hpa can't reopen /dev/log
...g(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=htons(0), sin_addr=inet_addr("169.254.1.1")}, 16) = 0 getsockname(5, {sa_family=AF_INET, sin_port=htons(58102), sin_addr=inet_addr("169.254.1.1")}, [16]) = 0 close(5) = 0 clone(Process 24082...
2005 May 11
3
problem with the pro/1000 driver for intel gigabit ethernet card
I encountered a problem with dom0 when rebooting and running an intel gigabit card using the pro/1000 driver. When the system tries to shut down I get the following output of an strace command : ......... 17:10:49.063616 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 <0.000029> 17:10:49.063689 ioctl(3, 0x8913, 0xbffffc80) = 0 <0.000018> 17:10:49.063751 ioctl(3, 0x8914, 0xbffffc80) = 0 <535.114722> 17:19:44.178567 close(3) = 0 <0.000026> 17:19:44.178679 exit_group(0) = ? observe the more than 500...
1997 Sep 23
0
PATCH: Wins support in smbclient
...------------- next part -------------- --- /root/client.c Tue Sep 23 21:52:21 1997 +++ client.c Tue Sep 23 22:17:21 1997 @@ -4136,8 +4136,20 @@ #ifdef USENMB /* Try and resolve the name with the netbios server */ int bcast; + struct in_addr wins_addr; - if ((bcast = open_socket_in(SOCK_DGRAM, 0, 3, + wins_addr.s_addr = interpret_addr (lp_wins_server ()); + + if (wins_addr.s_addr && (bcast = open_socket_out (SOCK_DGRAM, + &wins_addr, + 137, 3000)) != -1) { + if (name_query (bcast, host, 0x20, False, True, wins_addr, &dest_ip, 0)) { + failed = False;...
2006 Apr 26
1
udev no longer compiles (since 1.3.5)
As the title suggests, udev no longer compiles under klibc versions > 1.3.5 It may partially be udev's fault, however, certain symbols, such as SOCK_DGRAM, are no longer visible when compiling under klcc, which is causing this issue. A simple check of the linux/net.h header shows some ARCH_HAS_SOCKET_TYPES define, which is not set internally by udev's source. Where would be the most appropriate place for this? Should this be a udev fix, or a k...
2015 Dec 04
0
[PATCH v2 0/5] Add virtio transport for AF_VSOCK
...---- > Guest<->host communication is currently done over the virtio-serial device. > This makes it hard to port sockets API-based applications and is limited to > static ports. > > virtio-vsock uses the sockets API so that applications can rely on familiar > SOCK_STREAM and SOCK_DGRAM semantics. Applications on the host can easily > connect to guest agents because the sockets API allows multiple connections to > a listen socket (unlike virtio-serial). This simplifies the guest<->host > communication and eliminates the need for extra processes on the host to >...
2016 Oct 13
3
Bug 6870 resurfaced in Samba 4.2.10
...ba 4.2.10 with IPv6 disabled (via sysctl), will fail to contact a DC because the IPv6 connect fails immediately before the v4 connect has a chance to succeed. I determined this by strace'ing the "net ads workgroup" command, which resulted in the following: 11:41:52 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11 <0.000027> 11:41:52 fcntl(11, F_GETFL) = 0x2 (flags O_RDWR) <0.000015> 11:41:52 fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000016> 11:41:52 fcntl(11, F_GETFD) = 0 <0.000015> 11:41:52 fcntl(11, F_SETFD, FD_CLOEXEC) = 0 <0.000016> 11:41:52 connect(11,...
2013 Mar 10
1
Samba DC join fails - IPv4/IPv6 issue
...ent is configured without IPv6 address (see further down below) samba-tool still tries to address the DC's LDAP server via IPv6 - and fails miserably: root at elektron:~# strace -f -e trace=network /opt/samba4/bin/samba-tool domain join linex.r00t.la DC <...> [pid 1640] socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5 [pid 1640] connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.6")}, 16) = 0 [pid 1640] send(5, "NQ\1\0\0\1\0\0\0\0\0\0\5venus\5linex\4r00t\2la"..., 37, MSG_NOSIGNAL) = 37 [pid 1640] recvfrom(5, "NQ\205\200\0\1\...
2011 Nov 12
5
[Bug 1950] New: sshd tries to bind over and over to ::1 for several seconds
...ocess a lot. When such scenario can happen, so AF_INET6 socket creation is allowed but ::1 doesn't exist? This can happen in linux-vserver.org guest or on a pure Linux system with net.ipv6.conf.all.disable_ipv6 sysctl set to 1. That how it looks under strace: 28636 10:33:49 socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 6 <0.000020> 28636 10:33:49 connect(6, {sa_family=AF_INET6, sin6_port=htons(6493), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EAD DRNOTAVAIL (Cannot assign requested address) <0.000020> 28636 10:33:49 connect(6, {sa_f...
2001 Dec 18
1
bug, smb 2.2.1a, redhat 7.2
...ndows it will write something in the log log.smbd like: smbd/oplock.c:init_oplocks(1205) open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was Cannot assign requested address Looking at the code it seems it is allways trying to open a socket on 127.0.0.1 open_socket_in(SOCK_DGRAM, 0, 0, htonl(INADDR_LOOPBACK),False) But surely, if you specify "bind interfaces only" to yes and interfaces does not have 127.0.0.1 it should not try that? Off course, bug or not, it is not severe. Idiots like me who sometimes do not have a loopback device are rare. Hope this helps, k...
2011 Aug 18
4
[RFC 0/0] Introducing a generic socket offload framework
...URIs. The currently supported conversions are: +-----------------------------------------------------------------------------+ | Domain | Type | URI example conversion | | AF_INET | SOCK_STREAM | tcp://x.x.x.x:yyyy | | AF_INET | SOCK_DGRAM | udp://x.x.x.x:yyyy | | AF_INET6 | SOCK_STREAM | tcp6://aaaa:b:cccc:d:eeee:ffff:gggg:hhhh/ii | | AF_INET6 | SOCK_DGRAM | udp6://aaaa:b:cccc:d:eeee:ffff:gggg:hhhh/ii | | AF_IPX | SOCK_DGRAM | ipx://xxxxxxxx.yyyyyyyyyy.zzzz | +------------...
2011 Aug 18
4
[RFC 0/0] Introducing a generic socket offload framework
...URIs. The currently supported conversions are: +-----------------------------------------------------------------------------+ | Domain | Type | URI example conversion | | AF_INET | SOCK_STREAM | tcp://x.x.x.x:yyyy | | AF_INET | SOCK_DGRAM | udp://x.x.x.x:yyyy | | AF_INET6 | SOCK_STREAM | tcp6://aaaa:b:cccc:d:eeee:ffff:gggg:hhhh/ii | | AF_INET6 | SOCK_DGRAM | udp6://aaaa:b:cccc:d:eeee:ffff:gggg:hhhh/ii | | AF_IPX | SOCK_DGRAM | ipx://xxxxxxxx.yyyyyyyyyy.zzzz | +------------...
2015 Jul 29
2
Bug#793921: tftpd-hpa: IPv6 address cannonization breaks IPv4
..._INET6, "::ffff:10.0.0.192", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, msg_iov(1)=[{"\0\1pxelinux.0\0netascii\0", 65468}], msg_controllen=40, {cmsg_len=36, cmsg_level=SOL_IPV6, cmsg_type=, ...}, msg_flags=0}, 0) = 22 > > [..] > > [pid 3757] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 0 > > [..] > > [pid 3757] bind(0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("10.0.0.2")}, 16) = 0 > > [pid 3757] connect(0, {sa_family=AF_INET6, sin6_port=htons(34500), inet_pton(AF_INET6, "::ffff:10.0.0.192", &sin6_addr), s...
2009 Feb 05
0
sendto syscall: EPERM (Operation not permitted)
...packets are actually sent out the wire to that gateway, though the gateway is pingable, and I can get a response from the same asterisk host using sipsak. Also, oddly, SIP sessions initiated from the gateway to asterisk succeed. There is very little information about EPERM errors in reference to SOCK_DGRAM type sockets on google, so hopefully there's someone here who can point me the right direction (even if it's to another, more appropriate list). John [root at pbx0 ~]# strace -f /usr/sbin/asterisk -U asterisk -G asterisk \ -C /etc/asterisk/asterisk.conf -g -p -T [...] [Initial soc...
2006 Jan 17
0
asterisk.ctl limitations
...cts */ SAI * remend = NULL; +SAU * unixsock = NULL; HINF ** gates = NULL; /* LSRR hop hostpoop */ char * optbuf = NULL; /* LSRR or sockopts */ char * bigbuf_in; /* data buffers */ @@ -660,10 +666,17 @@ /* grab a socket; set opts */ newskt: - if (o_udpmode) - nnetfd = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP); - else - nnetfd = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); + if (unixsock_name) { + if (o_udpmode) + nnetfd = socket (AF_LOCAL, SOCK_DGRAM, 0); + else + nnetfd = socket (AF_LOCAL, SOCK_STREAM, 0); + } else { + if (o_udpmode) + nnetfd = socket (AF_INET...
2023 Aug 04
0
[PATCH RFC net-next v5 03/14] af_vsock: support multi-transport datagrams
...> @@ -439,6 +439,18 @@ vsock_connectible_lookup_transport(unsigned int cid, __u8 flags) >> > > > > return transport; >> > > > > } >> > > > > >> > > > > +static const struct vsock_transport * >> > > > > +vsock_dgram_lookup_transport(unsigned int cid, __u8 flags) >> > > > > +{ >> > > > > + const struct vsock_transport *transport; >> > > > > + >> > > > > + transport = vsock_connectible_lookup_transport(cid, flags); >> > > > &g...
2016 Oct 14
0
Bug 6870 resurfaced in Samba 4.2.10
...sysctl), will fail to contact a DC because the IPv6 > connect fails immediately before the v4 connect has a chance to succeed. > > > I determined this by strace'ing the "net ads workgroup" command, which > resulted in the following: > > 11:41:52 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11 <0.000027> > 11:41:52 fcntl(11, F_GETFL) = 0x2 (flags O_RDWR) <0.000015> > 11:41:52 fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000016> > 11:41:52 fcntl(11, F_GETFD) = 0 <0.000015> > 11:41:52 fcntl(11, F_SETFD, FD_CLOEXEC) = 0 <0.000016>...
2004 Nov 29
1
Polycom Reboot Script PRI errors!!
...ip_to\@$phone_ip> > Event: check-sync > Date: $httptime > Call-ID: $call_id\@$local_ip > CSeq: 1300 NOTIFY > Contact: <sip:$sip_from\@$local_ip> > Content-Length: 0 > > "; > > $proto = getprotobyname('udp'); > socket( SOCKET, PF_INET, SOCK_DGRAM, $proto ); > $iaddr = inet_aton("$phone_ip"); > $paddr = sockaddr_in( 5060, $iaddr ); > bind( SOCKET, $paddr ); > $port = 5060; > > $hisiaddr = inet_aton($phone_ip); > $hispaddr = sockaddr_in( $port, $hisiaddr ); > > if ( send( SOCK...