Displaying 20 results from an estimated 206 matches for "htonl".
Did you mean:
htons
2006 Feb 28
2
Sipura SPA-3000 and PSTN dtmf
Greetings,
What is the recommended settings for using SPA-3000's FXO port for
dialing out to PSTN in regard of the DTMF?
The voip lan contains SPA-2100 and SPA-3000, with all fxs/fxo ports
registered to the Asterisk box with unique username/passwords.
The inbound PSTN DTMF works excellently, e.g. people calling from PSTN
into the * box are able to pick IVR items with DTMF reliably.
The
2009 Nov 26
1
[PATCH] daemon/Win32: provide htonl, htons, ntohl, ntohs functions.
...ect.org/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...
2004 Apr 20
1
[patch] Raw sockets in jails
Although RAW sockets can be used when specifying the source
address of packets (defeating one of the aspects of the jail)
some people may find it usefull to use utilities like ping(8)
or traceroute(8) from inside jails.
Enclosed is a patch I have written which gives you the option
of allowing prison-root to create raw sockets inside the prison,
so
2011 Oct 03
0
[LLVMdev] [RFC] Proposal to make LLVM-IR endian agnostic
...alignment, i1 host, i1 littleEndian, i1 atomic, i1 volatile,
>
> i1 nontemporal, i1 singlethread)
FWIW here is another way to do it (which is approximately what ClamAV does currently) by introducing just one intrinsic:
declare i1 @llvm.is_bigendian()
The advantage is that you can implement htonl() and ntohl() like functionality without using a temporary memory location.
Actually I think having the 2 intrinsics you suggest and the is_bigendian() intrinsic would be optimal:
you can use your 2 intrinsics for initial codegen, and mem2reg can transform it to is_bigendian().
For load/store:
<...
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
...o 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 a little-endian ma...
2000 Jan 27
0
more NetBSD patches, for OpenSSH V1.2.2
...emset(ai, 0, sizeof(struct addrinfo) + sizeof(struct sockaddr_in));
ai->ai_addr = (struct sockaddr *)(ai + 1);
/* XXX -- ssh doesn't use sa_len */
@@ -83,25 +83,27 @@
else
port = 0;
if (hints && hints->ai_flags & AI_PASSIVE)
- if (*res = malloc_ai(port, htonl(0x00000000)))
+ if ((*res = malloc_ai(port, htonl(0x00000000))) != NULL)
return 0;
else
return EAI_MEMORY;
- if (!hostname)
- if (*res = malloc_ai(port, htonl(0x7f000001)))
+ if (!hostname) {
+ if ((*res = malloc_ai(port, htonl(0x7f000001))) != NULL)
return 0;...
2000 Jan 18
0
More NetBSD patches
...emset(ai, 0, sizeof(struct addrinfo) + sizeof(struct sockaddr_in));
ai->ai_addr = (struct sockaddr *)(ai + 1);
/* XXX -- ssh doesn't use sa_len */
@@ -83,25 +83,27 @@
else
port = 0;
if (hints && hints->ai_flags & AI_PASSIVE)
- if (*res = malloc_ai(port, htonl(0x00000000)))
+ if ((*res = malloc_ai(port, htonl(0x00000000))) != NULL)
return 0;
else
return EAI_MEMORY;
- if (!hostname)
- if (*res = malloc_ai(port, htonl(0x7f000001)))
+ if (!hostname) {
+ if ((*res = malloc_ai(port, htonl(0x7f000001))) != NULL)
return 0;...
2014 Sep 05
2
[PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()
.... skb_to_sgvec(payload2)
*
* This is equivalent to:
* 1. sg_init_table
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
index a2afa89513a0..9ae5756d9e5f 100644
--- a/net/ipv4/ah4.c
+++ b/net/ipv4/ah4.c
@@ -227,6 +227,7 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb)
*seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi);
sg_set_buf(seqhisg, seqhi, seqhi_len);
}
+ sg_mark_end(&sg[nfrags + sglists]);
ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len);
ahash_request_set_callback(req, 0, ah_output_done, skb);
@@ -395,6 +396,7 @@ static int ah_input(struct...
2014 Sep 05
2
[PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()
.... skb_to_sgvec(payload2)
*
* This is equivalent to:
* 1. sg_init_table
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
index a2afa89513a0..9ae5756d9e5f 100644
--- a/net/ipv4/ah4.c
+++ b/net/ipv4/ah4.c
@@ -227,6 +227,7 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb)
*seqhi = htonl(XFRM_SKB_CB(skb)->seq.output.hi);
sg_set_buf(seqhisg, seqhi, seqhi_len);
}
+ sg_mark_end(&sg[nfrags + sglists]);
ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len);
ahash_request_set_callback(req, 0, ah_output_done, skb);
@@ -395,6 +396,7 @@ static int ah_input(struct...
2015 Feb 03
0
[PATCH v3 net 1/3] ipv6: Select fragment id during UFO segmentation if not set.
...y;
- u32 hash, id;
-
- net_get_random_once(&ip6_idents_hashrnd, sizeof(ip6_idents_hashrnd));
-
- hash = __ipv6_addr_jhash(&rt->rt6i_dst.addr, ip6_idents_hashrnd);
- hash = __ipv6_addr_jhash(&rt->rt6i_src.addr, hash);
-
- id = ip_idents_reserve(hash, 1);
- fhdr->identification = htonl(id);
-}
-
int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
{
struct sk_buff *frag;
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
index 97f41a3..54520a0 100644
--- a/net/ipv6/output_core.c
+++ b/net/ipv6/output_core.c
@@ -9,6 +9,24 @@
#include <net/addrco...
2015 Feb 03
0
[PATCH v3 net 1/3] ipv6: Select fragment id during UFO segmentation if not set.
...y;
- u32 hash, id;
-
- net_get_random_once(&ip6_idents_hashrnd, sizeof(ip6_idents_hashrnd));
-
- hash = __ipv6_addr_jhash(&rt->rt6i_dst.addr, ip6_idents_hashrnd);
- hash = __ipv6_addr_jhash(&rt->rt6i_src.addr, hash);
-
- id = ip_idents_reserve(hash, 1);
- fhdr->identification = htonl(id);
-}
-
int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
{
struct sk_buff *frag;
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
index 97f41a3..54520a0 100644
--- a/net/ipv6/output_core.c
+++ b/net/ipv6/output_core.c
@@ -9,6 +9,24 @@
#include <net/addrco...
2004 May 26
1
error compilling TC
...c
cc1: los avisos son tratados como errores
En el fichero incluído de ../include/utils.h:6,
de utils.c:30:
/usr/src/linux/include/linux/inetdevice.h: En la función `inet_make_mask'':
/usr/src/linux/include/linux/inetdevice.h:173: aviso: declaración implícita
de l
a función `htonl''
/usr/src/linux/include/linux/inetdevice.h: En la función `inet_mask_len'':
/usr/src/linux/include/linux/inetdevice.h:179: aviso: declaración implícita
de l
a función `ntohl''
make[1]: *** [utils.o] Error 1
make[1]: Saliendo directorio `/usr/local/src/iproute2/lib''...
2004 Sep 17
2
[LLVMdev] Inline Assembly (unique arch string for llvm)
...g the
same mostly). Unless I am missing something here. Obviously OS
specific interfaces cannot be general, but for most software, those are
wrapped by the c library.
Why don't we have platform independence as an optional bytecode feature
for well behaved programs? A couple intrinsics to do htonl and friends
would let a peice of bytecode be endian agnostic.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/piperm...
2011 Jan 07
1
[LLVMdev] [PATCH] compiler-rt patch for clean build on Solaris 10 / x86
...0:9: error: unknown type name 'uint16_t'
typedef uint16_t in_port_t;
^
/usr/include/sys/byteorder.h:65:9: error: unknown type name 'uint32_t'
typedef uint32_t in_addr_t;
^
/usr/include/sys/byteorder.h:69:8: error: unknown type name 'uint32_t'
extern uint32_t htonl(uint32_t);
^
/usr/include/sys/byteorder.h:69:23: error: a parameter list without types is only allowed in a function definition
extern uint32_t htonl(uint32_t);
^
/usr/include/sys/byteorder.h:70:8: error: unknown type name 'uint16_t'
extern uint16_t htons(ui...
2010 Jul 20
3
fix byte ordering problem in TFTP/PXE fs access
Hello,
When trying out (g)pxelinux using TFTP URLs and the '<host>::<path>' syntax,
pxelinux seemed to "hang". Some printf debugging and tcpdump revealed that it
looped in the timeout after sending the TFTP RRQ. Further investigation
revealed, that if a plain IP address (e.g. "tftp://12.34.56.78/something") is
used, the byte order is not converted from host
2000 Oct 12
1
openssh on solaris x86
Hi,
we're using SSH-1.5-OpenSSH-1.2.2 and SSH-1.5-OpenSSH-2.2.0p1
on solaris for x86 (Solaris 2.8). Both Versions seem to have a problem
in forwarding ports that may concern htonl/ntohl:
SSH Version OpenSSH_2.2.0p1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090600f).
debug: Seeding random number generator
debug: ssh_connect: getuid 0 geteuid 0 anon 1
debug: Connecting to 6.0.1.1 [6.0.1.1] port 22.
debug: Connection established.
debug: Remote protocol version 1.5, rem...
2001 Dec 18
1
bug, smb 2.2.1a, redhat 7.2
...e 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,
kind regards,...
2004 Sep 23
3
iproute2 tool compiling problems.
...s.o utils.c
cc1: warnings being treated as errors
In file included from ../include/utils.h:6,
from utils.c:30:
/usr/src/linux/include/linux/inetdevice.h: In function
`inet_make_mask'':
/usr/src/linux/include/linux/inetdevice.h:173:
warning: implicit declaration of
function `htonl''
/usr/src/linux/include/linux/inetdevice.h: In function
`inet_mask_len'':
/usr/src/linux/include/linux/inetdevice.h:179:
warning: implicit declaration of
function `ntohl''
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/home/nathan/iproute2/lib''
make: *...
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...nonname != NULL) {
+ ai->ai_canonname = ((char *)ai->ai_addr) + sizeof(struct sockaddr_in);
+ strlcpy(ai->ai_canonname, canonname, canonlen + 1);
+ }
/* XXX: the following is not generally correct, but does what we want */
if (hints->ai_socktype)
@@ -182,21 +195,24 @@
addr = htonl(0x00000000);
if (hostname && inet_aton(hostname, &in) != 0)
addr = in.s_addr;
- *res = malloc_ai(port, addr, hints);
+ *res = malloc_ai(port, addr, hints, NULL);
if (*res == NULL)
return (EAI_MEMORY);
return (0);
}
if (!hostname) {
- *res = malloc_ai(port, h...
2017 Jul 02
13
[Bug 2735] New: Wrong address family handling for tun devices
https://bugzilla.mindrot.org/show_bug.cgi?id=2735
Bug ID: 2735
Summary: Wrong address family handling for tun devices
Product: Portable OpenSSH
Version: 7.5p1
Hardware: Other
OS: Other
Status: NEW
Severity: normal
Priority: P5
Component: ssh
Assignee: unassigned-bugs at