Re: [lwip-users] PPP no IP address assigned

2015-04-01 Thread Patrick Klos
the LCP negotiations looked like? What options were negotiated? If nothing else, what was the ACCM set to? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Using multiple IP addresses on one interface

2016-01-04 Thread Patrick Klos
on? Patrick Klos Laufer Wind ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Using multiple IP addresses on one interface

2016-01-05 Thread Patrick Klos
void modifying the LwIP stack if at all possible. If I get a chance, I'll pull out my Tiva Launchpad and see if I can rig up something like what you're trying to do. Good luck, Patrick Klos Laufer Wind ___ lwip-users mailing list lwip-users@nongnu.org ht

Re: [lwip-users] [Free Webinar] Digital Power for Xilinx Zynq Free Webinar 12th July

2016-06-21 Thread Patrick Klos
Hi , Digital Power on the Xilinx Zynq Webinar As an electronics engineer, you will no doubt be switched on to ELMG Digital Power’s stellar reputation as specialists in FPGA and power electronics. This coming month, on Tuesday 12^th July, they are offering you the

Re: [lwip-users] Weird PPP behavior

2016-03-02 Thread Patrick Klos
ill think the actual byte stream may shed some light on what might be happening?? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Force PPP TermReq (Lwip 2.0.0 RC2)

2016-08-10 Thread Patrick Klos
(no charge). Or if you have packets in the form of raw bytes, I could help you decode them. Just post or email them. Patrick Klos Laufer Wind (and Klos Technologies, Inc.) ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailma

Re: [lwip-users] PPP MPPE "Optional" Support

2016-08-10 Thread Patrick Klos
ned state. Once LCP finishes, you'll know if you've negotiated MSCHAPv2 and if you even need to enable CCP (and MPPE) negotiations. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Force PPP TermReq (Lwip 2.0.0 RC2)

2016-08-04 Thread Patrick Klos
On 8/4/2016 6:30 PM, Sylvain Rochet wrote: Hello, On Thu, Aug 04, 2016 at 10:15:56AM -0400, Patrick Klos wrote: Again, the TermReq packet is an LCP packet. If your peer is ignoring all LCP packets (as you stated earlier), it's just ignore that packet as well. I'm sure you could find a way

Re: [lwip-users] Force PPP TermReq (Lwip 2.0.0 RC2)

2016-08-04 Thread Patrick Klos
. I'm sure you could find a way to get LwIP to send the packet - just not sure if it'll help given your symptoms. Describe the exact link setup between the peers and get a packet trace. :o) Patrick Klos Laufer Wind ___ lwip-users mailing list lwip

Re: [lwip-users] Connection freeze after 29200 Bytes

2016-08-08 Thread Patrick Klos
, have you noticed that 29200 is exactly 20 packets of 1460 bytes each? I wonder if you're freeing the buffers properly once you're done with them? Patrick Klos Laufer Wind ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org

Re: [lwip-users] SNMP, Malformed Packet

2017-01-31 Thread Patrick Klos
? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Debug pppos packet loss issue

2017-03-02 Thread Patrick Klos
On 3/2/2017 8:10 AM, Sylvain Rochet wrote: Hi Axel, On Thu, Mar 02, 2017 at 08:55:15PM +0800, Axel Lin wrote: Hi, I'm using current lwIP master tree. I got my device connect to internet via 4G/LTE module now (by PPPoS). However, I found sometimes download file size mismatch when try to

Re: [lwip-users] Debug pppos packet loss issue

2017-03-02 Thread Patrick Klos
Hello again Axel, On 3/2/2017 10:11 AM, Axel Lin wrote: HTTP uses TCP so whatever happens you shouldn't have a size mismatch. I was thinking the same thing. If you get to the end of the HTTP download with a file, then the network communications via TCP is (probably) not responsible for the

Re: [lwip-users] Debug pppos packet loss issue

2017-03-03 Thread Patrick Klos
On 3/3/2017 5:59 AM, Axel Lin wrote: Axel Lin" wrote: LTE or not doesn't matter much: TCP should rearrange the stream based on good checksums and sequence numbers. If anything is wrong at the application level, I would first debug the application, not the PPP connection. Actually, I did

