search for: ntohs

Displaying 20 results from an estimated 228 matches for "ntohs".

2013 Mar 28
2
[Bridge] [PATCH v2] net: add ETH_P_802_3_MIN
...net.c index 5679633..4d56536 100644 --- a/drivers/firewire/net.c +++ b/drivers/firewire/net.c @@ -547,7 +547,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net, if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) skb->pkt_type = PACKET_OTHERHOST; } - if (ntohs(eth->h_proto) >= 1536) { + if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { protocol = eth->h_proto; } else { rawp = (u16 *)skb->data; diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c index babc621..88d657d 100644 --- a/drivers/isdn/i4l/isdn_net.c ++...
2005 Oct 14
5
[PATCH] Fix NAT for domU checksum offload
...*tuple, + enum ip_nat_manip_type maniptype, + const union ip_conntrack_manip_proto *min, + const union ip_conntrack_manip_proto *max) +{ + u_int16_t port; + + if (maniptype == IP_NAT_MANIP_SRC) + port = tuple->src.u.tcp.port; + else + port = tuple->dst.u.tcp.port; + + return ntohs(port) >= ntohs(min->tcp.port) + && ntohs(port) <= ntohs(max->tcp.port); +} + +static int +tcp_unique_tuple(struct ip_conntrack_tuple *tuple, + const struct ip_nat_range *range, + enum ip_nat_manip_type maniptype, + const struct ip_conntrack *conntrack) +{ + static u_int16...
2005 Mar 10
5
asterisk and Broadvoice Outgoing Again :(
Hi, I can't make outgoing calls via Broadvoice. I have tried each and every configuration that was posted to list previously. I am able to receive incoming calls fine. I get the following in asterisk console: ===================================================== asterisk*CLI> show version Asterisk CVS-HEAD-03/10/05-22:51:28 built by vicky@asterisk on a i686 running Linux
2010 Jul 29
3
[PATCH 1/1] O2net: Disallow o2net accept connection request from itself.
...ICE, "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 Nov 26
1
[PATCH] daemon/Win32: provide htonl, htons, ntohl, ntohs functions.
...tp://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 +- 5 files ch...
2006 Oct 23
1
[Bug 512] poptop (pptpd) will not work if ip_nat_pptp loaded
...ow_bug.cgi?id=512 ------- Additional Comments From yi_he@pmc-sierra.com 2006-10-23 09:09 MET ------- I've met the problem in the 2.4 kernel as well, and I modified the source linux/net/ipv4/netfilter/ip_nat_pptp.c like this: in function pptp_outbound_pkt(): ...... switch (msg = ntohs(ctlh->messageType)) { case PPTP_OUT_CALL_REQUEST: cid = &pptpReq.ocreq->callID; /* FIXME: ideally we would want to reserve a call ID * here. current netfilter NAT core is not able to do * this :( For now we use TCP source port. This breaks * multiple calls within one...
2012 Dec 14
1
[Bridge] [PATCH] bridge: Bug fix for incorrect interpretation of MLDv2 maximum response code
...,7 @@ static int br_ip6_multicast_query(struct net_bridge *br, mld2q = (struct mld2_query *)icmp6_hdr(skb); if (!mld2q->mld2q_nsrcs) group = &mld2q->mld2q_mca; - max_delay = mld2q->mld2q_mrc ? MLDV2_MRC(mld2q->mld2q_mrc) : 1; + max_delay = mld2q->mld2q_mrc ? MLDV2_MRC(ntohs(mld2q->mld2q_mrc)) : 1; } if (!group)
2013 Nov 28
4
[PATCH net] xen-netback: fix fragment detection in checksum setup
...f *skb, struct iphdr *iph = (void *)skb->data; unsigned int header_size; unsigned int off; + bool fragment; int err = -EPROTO; + fragment = false; + off = sizeof(struct iphdr); header_size = skb->network_header + off + MAX_IPOPTLEN; maybe_pull_tail(skb, header_size); + if (ntohs(iph->frag_off) & 0x3fff) + fragment = true; + off = iph->ihl * 4; + if (fragment) { + if (net_ratelimit()) + netdev_err(vif->dev, "Packet is a fragment!\n"); + goto out; + } + switch (iph->protocol) { case IPPROTO_TCP: if (!skb_partial_csum_set(skb, off, @@...
1998 Jul 09
4
What is someone looking for??
I am currently blocking out netbios UDP port 137 on my firewall and was wondering what the following means in terms of security: Jul 9 16:19:05 oscar kernel: IP fw-in rej eth0 UDP SOMEONES_IP:137 MY_IP:137 L=78 S=0x00 I=46484 F=0x0000 T=111 I have gottena few 100 of these and was wondering if there are some vulnerabilties related to netbios out there?? What do the S/I/F/L fields stand for?? I
2006 Jun 20
1
ipp2p
Hello, I''m trying to use iptables rules to prioritize p2p trafic. I use ipp2p-0.8 but it give me errors : Ipt-ipp2p : unknow symbol ntohl Ipt-ipp2p : unknow symbol ntohs When i compiled ipp2p it gave me warnings : "ntohs" …/ipt-ipp2p.ko undefined "ntohl" …/ipt-ipp2p.ko undefined Any suggestion ? gege ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yah...
2008 Sep 29
0
[LLVMdev] Architecture Dependency of LLVM bitcode (was Re: compile linux kernel)
On Mon, Sep 29, 2008 at 8:18 AM, Christian Plessl <christian.plessl at uni-paderborn.de> wrote: > - Is the architecture dependence of LLVM IR only an artifact of llvm- > gcc producing architecture dependent results? No. It also is an artifact of code compiling architecture and OS dependent features based on what they detect at configure time It is an artifact of compiling non-type
2015 Feb 25
6
Current 6.8 git build issues on HP-UX
On Tue, 24 Feb 2015, Darren Tucker wrote: | On Tue, Feb 24, 2015 at 3:11 PM, Kevin Brott <kevin.brott at gmail.com> wrote: | | > [...] | > "cipher-aesctr.c", line 30: warning #2260-D: explicit type is missing | > ("int" assumed) | > static inline void | > | | does replacing "inline" with "__inline__" work? Failing that,
2011 Jan 07
1
[LLVMdev] [PATCH] compiler-rt patch for clean build on Solaris 10 / x86
..._t ntohl(uint32_t); ^ /usr/include/sys/byteorder.h:71:24: error: a parameter list without types is only allowed in a function definition extern uint32_t ntohl(uint32_t); ^ /usr/include/sys/byteorder.h:72:8: error: unknown type name 'uint16_t' extern uint16_t ntohs(uint16_t); ^ /usr/include/sys/byteorder.h:72:23: error: a parameter list without types is only allowed in a function definition extern uint16_t ntohs(uint16_t); ^ 10 errors generated. gmake[2]: *** [lib/CMakeFiles/CompilerRT-Generic.dir/absvdi2.c.o] Error 1 gmake[1]:...
2008 Sep 29
1
[LLVMdev] Architecture Dependency of LLVM bitcode (was Re: compile linux kernel)
On Mon, Sep 29, 2008 at 6:46 AM, Andrew Lenharth <andrewl at lenharth.org> wrote: > hton and ntoh intrinsics. You can write these portably already; just store to an i32, cast the pointer to i8, read out the bytes, then reconstruct the i32. If I recall correctly, scalarrepl+instcombine should be able to eliminate the abstraction if they have target information. -Eli
2020 Aug 03
0
[PATCH v2 18/24] mlxbf-tmfifo: sparse tags for config access
...llanox/mlxbf-tmfifo.c +++ b/drivers/platform/mellanox/mlxbf-tmfifo.c @@ -625,7 +625,10 @@ static void mlxbf_tmfifo_rxtx_header(struct mlxbf_tmfifo_vring *vring, vdev_id = VIRTIO_ID_NET; hdr_len = sizeof(struct virtio_net_hdr); config = &fifo->vdev[vdev_id]->config.net; - if (ntohs(hdr.len) > config->mtu + + /* A legacy-only interface for now. */ + if (ntohs(hdr.len) > + __virtio16_to_cpu(virtio_legacy_is_little_endian(), + config->mtu) + MLXBF_TMFIFO_NET_L2_OVERHEAD) return; } else { @@ -1231,8 +1234,12 @@ static int mlxbf_tmfi...
2008 Jun 19
0
[patch 05/15] virtio_net: Fix skb->csum_start computation
...--- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -83,9 +83,7 @@ static void receive_skb(struct net_devic BUG_ON(len > MAX_PACKET_LEN); skb_trim(skb, len); - skb->protocol = eth_type_trans(skb, dev); - pr_debug("Receiving skb proto 0x%04x len %i type %i\n", - ntohs(skb->protocol), skb->len, skb->pkt_type); + dev->stats.rx_bytes += skb->len; dev->stats.rx_packets++; @@ -95,6 +93,10 @@ static void receive_skb(struct net_devic goto frame_err; } + skb->protocol = eth_type_trans(skb, dev); + pr_debug("Receiving skb proto 0x%...
2003 Apr 11
3
Please help: how to enable tftp-hpa (0.33) for large file
Hi: I compiled and run tftp-hpa-0.33 on my Solaris 2.7 but it does not support file size larger than 16MB. The tftpd time out when 16MB of file is transfered. Can anyone offer a hint for how to enable tftp-hpa to support large file size ? Very appreciate Geefu Wang
1998 Nov 14
0
SAMBA 2.0 Alpha15 in UnixWare 2.1.3
...ed from include/includes.h:174, from smbd/server.c:22: /usr/include/arpa/inet.h:65: conflicting types for `htons' /usr/local/lib/gcc-lib/i486-onsite-sysv4.2/2.7.2/include/sys/byteorder.h:60: previous declaration of `htons' /usr/include/arpa/inet.h:71: conflicting types for `ntohs' /usr/local/lib/gcc-lib/i486-onsite-sysv4.2/2.7.2/include/sys/byteorder.h:140 : previous declaration of `ntohs' gmake: *** [smbd/server.o] Error 1 THANX in advance for your help! Selim
2008 Jun 16
1
[PATCH] virtio_net: Fix skb->csum_start computation (2.6.24, 2.6.25)
...t.c +++ b/drivers/net/virtio_net.c @@ -86,9 +86,7 @@ static void receive_skb(struct net_device *dev, struct sk_buff *skb, BUG_ON(len > MAX_PACKET_LEN); skb_trim(skb, len); - skb->protocol = eth_type_trans(skb, dev); - pr_debug("Receiving skb proto 0x%04x len %i type %i\n", - ntohs(skb->protocol), skb->len, skb->pkt_type); + dev->stats.rx_bytes += skb->len; dev->stats.rx_packets++; @@ -98,6 +96,10 @@ static void receive_skb(struct net_device *dev, struct sk_buff *skb, goto frame_err; } + skb->protocol = eth_type_trans(skb, dev); + pr_debug(&...
2014 Feb 03
1
OpenSSH 6.5 on HP-UX 10.20
Hi, just a minor bugreport. OpenSSH 6.5 needs a fix to compile on HP-UX 10.20. On HP-UX 10.20, ntohs is not defined in "netinet/in.h" but in "arpa/inet.h". readconf.c misses the required additional #include <arpa/inet.h>: $ diff -c readconf.c readconf.c_new *** readconf.c Fri Jan 17 14:03:57 2014 --- readconf.c_new Mon Feb 3 01:18:29 2014 *************** *** 22,2...