This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PPP+GPRS: BSD UDP RAM Problem

Hello,
We are working in a product that use PPP over GPRS, this device sends little packets UDP (100 bytes) every sencond to a server.

Normally all works fine, but we experiment problems when the GPRS modem has lost the link.

TCPNet provides a routine to check this condition (ppp_is_up), our software are checking it every second and the average time to detect the link loss are around 3 minutes (the time for LCP and DCD analisys).

Basically, my problem is that: 3 minutes x 60 seconds = 180 queued UDP messages, and the device hangs with PPP out of memory.

Im looking for a method to determine how many packets are already queued without transmit, to abort my process before it causes the hang of the device and force the restart of the PPP link.

Am I right?, I have some way to determine what I need?

Thanks
HJS

0