Re: [lwip-users] PPPOS udp error

2017-07-31 Thread Patrick Klos
On 7/31/2017 12:15 AM, parwat...@yashaswinies.com wrote: Hello all, I am running udp client on lwip 2.0.2 stack with pppos on controller its only sending 14 times after that I am not receiving anything in server(running in linux machine). same problem while receiving also.. How to resolve

Re: [lwip-users] PPPoS: ppp session disconnect if hit bad fcs for LCP packet

2017-06-30 Thread Patrick Klos
? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] ?==?utf-8?q? UDP-based reliable bulk data transfer

2017-04-25 Thread Patrick Klos
be a simple protocol to implement, but I haven't implemented it myself (at least not as a high speed data transfer protocol). We had ENET on our device for other reasons, but have since removed it and replaced it with a simpler "reliable UDP protocol" we wrote ourselves. Patrick

Re: [lwip-users] Potential NULL pointer access in ip4_frag.c

2017-04-26 Thread Patrick Klos
On 4/26/2017 3:31 AM, Andreas Dinter wrote: Potential NULL pointer access in ip4_frag.c Hi, When compiling ip4_frag.c with GCC option -Wnull-dereference, it complains with the following warning. ../../../lwIp/src/core/ipv4/ip4_frag.c:327:16: warning: potential null pointer dereference

Re: [lwip-users] UDP-based reliable bulk data transfer

2017-04-25 Thread Patrick Klos
t to a single buffer pbuf depending on the capabilities of the ethernet interface. Even so, your Zynq processor will probably be able to handle the copies faster than a 1Gb link could transfer the data? Good luck! Patrick Klos Klos Technologies, Inc. __

Re: [lwip-users] PPPOS udp error

2017-08-01 Thread Patrick Klos
you're using a variable before it has been initialized?!?) Patrick Klos Klos Technologies, Inc. pbuffer = pbuf_alloc(PBUF_TRANSPORT, len, PBUF_POOL); memcpy(pbuffer->payload, buffer, len); pbuffer->len = pbuffer->tot_len = len; status = udp_send(sock, pbuffer);

Re: [lwip-users] Once UDP fails to receive then resending fails as well

2017-05-06 Thread Patrick Klos
and the HP-Unix machine, and feed the monitored traffic to a port that goes to your Wireshark machine? Those things can be tricky (i.e. a pain in the ass), so you really need to know what's going on. I thank you to give ideas. It's my pleasure. Good luck! Patrick Klos Klos Technol

Re: [lwip-users] Once UDP fails to receive then resending fails as well

2017-05-04 Thread Patrick Klos
ee traffic for a while? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] malloc limitation

2017-09-06 Thread Patrick Klos
On 9/6/2017 1:55 AM, Ran Shalit wrote: Hello, I porting lwip into uc/os, but noticed that lwip use malloc() operation, and I have limitation with this OS, thet malloc is limited to 4045. Is that 4045 bytes max per allocation?  Or 4045 bytes total allocatable space? Does it mean that it

Re: [lwip-users] Socket recv of large message.

2017-10-03 Thread Patrick Klos
to tell where "messages" start and stop. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] PPPoS with Telit LE910 Modem

2018-05-29 Thread Patrick Klos
modem as well? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Slip connection using uart

2017-12-27 Thread Patrick Klos
On 12/27/2017 11:04 AM, Prashant Gupta wrote: can i use PPP over serial port?? Yes, that's what PPP was made for.  :) Patrick Klos Klos Technologies, Inc. On Wed, Dec 27, 2017 at 5:52 PM, Sergio R. Caprile <scapr...@gmail.com <mailto:scapr...@gmail.com>> wrote: > I am n

Re: [lwip-users] Enabling DHCP option 50

2018-02-09 Thread Patrick Klos
clude some other option in DHCP message or this is enough? Not sure, but not usually with DHCP. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Is it possible to pass ARP requests from the Ethernet to PPPoS?

