summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_net.c
AgeCommit message (Collapse)AuthorFilesLines
2015-07-28ppp_net: Make static analysis tools happyDenis Kenzior1-1/+1
The kernel simply puts a null terminator at index 15 prior to ifr_name processing. So we do the same. Original report by: Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com> Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the destination string unterminated. 67 strncpy(ifr.ifr_name, net->if_name, sizeof(ifr.ifr_name));
2015-07-01build: make ofono build against muslSergey Alirzaev1-1/+1
ifdef away GNU libc extensions and use a POSIXly correct pointer type
2012-08-30gatchat: Print error message if opening tun failesDaniel Wagner1-1/+5
This is a very common mistake. Let's help the users to configure their system correctly.
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-06-29ppp: Add basic length sanity checksDenis Kenzior1-2/+8
2011-05-27gatchat: Fix unused variable casesMarcel Holtmann1-0/+2
2011-05-25ppp_net: Keep valgrind happyDenis Kenzior1-1/+2
2011-05-24ppp_net: add ppp_net_resume_interface() APIGuillaume Zajac1-0/+10
2011-05-24ppp_net: streamline ppp_net_new logicDenis Kenzior1-16/+9
2011-05-24gatppp: Add new contructor to use external fdGuillaume Zajac1-15/+32
2011-05-08ppp_net: Reset the watch to zero when removingDenis Kenzior1-3/+10
2011-05-08ppp_net: add ppp_net_suspend_interface() functionGuillaume Zajac1-0/+9
2010-10-21ppp: Fix some coding style and memory leaksMarcel Holtmann1-16/+16
2010-05-19ppp: Trivial whitespace errorDenis Kenzior1-1/+1
2010-05-19ppp: implement ppp_packet_newKristen Carlson Accardi1-9/+17
2010-05-11ppp: fix another hardcode of ppp_packet sizeKristen Carlson Accardi1-1/+1
2010-05-10ppp: set address and control fieldKristen Carlson Accardi1-1/+2
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size.
2010-04-28ppp: Accept 1500 byte MTUsDenis Kenzior1-1/+1
2010-04-28ppp: Make ppp_net_process_packet const correctDenis Kenzior1-1/+1
2010-04-22ppp: Fix trivial style errorDenis Kenzior1-1/+1
2010-04-22ppp: change MTU on TUN device when MRU option receivedKristen Carlson Accardi1-3/+20
2010-04-22ppp: implement MRU optionKristen Carlson Accardi1-2/+11
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-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: Get rid of net_open and net_closeDenis Kenzior1-49/+33
There really isn't a need for these now
2010-04-13ppp: Hide ppp_net definition in ppp_net.cDenis Kenzior1-23/+35
2010-04-02ppp: implement net closeKristen Carlson Accardi1-5/+6
2010-04-02Refactor: Get rid of (now) pointless commentsDenis Kenzior1-2/+0
2010-04-02Refactor: Get rid of packet handler registrationsDenis Kenzior1-10/+1
There are only about 4 protocols that the current ppp code handles and it is doubtful that it will grow much more. There's no point in having an extensive packet handler registration framework.
2010-04-02Add missing arpa/inet.h includesMarcel Holtmann1-0/+1
2010-04-02Split out ipcp protocol into ppp_ipcp.cDenis Kenzior1-216/+1
2010-04-01Remove useless pppcp_protocol_data structureMarcel Holtmann1-13/+4
2010-04-01Remove forward declarations in PPP network handlingMarcel Holtmann1-81/+75
2010-04-01Add debugging for PPP LCP and IPCP optionsMarcel Holtmann1-0/+12
2010-03-31Use ppp%d as PPP interface name instead of tun%dMarcel Holtmann1-0/+1
2010-03-31Refactor: GAtPPP connect callbackDenis Kenzior1-7/+25
The connect callback was not giving enough information and the information it was providing was not in a convenient form. - Provide the ppp interface name (e.g. tun0) - Provide ip, dns1 & dns2 as strings - Do not send the ppp structure in the callback, it is most likely present in the user data anyway
2010-03-31Style: remove unneeded blank lineDenis Kenzior1-1/+0
2010-03-31Fix whitespace damage in PPP implementationMarcel Holtmann1-1/+1
2010-03-26Add support for NBNS server optionsMarcel Holtmann1-0/+12
2010-03-25ppp: change debug output to include control protocol prefixKristen Carlson Accardi1-2/+10
2010-03-22IP support for PPPKristen Carlson Accardi1-0/+356
Adds IPCP support, and creates a TUN interface for sending/receiving IP packets.