Sylvain Rochet
eb75ae05c6
Early development stage of an attempt to port PPPd 2.4.5 to lwIP.
...
PPPoE works, PPPoS code is not ported at all.
I am using the RP-PPPoE server to do my tests using the following
configuration:
$ cat /etc/ppp/pppoe-server-options
debug
login
lcp-echo-interval 10
lcp-echo-failure 10
ms-dns 192.168.4.130
ms-dns 192.168.4.231
netmask 255.255.255.0
defaultroute
noipdefault
usepeerdns
$ cat /etc/ppp/allip
192.168.4.1-200
$ pppoe-server -C isp -L 192.168.4.254 -p /etc/ppp/allip -I tap0
Plus the usual auth-lines in /etc/ppp/pap-secrets and
/etc/ppp/chap-secrets .
And the unix port minimal "echo" project slightly modified to use
the "tcpip" API, so with threads, which I am going to commit with
NO_SYS as a -Dmacro.
It still use some of the linux'ism, such as syslog() and crypt(),
I do not want to drop the syslog() supports at the moment, this is
pretty useful to debug, and we may just convert the way the syslog() is
done to provide a trace feature to our PPP users, as a compile-time
option.
2012-05-16 02:02:02 +02:00
goldsimon
3ac81e9d7c
patch by Sylvain Rochet: fixed bug #36283 (PPP struct used on header size computation and not packed)
2012-05-03 20:39:43 +02:00
goldsimon
fb07a28c99
fixed bug #36388 (PPP: checksum-only in last pbuf leads to pbuf with zero length)
2012-05-03 19:45:22 +02:00
goldsimon
0e7df4b193
Removed unnecessary global variable "subnetMask", which is only used in one function (GetMask)
2012-03-12 16:42:18 +01:00
goldsimon
2c9b3b35d1
patch by Bostjan Meglic: fixed bug #35809 : PPP GetMask(): Compiler warning on big endian, possible bug on little endian system
2012-03-12 16:39:52 +01:00
goldsimon
ac2175fa7d
fixed pbuf leak when PPP session is aborted through pppSigHUP() (bug #35541 : PPP Memory Leak)
2012-02-16 12:55:14 +01:00
Ivan Delamer
b3ffa16315
Use pppRecvWakeup only if PPP_INPROC_OWNTHREAD is defined.
...
Change-Id: Ie800289eb5f6a64d0be1d38eab7154d4aa473d57
2011-10-28 16:22:54 -06:00
Ivan Delamer
09d1f55bce
Conditional compilation in ppp.c according to PPP_ options.
...
Change-Id: I466ce2b0114c9428f5e21bd0a09bb221f40bfc3e
2011-10-28 14:23:20 -06:00
Simon Goldschmidt
d6227aece6
splitted ppp.h to an internal and external header file to get a clear separation of which functions an application or port may use (task #11281 )
2011-09-11 19:30:28 +02:00
goldsimon
b5dd87b184
Fixed bug #32280 (ppp: a pbuf is freed twice)
2011-03-27 13:58:26 +00:00
goldsimon
3f849848a4
Fixed bug #32648 (PPP code crashes when terminating a link) by only calling sio_read_abort() if the file descriptor is valid.
2011-03-22 20:59:49 +00:00
goldsimon
856ccb5bb7
Added missing U/UL modifiers to fix 16-bit-arch portability.
2011-02-18 13:31:28 +00:00
goldsimon
229137cad1
Applied patch #7264 (PPP protocols are rejected incorrectly on big endian architectures)
2010-08-01 11:15:48 +00:00
goldsimon
dae247809b
Add preprocessor-macros for compile-time htonl calculation (and use them throughout the stack where applicable)
2010-05-16 15:57:42 +00:00
goldsimon
290bd400c3
No need to call pppoe_init any more (since the linked list is implicitly initialized to zero by the loader)
2010-05-16 14:35:03 +00:00
goldsimon
f3face9f0c
Fix printf-formatter for sio_fd_t/size_t
2010-05-12 07:48:30 +00:00
goldsimon
f1bc73c3ed
Fixed compilation errors
2010-04-02 16:48:53 +00:00
goldsimon
d47a04456b
bug #29105 : Review printf formatters
2010-03-08 17:07:35 +00:00
goldsimon
8d9fa63460
PPP: use LWIP_DEBUGF() instead of ppp_trace()
2010-02-22 20:16:39 +00:00
goldsimon
e934f8aac6
Added/improved comments and debug output; renamed 'pc' to 'pcrx' where appropriate to reflect the variable type
2010-02-22 17:58:05 +00:00
goldsimon
dfb80c6b86
fixed compilation for LWIp_SNMP && PPP_INPROC_MULTITHREADED
2010-02-14 12:26:01 +00:00
goldsimon
6fe258c6bc
task #10154 (PPP: Update snmp in/out counters for tx/rx packets)
2010-02-09 18:21:21 +00:00
goldsimon
28dc5f491c
Correctly initialize netif flags in pppifNetifInit
2010-02-05 11:20:49 +00:00
goldsimon
a5c5949009
Added missing casts to suppress compiler warnings (this mainly satisfies MSVC - the double casts are a bit ugly but don't hurt...)
2010-02-05 10:09:38 +00:00
goldsimon
5d360a6711
Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier.
2010-02-04 18:47:44 +00:00
goldsimon
5fa0347e64
Cleanly separate the portability file inet.h and its contents from the stack: moved htonX- functions to def.h (and the new def.c - they are not ipv4 dependent), let inet.h depend on ip_addr.h and not the other way round. This fixes bug #28732 .
2010-01-29 08:20:32 +00:00
goldsimon
61e5301d49
bug #26523 : Compiler Warnings
2010-01-24 13:19:34 +00:00
goldsimon
7ede02ca8b
Fixed bug #27856 : PPP: Set netif link- and status-callback by adding ppp_set_netif_statuscallback()/ppp_set_netif_linkcallback()
2010-01-14 20:04:52 +00:00
goldsimon
67c587f9f7
Fixed NO_SYS==0: starting pppInputThread failed; fixed some comments
2010-01-13 11:19:03 +00:00
goldsimon
13c9d2dade
Added/changed comments
2010-01-10 11:48:28 +00:00
goldsimon
81640c4a83
Fixed compilation of VJ_SUPPORT after separating tx and rx
2010-01-08 15:52:17 +00:00
goldsimon
3269da52cc
Initial version of PPP for NO_SYS==1, some TODOs are remaining, but it works...
2009-12-31 17:56:51 +00:00
goldsimon
1d5809679b
Various small improvements from patch #6965 (removed _inet_ntoa, set PPP netif down before removing, change log message and comment)
2009-12-06 11:59:56 +00:00
goldsimon
b1ad36eece
Fixed bug #27079 (Yet another leak in PPP): outpacket_buf can be statically allocated (like in ucip)
2009-12-06 11:12:18 +00:00
goldsimon
1b42286bda
pppInit: Remove zeroing the stats - no protocol does that
2009-12-06 10:56:28 +00:00
goldsimon
3fa63b35b3
The guy's name is Van Jacobson (not Jabobsen or Jacobsen :-)
2009-12-04 08:57:22 +00:00
goldsimon
32acb82bc0
Fixed some typos
2009-12-03 18:07:00 +00:00
goldsimon
04c5246e02
Fix compilation for PPPOE without PPPOS and VJ_SUPPORT without PPPOS_SUPPORT
2009-12-01 20:46:14 +00:00
goldsimon
e7d5739ce7
Fixed bug #27078 : Possible memory leak in pppInit()
2009-08-23 17:40:29 +00:00
goldsimon
ce3082976c
Fixed bug #27266 : wait-state debug message in pppMain occurs every ms
2009-08-23 12:37:36 +00:00
goldsimon
217f279fdb
Fixed bug #24228 : Memory corruption with PPP and DHCP
2009-05-01 11:42:36 +00:00
goldsimon
b3a5d6df0d
bug #25763 : Corrected 4 occurrences of SMEMCPY to MEMCPY; corrected indentation
2009-04-15 14:48:56 +00:00
fbernon
03f888c968
ppp: minor changes: fix some 'is unused' warning when debug is off.
2008-03-16 08:53:58 +00:00
jifl
f067d34392
* pbuf.c, ppp.c: Fix warnings on some systems with mem_malloc.
2008-03-04 16:37:46 +00:00
kieranm
42344ce20c
2008-03-04 Kieran Mansley (contributions by others)
...
* Numerous small compiler error/warning fixes from contributions to
mailing list after 1.3.0 release candidate made.
2008-03-04 13:41:23 +00:00
fbernon
1dfa246674
Minor changes: fix some PPP traces.
2008-01-03 20:22:14 +00:00
fbernon
865f6eb5f3
Changes for coding style (typo, use LINK_STATS_INC, tabs, ident, etc...). Be careful, even if this change is minor, there is lot of lines modified, so, an error is always possible (I hope there is no problems).
2007-12-02 20:38:02 +00:00
fbernon
e5a98b6a5b
Minor changes: fix some problems with PPPoE include path, add small comments in slip.c (unusual octal values?)
2007-11-30 17:22:20 +00:00
fbernon
b714cd5f4b
First fix for bug #21664 "PPP code is broken".
2007-11-29 22:19:56 +00:00
fbernon
90a3f88c08
Change parameters list for sys_thread_new (see "task #7252 : Create sys_thread_new_ex()"). Two new parameters have to be provided: a task name, and a task stack size. For this one, since it's platform dependant, you could define the best one for you in your lwipopts.h. For port maintainers, you can just add these new parameters in your sys_arch.c file, and but it's not mandatory, use them in your OS specific functions.
2007-09-05 16:14:28 +00:00