2018-02-08 Thread Patrick Klos
IP address, and LwIP would need to have a route or two to route them? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] PPPoS TCP Connection Reject

2018-08-01 Thread Patrick Klos
packetizes the serial stream, presenting the LwIP interface with packets.  There is no such thing as passing data transparently from the modem to LwIP. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.no

Re: [lwip-users] PPP: IPCP bad fcs issue

2018-08-15 Thread Patrick Klos
On 8/15/2018 4:19 PM, Sylvain Rochet wrote: But what is very strange is that checksum including checksum itself for comparison purpose for "0x01 0x01 0x16 0x03 0x6 0x81 0x6 0x83 0x06 0x6e 0xdb" is 0xeb 0xbe, which is not 0x4114 (nor 0x1441 with byte swap) as displayed in your "Dropping bad fcs"

Re: [lwip-users] Re-Transmission from PC is ignored due to sequence number

2018-04-20 Thread Patrick Klos
let's figure out where the payload packet went.  Maybe you can add debug output in your ethernet output routine? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Re-Transmission from PC is ignored due to sequence number

2018-04-23 Thread Patrick Klos
it sent a response to the PC (bumping the ACK to 9b56), LwIP should have noticed that and resent the data from the previous packet. Patrick Klos-2 wrote Based on your description, yes, LwIP is acting properly. You need to find out why the payload packet isn't making it to the PC? How big

Re: [lwip-users] Re-Transmission from PC is ignored due to sequence number

2018-04-23 Thread Patrick Klos
On 4/23/2018 11:49 AM, goldsi...@gmx.de wrote: On 23.04.2018 17:18, Patrick Klos wrote: [..] Thinking about the retransmission from PC side: Shouldn't lwip also do a retransmission of the lost frame? You know, these bytes never get acknowledged by PC. Yes, the LwIP side should have

Re: [lwip-users] LWIP+PPPos(GPRS)

2018-03-27 Thread Patrick Klos
ntly the PPP packets), followed by a disconnect (likely due to not getting answers to the packets the other side sent after a reasonable amount of time)? Can you log the data your device is trying to send over the modem as well?  (and dumping the serial data in hex would make decoding the packet

Re: [lwip-users] UDP and TCP concurrent operation causing fault

2018-11-15 Thread Patrick Klos
by the time you try to use it again, that could break things? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] PPP proxy arp support

2018-10-10 Thread Patrick Klos
ask, and default gateway?  Does it support DHCP or is it manually configured?  Does that "antiquated hardware" just need to talk to MCU#2 or does it need to communicate with other devices on the network (or on the Internet) as well? Good luck, Patrick Klos Klos Technologies, Inc. _

Re: [lwip-users] PPP proxy arp support [fixed typo]

2018-10-10 Thread Patrick Klos
On 10/10/2018 8:59 AM, Patrick Klos wrote: On 10/9/2018 8:24 PM, Bob Jones wrote: Hello, I'm trying to resolve an issue with regards to PPP and ARP requests. My network topology is as follows, Laptop (192.168.1.3, ethernet) <-> MCU #1 (192.168.1.4, ethernet) <-> MCU #1 (192.16

Re: [lwip-users] Pbuf Assert

2018-09-27 Thread Patrick Klos
en dereferenced (freed) more than it has been referenced.  Check that you're not freeing the pbuf more than once. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Error: IPADDR4_INIT_BYTES(a,b,c,d)

2019-01-16 Thread Patrick Klos
? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Do I have Internet Connection?pppos-GSM

2018-12-22 Thread Patrick Klos
30 5E 00 00 7F 01 39 47 64 7A 0F 44 08 08 08 08 08 00 48 ^^ ^^ ^^ ^^ 100.122.15.68? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman

Re: [lwip-users] PPPos problem LWIP2.1

2018-12-15 Thread Patrick Klos
How much memory do you have available on this processor?  Maybe you can set aside some memory to store debug messages rather then trying to print them in real time?  Then you can view the messages later where viewing them won't have an impact on the PPP link?? Patrick

Re: [lwip-users] PPPos problem LWIP2.1

