summaryrefslogtreecommitdiffstats
path: root/gatchat
AgeCommit message (Collapse)AuthorFilesLines
2010-04-24Allow real wrapping around of HDLC transmit ring bufferMarcel Holtmann1-2/+2
2010-04-24Add offset parameter to ring_buffer_write_ptr() functionMarcel Holtmann5-10/+12
2010-04-24Add support for wrapping of HDLC transmit ring bufferMarcel Holtmann1-30/+57
2010-04-23Use HDLC_FCS helper where possibleMarcel Holtmann1-1/+1
2010-04-23Use HDLC constants instead of magic numbersMarcel Holtmann1-4/+4
2010-04-23Add support for wrapping of HDLC receive ring bufferMarcel Holtmann1-21/+34
2010-04-22ppp: Fix trivial style errorDenis Kenzior1-1/+1
2010-04-22ppp: change MTU on TUN device when MRU option receivedKristen Carlson Accardi3-5/+23
2010-04-22ppp: Request MRU if we ever get NAKed with itDenis Kenzior1-3/+45
Huawei E160G hardware seems to NAK our configure request and suggest that it will never send packets bigger than 1440 bytes. Since we don't particularly care (our receive ring buffer is 4K, so it can handle 2048 byte packets), we just re-send the Configure Request with the preferred value.
2010-04-22ppp: Fix trivial copy paste errorDenis Kenzior1-1/+1
2010-04-22ppp: Shut off IPCP when entering TERMINATING phaseDenis Kenzior1-0/+2
2010-04-22ppp: implement MRU optionKristen Carlson Accardi4-2/+33
If the peer requests a MRU option, set the mtu for the network phase. When we are in link establishment phase, we should continue to behave as if no option has been set and the peer should use the default MRU. This option is required for the Huawei E160G modem.
2010-04-15No to check for NULL pointers with g_freeMarcel Holtmann1-4/+2
2010-04-14ppp: nak unknown auth protocolKristen Carlson Accardi3-4/+38
If we are sent a Config-Request for an auth proto other than CHAP with MD5, send a NAK.
2010-04-14Fix: GAtMux channels should return EAGAINDenis Kenzior1-0/+3
GAtChat uses non-blocking semantics, so the GAtMux channels should return the EAGAIN status to make GAtChat work properly.
2010-04-13ppp: Refing the channel is actually not necessaryDenis Kenzior1-3/+2
The read_watch and write_watches both take a ref
2010-04-13Fix: Don't try to set channel flags if they're 0Denis Kenzior1-6/+7
2010-04-13ppp: TUN channel should not be opened NONBLOCKINGDenis Kenzior1-1/+1
We don't handle it as a nonblocking channel and getting it right would be a nightmare.
2010-04-13ppp: Cleanup function definitions in ppp.hDenis Kenzior1-11/+16
2010-04-13ppp: remove pfc and acfcKristen Carlson Accardi3-35/+1
We will not support pfc or acfc
2010-04-13ppp: remove references to magic numberKristen Carlson Accardi2-6/+8
We will not support loopback detection.
2010-04-13ppp: Get rid of net_open and net_closeDenis Kenzior3-63/+50
There really isn't a need for these now
2010-04-13ppp: Introduce ppp_net_down_notifyDenis Kenzior3-0/+7
2010-04-13ppp: Introduce ppp_net_up_notify and use itDenis Kenzior3-16/+17
This is slightly cleaner way than defining a weird callback function.
2010-04-13ppp: Hide ppp_net definition in ppp_net.cDenis Kenzior3-37/+45
2010-04-13ppp: Use chap functions directly, instead of authDenis Kenzior1-11/+9
2010-04-13ppp: Remove auth_ functions from ppp_auth.cDenis Kenzior2-110/+33
These really serve no purpose right now as we use only CHAP. So they only take up space and make the code harder to read. If we implement 1-3 auth protocols, then they're easier handled inside gatppp.c. If we have more, then a proper auth driver framework is required.
2010-04-13ppp: introduce ppp_auth_notifyDenis Kenzior2-0/+9
This function will be notified whenever authentication has succeeded / failed. This can happen in the authentication phase or during the network phase. If auth fails, then we should proceed to the terminate phase.
2010-04-13ppp: Add set / get password & usernameDenis Kenzior2-6/+34
Also refactor the set credentials function, we will be removing the auth object shortly
2010-04-13ppp: Transition the phase directlyDenis Kenzior3-76/+33
Use of the generate event function, while more 'pure' with regard to how the spec views transitions, actually makes code more difficult to read. Instead use phase transitions directly inside gatppp. This still bleeds through a little into lcp code, and probably should be fixed in a better way eventually.
2010-04-13ppp: Refactor how tls/tlu/tld/tlf are usedDenis Kenzior1-13/+6
With the upper layer driving these, the special handling is no longer required.
2010-04-13ppp: Let the upper layer handle open / up eventsDenis Kenzior3-19/+2
This removes the need for the layer_started functions in lcp and ipcp. For LCP the link is always up unless the socket has been closed, and for IPCP the link should be opened as soon as LCP is ready anyway.
2010-04-13Merge: make linkDenis Kenzior1-2/+2
2010-04-13ppp: Reset the options whenever the layer is downDenis Kenzior2-11/+32
So we can re-negotiate the options if the layer is opened again.
2010-04-13ppp: Rename data to pppcpDenis Kenzior1-6/+2
2010-04-13ppp: unref should mean a hard shutdownDenis Kenzior1-27/+20
This can happen when e.g. the modem is physically removed from the system and it is not feasible to wait for the nice shutdown state to be reached.
2010-04-13ppp: Signal Down & Close when socket is closedDenis Kenzior1-0/+2
2010-04-13ppp: Add pppcp_signal_downDenis Kenzior2-0/+6
For use when the link is abruptly terminated by the remote side
2010-04-13ppp: Use pppcp_signal functions directlyDenis Kenzior3-35/+6
No real need to wrap them behind lcp_ functions
2010-04-13ppp: Keep track when read watcher diesDenis Kenzior1-4/+11
2010-04-13ppp: Remove unused defineDenis Kenzior1-1/+0
2010-04-12Fix: busy loop in atserverDenis Kenzior1-1/+1
2010-04-12Reindent the handler registration inside AT serverMarcel Holtmann1-18/+19
2010-04-12Use ppp_debug() for PPP CP event debug statementsMarcel Holtmann1-13/+20
2010-04-12Remove useless debug in PPP transmit destroy callbackMarcel Holtmann1-2/+1
2010-04-12Remove various GDestroyNotify function castingMarcel Holtmann3-16/+30
2010-04-12The exit() function should always use positive exit valuesMarcel Holtmann1-3/+3
2010-04-12Fix file descriptor leakage when closing PPP recordingMarcel Holtmann1-1/+3
2010-04-12The AT+CGDATA command should return CONNECT on successMarcel Holtmann1-1/+1
2010-04-12Add fake support for AT+CGDATA and AT+CGDCONT inside AT serverMarcel Holtmann1-0/+52