search for: inet_pton

Displaying 20 results from an estimated 234 matches for "inet_pton".

2024 Feb 27
1
[PATCH] Fix the inet_pton implementation
The function inet_pton should read from src but it actually reads from dst. Signed-off-by: Donny Xia <xiadong.main at gmail.com> --- usr/klibc/inet/inet_pton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/klibc/inet/inet_pton.c b/usr/klibc/inet/inet_pton.c index 19fe16e0..2df6b677 1...
2015 Apr 01
0
[PATCH] fix inet_pton for AF_INET6
Signed-off-by: Eugene Surovegin <surovegin at google.com> --- usr/klibc/inet/inet_pton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/klibc/inet/inet_pton.c b/usr/klibc/inet/inet_pton.c index 19fe16e..2df6b67 100644 --- a/usr/klibc/inet/inet_pton.c +++ b/usr/klibc/inet/inet_pton.c @@ -38,7 +38,7 @@ int inet_pton(int af, const char *src, void *dst)...
2002 Nov 17
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (update)
...recognize VOS (the current ones do recognize us). These patches change some Unix types to POSIX types (u_char -> uchar_t), hide various unused declarations on systems that don't implement IPv6, supply a network constants if the system doesn't supply it, and properly supply a version of inet_pton on systems that don't have one. (Looks like an editing error misspelled inet_pton). If you have any questions, please let me know. My normal e-mail address is Paul.Green@stratus.com; I use this other one to send patches because I know it won't wrap the lines. ### START OF PATCHES ### d...
2002 Sep 06
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS
...recognize VOS (the current ones do recognize us). These patches change some Unix types to POSIX types (u_char -> uchar_t), hide various unused declarations on systems that don't implement IPv6, supply a network constants if the system doesn't supply it, and properly supply a version of inet_pton on systems that don't have one. (Looks like an editing error misspelled inet_pton). If you have any questions, please let me know. My normal e-mail address is Paul.Green@stratus.com; I use this other one to send patches because I know it won't wrap the lines. ### START OF PATCHES ### d...
2002 Oct 14
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (resend)
...recognize VOS (the current ones do recognize us). These patches change some Unix types to POSIX types (u_char -> uchar_t), hide various unused declarations on systems that don't implement IPv6, supply a network constants if the system doesn't supply it, and properly supply a version of inet_pton on systems that don't have one. (Looks like an editing error misspelled inet_pton). If you have any questions, please let me know. My normal e-mail address is Paul.Green@stratus.com; I use this other one to send patches because I know it won't wrap the lines. ### START OF PATCHES ### d...
2002 Apr 06
1
Compilation problem and solution on Solaris 2.7
To whoever it may help, My flavor of Solaris 2.7 was not able to compile rsync 2.5.5 with the vanilla "./configure; make". Three functions where missing : inet_ntop, inet_pton, inet_addr There are replacement inet_ntop and inet_pton in the distribution tree, so it's easy to change the Makefile and have them compiled and included by a simple "make". However, the inet_addr is missing on the system, so I had to write a replacement. Here is the (very simple)...
2016 May 31
2
[Bug 1071] New: nftables: set does not work within inet table with option flags interval
...ot working is ::ffff:127.0.0.1. I am using the following versions, compiled today (5/31). libnftnl-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...
2008 Oct 24
5
DO NOT REPLY [Bug 5851] New: Name lookup failures and CIDR regression
...39;.')) { // CIDR notation int bits = atoi(p+1); if (bits == 0) return 1; if (bits <= 0 || bits > 32) { rprintf(FLOG,"malformed mask in %s\n", tok); return 0; } } else if (inet_pton(resa->ai_addr->sa_family, p, mask) <= 0) { // Dot notation ( netmask ) -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
2004 Aug 06
2
also error compiling ices
Hey developer Freaks, can anyone explain, what is wrong ? is a libary missing ? I don't understand this "make" output thanx for your help .. Daniel <p>gcc -g -O2 -Wall -o ices ices.o log.o setup.o stream.o util.o mp3.o cue.o metadata.o id3.o signals.o reencode.o ices_config.o playlist/libplaylist.a ../libshout/.libs/libices.al /usr/local/lib/libmp3lame.so
2004 Aug 06
1
also error compiling ices
More specifically #define inet_aton(a,b) inet_pton(AF_INET, (a), (b)) into ices/libshout/sock.h Thanks to the list for giving me this a few weeks back +------------------------- + Dave Dennis + Seattle, WA + dmd@speakeasy.org + http://bauhaus.nu/dion +------------------------- On 31 Jan 2003, Karl Heyes wrote: > On Fri, 2003-01-31 at 11:37...
2002 Jan 04
1
Patch for 2.5.1 on Tru64 UNIX 5.x
...taddrinfo. Best to AC_TRY_LINK so the #define takes effect. -- albert chin (china@thewrittenword.com) -- snip snip --- configure.in.orig Thu Jan 3 19:03:54 2002 +++ configure.in Thu Jan 3 19:09:17 2002 @@ -273,7 +273,18 @@ AC_CHECK_FUNCS(inet_ntop, , AC_LIBOBJ(lib/inet_ntop)) AC_CHECK_FUNCS(inet_pton, , AC_LIBOBJ(lib/inet_pton)) -AC_CHECK_FUNCS(getaddrinfo, , AC_LIBOBJ(lib/getaddrinfo)) +# Tru64 UNIX has getaddrinfo() but has it renamed in libc as +# something else so we must include <netdb.h> to get the +# redefinition. +AC_MSG_CHECKING([for getaddrinfo]) +AC_TRY_LINK([#include <sy...
2002 Nov 20
0
[PATCH] Updated patch to rsync for Stratus VOS
...ervname, hints, r char pton[PTON_MAX]; struct addrinfo ai; struct addrinfo *pai; - u_short port; + ushort_t port; #ifdef FAITH static int firsttime = 1; @@ -395,7 +395,7 @@ getaddrinfo(hostname, servname, hints, r /* hostname as numeric name */ for (i = 0; afdl[i].a_af; i++) { if (inet_pton(afdl[i].a_af, hostname, pton)) { - u_long v4a; + ulong_t v4a; switch (afdl[i].a_af) { case AF_INET: @@ -520,7 +520,7 @@ get_addr(hostname, af, res, pai, port0) struct addrinfo *pai; int port0; { - u_short port = port0 & 0xffff; + ushort_t port = port0 & 0xffff; struct a...
2015 Jul 29
2
Bug#793921: tftpd-hpa: IPv6 address cannonization breaks IPv4
...have the > > same AF, however the above patch only cannonizes 'myaddr'. Ultimately this > > results in the daemon attempting to use a socket with two address families and > > fails: > > > > recvmsg(0, {msg_name(28)={sa_family=AF_INET6, sin6_port=htons(34500), inet_pton(AF_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_INE...
2012 Nov 21
3
ip6tables REJECT target 3s timeout
...ng yum updates. I think that happened because firewall is dropping outgoing packets to port 80. Well, I thought to mitigate the issue and changed outgoing from drop to reject. Now I try manually # strace telnet 2a02:180:ffff:1::551f:b966 80 ... connect(3, {sa_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, "2a02:180:ffff:1::551f:b966", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28 3 second delay ) = -1 ECONNREFUSED (Connection refused) ... The ECONNREFUSED is quite expected of course, but what is not expected that the connect syscall lasts 3 seconds. This 3 second dela...
2015 Apr 08
0
[PATCH 04/10] Use AC_CONFIG_LIBOBJ_DIR and AC_REPLACE_FUNCS to adhere to autoconf standards
...re testing the compiler. # Please allow this to default to yes, so that your users have more @@ -488,8 +492,7 @@ AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, dnl AC_MSG_NOTICE([Looking in libraries: $LIBS]) -AC_CHECK_FUNCS(inet_ntop, , [AC_LIBOBJ(lib/inet_ntop)]) -AC_CHECK_FUNCS(inet_pton, , [AC_LIBOBJ(lib/inet_pton)]) +AC_REPLACE_FUNCS([inet_ntop inet_pton]) AC_HAVE_TYPE([struct addrinfo], [#include <netdb.h>]) AC_HAVE_TYPE([struct sockaddr_storage], [#include <sys/types.h> @@ -521,9 +524,9 @@ if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a...
2014 Dec 15
0
[PATCH] p2v: avoid connecting to ourself while probing qemu-nbd (RHBZ#1167774)
...w_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 bind to this port, + * but it will hint...
2004 Aug 06
2
xslt-config
after running sh autogen.sh and Icecast begins to complie (is this the correct term) I get the folling: .. checking for getaddrinfo... yes checking for inet_pton... yes checking for xslt-config... no configure: error: xslt-config could not be found Could some one please explain. Thanks ! <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a mes...
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.
2014 Dec 12
2
[PATCH] p2v: avoid connecting to ourself while probing qemu-nbd (RHBZ#1167774)
...w_t; struct timeval timeout = { .tv_usec = 0 }; char magic[8]; /* NBDMAGIC */ @@ -413,10 +423,20 @@ 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; + src_addr.sin_port = htons (nbd_probe_port); + inet_pton (AF_INET, "localhost", &src_addr.sin_addr); + + memset (&dst_addr, 0, sizeof dst_addr...
2004 Aug 06
1
solaris 2.7 libshout error
thanks Karl, that got me almost there. I think i am still missing one other library apparently. ANy ideas ? #gcc -lshout -lsocket -lnsl -o test example.c Undefined first referenced symbol in file inet_pton /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.2/../../../libshout.so ld: fatal: Symbol referencing errors. No output written to test collect2: ld returned 1 exit status thanks Adam -----Original Message----- From: Karl Heyes [mailto:karl@pts.tele2.co.uk] Sent: Monday, January 06, 2003 10:56 AM T...