2018-12-14 Thread Patrick Klos
}     {FF}{03}{C0}{21}{01}{01}{00}{12}{02} Those are not valid packets. Does your hardware have a 16 byte FIFO on the serial receiver?  Is your serial port receiver interrupt driven?  What baud rate are you running at? Patrick Klos Klos Technologies, Inc

Re: [lwip-users] PPPos problem LWIP2.1

2018-12-14 Thread Patrick Klos
port so you can take the bytes before the FIFO fills and you start losing bytes?? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] PPPos problem LWIP2.1

2018-12-14 Thread Patrick Klos
On 12/14/2018 3:55 PM, arsz6733 wrote: My processor doesn't do anything else just get 32 byte pass it to ppp clear buffer using memset and that repeats again Why are you waiting for 32 bytes?  Where is that number coming from?  Why don't you pass each byte as they come in individually? Or at

Re: [lwip-users] Do I have Internet Connection?pppos-GSM

2018-12-21 Thread Patrick Klos
hernet interface? If you could use a debugger to step through the receive code for the IP/ICMP packet (or instrument the receive code with some short printf()'s), maybe you can see what it's doing with the packet or why it might be rejecting it?? Patrick Klos Klos Technologie

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Patrick Klos
responding to the CHAP challenges. Are you dialing into an ISP (which would require authentication) or into another system configured to be a "server"?  Either way, the peer is expecting you to have a username and password of some kind, but you're not responding to their challenges. Also

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Patrick Klos
On 3/20/2019 1:48 PM, Sylvain Rochet wrote: Hi Patrick, Hi Sylvain, On Wed, Mar 20, 2019 at 01:20:02PM -0400, Patrick Klos wrote: For whatever reason, you're not responding to the CHAP challenges. Are you dialing into an ISP (which would require authentication) or into another system

Re: [lwip-users] Handle a broadcast storm

2019-03-21 Thread Patrick Klos
receiving?  Are these broadcast packets actually IP and/or ARP packets?  If they aren't, maybe you can optimize the path in your device's ethernet driver to discard these uninteresting packets more efficiently? Patrick Klos Klos Technologies, Inc

Re: [lwip-users] Handle a broadcast storm

2019-03-21 Thread Patrick Klos
tional.  That device appears to have a TCP/IP stack that should never have let the (invalid) broadcast TCP packet(s) get anywhere near the TCP stack. And why is it responding with (at least) 9 TCP RST packets? Yes, a PCAP file would be a little more useful / interesting. Patrick Klo

Re: [lwip-users] Handle a broadcast storm

2019-03-22 Thread Patrick Klos
On 3/22/2019 3:17 AM, michele.corra...@socomec.com wrote: Dear all, thanks for all your replies and sorry if I didn't add enough information. I'm not able to reply to your questions now, I have to check with ITD to try to discover that device. As you can see the problem I'm experiencing in my

Re: [lwip-users] "pack dropped, no space" after 7 hrs and 35 min

2019-07-30 Thread Patrick Klos
ns at 7 hours and 35 minutes?  What other network activity or protocols are active at the same time?  Can you provide a packet trace file? Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/m

Re: [lwip-users] "pack dropped, no space" after 7 hrs and 35 min

2019-08-07 Thread Patrick Klos
send only 1 packet per second? Or 1 packet every few seconds??  If it always stops at 7 hours and 35 minutes, that's a pretty significant clue. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.or

Re: [lwip-users] Unable to ping or telnet lwIP echo serverafter DHCP Timeout and ARP requests

2019-10-21 Thread Patrick Klos
On 10/21/2019 3:49 PM, jcwilli585 wrote: I run the lwip echo server on the zynq 7020 and I get a DHCP timeout error. When I ping the default IP address of 192.168.1.10 I get either "Request timed out" or "Destination is unreachable" and telnet is unable to connect. I connect directly to the rj45

Re: [lwip-users] LwIP tweaking the TCP stack behavior

2020-02-20 Thread Patrick Klos
you change the behavior of your LwIP TCP stack, the "other listening device" will not understand your broken TCP implementation and won't work properly with it. Patrick Klos ___ lwip-users mailing list lwip-users@nongnu.org https://list

Re: [lwip-users] Very basic query regarding udp_sendto

2020-04-07 Thread Patrick Klos
On 4/7/2020 8:15 AM, Hemant Kapoor wrote: Hello, I am a newbie to networking and managed to port lwip stack to LPC17xx controller runninf freertos. I have requirement to send UDP data to a static destination IP Address. I have a task which tries to send a UDP Packet every one second. When I

Re: [lwip-users] lwip hangs after >12 hours of work

2020-03-26 Thread Patrick Klos
On 3/26/2020 11:23 AM, Artem Moroz wrote: Can it be some problems in PPOS input path? Some data that may hang PPOS in case of bad input. I doubt this is stack overflow or timer wrap-around, I have double checked this I doubt an input issue would consistently show up at 12 hours on a regular

Re: [lwip-users] lwip hangs after >12 hours of work

2020-03-25 Thread Patrick Klos
hunting! Patrick Klos Klos Technologies, Inc. On 3/25/2020 7:06 PM, Artem Moroz wrote: Hi, All! I have STM32F7 board with lwip 2.0.3 running PPOS connection with SIMCOM modem. I am attaching my lwipopts.h file. lwipopts.h <http://lwip.100.n7.nabble.com/file/t2270/lwipopts.h> After some

Re: [lwip-users] Get max throughput UDP handling

2020-10-09 Thread Patrick Klos
On 10/9/2020 5:02 AM, Mário Luzeiro wrote: Hello all, I'm sending UDP messages sequential, at "full speed" from a PC to a MCU (using Lwip) I know I'm loosing some UDP messages (I implemented a sequential counter to debug it) the udp_recv_fn is doing nothing much and exists almost

Re: [lwip-users] Sending a large amount of data using UDP

2020-07-19 Thread Patrick Klos
- it's not that complicated) Regards Jon On 19/07/2020 15:18, Patrick Klos wrote: On 7/19/2020 6:44 AM, Jon Bean wrote: Hi I have an application were I need to send around 4k of data using UDP. What I would like to know is how I go about sending this using LWIP. I can send small packets

Re: [lwip-users] Sending a large amount of data using UDP

2020-07-19 Thread Patrick Klos
and fixed - it's not that complicated) Regards Jon On 19/07/2020 15:18, Patrick Klos wrote: On 7/19/2020 6:44 AM, Jon Bean wrote: Hi I have an application were I need to send around 4k of data using UDP. What I would like to know is how I go about sending this using LWIP. I can send small

Re: [lwip-users] Sending a large amount of data using UDP

2020-07-19 Thread Patrick Klos
On 7/19/2020 6:44 AM, Jon Bean wrote: Hi I have an application were I need to send around 4k of data using UDP. What I would like to know is how I go about sending this using LWIP. I can send small packets no problem. I first allocate a pbuf. Then copy my data to the pbuf. Then send the

Re: [lwip-users] UDP send example

2020-07-10 Thread Patrick Klos
ds [%d])\n", subtick/120, ((subtick%120)*1000)/120, subtick);     }     pbuf_free(p);     }     else     {     printf("Couldn't allocate a pbuf!!\n");     } Good luck! Patrick Klos Klos Technologies, Inc. ___

Re: [lwip-users] UDP send example

2020-07-10 Thread Patrick Klos
04x\n",                         addr.ip4.addr, port, udp_addr.ip4.addr, udp_port); (what version of LwIP are you using?  I still have 1.4.1 on my TIVA Launchpad) See if (make sure) you get the same numbers to start with. Patrick On 10/07/2020 13:06, Patrick Klos wrote: On 7/10/2020 6:44 AM, Jon Bean

Re: [lwip-users] UDP send example

2020-07-10 Thread Patrick Klos
y to use it? I've been using LwIP with the TIVA platform over 5 years (maybe 7?) and it has been working quite well for me.  I'm sure you'll be able to get things working without too much (more) trouble. Patrick On 10/07/2020 13:37, Patrick Klos wrote: On 7/10/2020 8:19 AM, Jon Bean wrote: Hi