Displaying 20 results from an estimated 430 matches for "htons".
Did you mean:
tons
2004 Mar 26
1
nmbd dying
...t 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("/etc/ho...
2016 Jan 27
2
ctdb, raw sockets and CVE-2015-8543
...iled to open raw socket (Invalid argument)
| Could not find which interface the ip address is hosted on. can not release it
and
| common/system_linux.c:344 failed to open raw socket (Invalid argument)
The corresponding parts in ctdb's code look like this:
| s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
converting IPPROTO_RAW to 0xff00 (from strace):
| socket(PF_INET, SOCK_RAW, 0xff00 /* IPPROTO_??? */) = -1 EINVAL (Invalid argument)
Removing htons() from both calls seems to fix the issue for us. Is it
possible that the call to htons is just wrong and should be removed?
-- Adi...
2004 Jan 06
1
[PATCH] possible bug in bindresvport
...F_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_port = htons(port);
- if ((ret = bind(sd, (struct sockaddr *)&sin, sizeof(*sin))) != -1)
+ if ((ret = bind(sd, (struct sockaddr *)sin, sizeof(*sin))) != -1)
break;
if (port == END_PORT)
port = START_PORT;
mango:~ #...
2016 May 31
2
[Bug 1071] New: nftables: set does not work within inet table with option flags interval
...ule check not 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_da...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
...blem 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=htons(150...
2016 Feb 01
1
ctdb, raw sockets and CVE-2015-8543
Hi!
> Removing htons() from both calls seems to fix the issue for us. Is it
> possible that the call to htons is just wrong and should be removed?
[...]
> Thanks for reporting the issue. Yes, htons() in socket() call is wrong
> and should be removed.
>
> Can you create a bug report on [3...
2009 Nov 26
1
[PATCH] daemon/Win32: provide htonl, htons, ntohl, ntohs functions.
.../wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From c47bf70af3222dabd8f966c15f2cc11787f25b86 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Thu, 26 Nov 2009 11:26:40 +0000
Subject: [PATCH 2/2] daemon/Win32: provide htonl, htons, ntohl, ntohs functions.
These functions are not available on Windows.
---
daemon/.gitignore | 1 +
daemon/Makefile.am | 1 +
daemon/configure.ac | 4 ++
daemon/htonl.c | 82 +++++++++++++++++++++++++++++++++++++++++++++
daemon/m4/gnulib-cache.m4 | 3...
2002 Sep 25
2
smbd process with high cpu utilization.
...00% 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
sendto(12,...
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
2015 Jul 29
2
Bug#793921: tftpd-hpa: IPv6 address cannonization breaks IPv4
...39;myaddr' 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 3...
1999 Mar 25
0
(Fwd) DoS for Linux 2.1.89 - 2.2.3: 0 length fragment bug
...}
void sendem(int s, unsigned long source, unsigned long dest,
unsigned short sport, unsigned short dport)
{
static char buffer[8192];
struct my_ip_header *ip;
struct my_udp_header *udp;
struct sockaddr_in sa;
bzero(&sa,sizeof(struct sockaddr_in));
sa.sin_family=AF_INET;
sa.sin_port=htons(sport);
sa.sin_addr.s_addr=dest;
bzero(buffer,IHLEN+32);
ip=(struct my_ip_header *)buffer;
udp=(struct my_udp_header *)&(buffer[IHLEN]);
ip->ip_v = 4;
ip->ip_hl = IHLEN >>2;
ip->ip_tos = 0;
ip->ip_id = htons(random() & 0xFFFF);
ip->ip_ttl = 142;
ip->ip_p...
2009 Jun 08
2
[PATCH] few minor bugfixes
...t.h>
+
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@@ -903,37 +905,35 @@ viewer_credential (GtkWidget *vnc, GValueArray *credList)
gtk_widget_destroy(GTK_WIDGET(dialog));
}
-#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) && defined(HAVE_GETHOSTBYNAME)
+#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS)
static int
viewer_open_vnc_socket(const char* vnchost, int vncport)
{
- int socketfd;
- struct hostent *serv;
- struct sockaddr_in serv_addr;
+ int result, soc...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...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_CHILD_...
2009 Mar 20
0
tftpd-hpa can't reopen /dev/log
...ng 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_family=AF_...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...t.h>
+
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@@ -903,13 +905,12 @@ viewer_credential (GtkWidget *vnc, GValueArray *credList)
gtk_widget_destroy(GTK_WIDGET(dialog));
}
-#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) && defined(HAVE_GETHOSTBYNAME)
+#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS)
static int
viewer_open_vnc_socket(const char* vnchost, int vncport)
{
int socketfd;
- struct hostent *serv;
struct sockaddr_in serv_addr;
socketfd = so...
2003 Apr 29
0
[PATCH] Fix busy-looping behaviour in ipconfig
...ig.h"
#include "netdev.h"
#include "packet.h"
static int pkt_fd;
+__u16 local_port = LOCAL_PORT;
+__u16 remote_port = REMOTE_PORT;
+
int packet_open(void)
{
int fd, one = 1;
@@ -83,8 +87,8 @@
.daddr = INADDR_BROADCAST,
},
.udp = {
- .source = __constant_htons(68),
- .dest = __constant_htons(67),
+ .source = __constant_htons(LOCAL_PORT),
+ .dest = __constant_htons(REMOTE_PORT),
.len = 0,
.check = 0,
},
@@ -108,6 +112,11 @@
};
int i, len = 0;
+ if (local_port != LOCAL_PORT) {
+ ipudp_hdrs.udp.source = htons(local_port);
+ ipudp_hdr...
2013 Aug 26
0
[PATCH] bridge: separate querier and query timer into IGMP/IPv4 and MLD/IPv6 ones
...414,20 @@ static int __br_mdb_del(struct net_bridge *br, struct br_mdb_entry *entry)
if (!netif_running(br->dev) || br->multicast_disabled)
return -EINVAL;
- if (timer_pending(&br->multicast_querier_timer))
- return -EBUSY;
-
ip.proto = entry->addr.proto;
- if (ip.proto == htons(ETH_P_IP))
+ if (ip.proto == htons(ETH_P_IP)) {
+ if (timer_pending(&br->ip4_multicast_querier_timer))
+ return -EBUSY;
+
ip.u.ip4 = entry->addr.u.ip4;
#if IS_ENABLED(CONFIG_IPV6)
- else
+ } else {
+ if (timer_pending(&br->ip6_multicast_querier_timer))
+ return -EBUSY;
+...
2016 Jan 29
0
ctdb, raw sockets and CVE-2015-8543
...argument)
> | Could not find which interface the ip address is hosted on. can not
> release it
> and
> | common/system_linux.c:344 failed to open raw socket (Invalid argument)
>
> The corresponding parts in ctdb's code look like this:
> | s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
> converting IPPROTO_RAW to 0xff00 (from strace):
> | socket(PF_INET, SOCK_RAW, 0xff00 /* IPPROTO_??? */) = -1 EINVAL
> (Invalid argument)
>
> Removing htons() from both calls seems to fix the issue for us. Is it
> possible that the call to htons is just wrong and...
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) =...
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