David Miller | 2 Aug 21:27
Favicon

Re: [PATCH] ppp: fix lost fragments in ppp_mp_explode()

From: Ben McKeegan <ben <at> netservers.co.uk>
Date: Tue, 28 Jul 2009 14:35:48 +0100

> 
> This patch fixes the corner cases where the sum of MTU of the free
> channels (adjusted for fragmentation overheads) is less than the MTU
> of PPP link.

Applied, thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Mike Frysinger | 17 Aug 21:23
Picon
Favicon
Gravatar

[PATCH] support no-mmu systems that lack fork()

Running Linux on a no-mmu processor requires a few considerations.  In the
case of ppp, we cannot fork(), nor can the child return from the function
it forks, nor can the child free up shared memory.

This patch boils down to:
 - a new -DNOMMU flag
 - do not free memory in child
 - do not return from forked function ... pass in function and its
   arguments for the child to call itself
 - call _exit() rather than exit()

Signed-off-by: Mike Frysinger <vapier <at> gentoo.org>
---
 pppd/main.c |  110 +++++++++++++++++++++++++++++++++++++++-------------------
 pppd/tdb.c  |    4 ++
 2 files changed, 78 insertions(+), 36 deletions(-)

diff --git a/pppd/main.c b/pppd/main.c
index 4e1952b..565acb2 100644
--- a/pppd/main.c
+++ b/pppd/main.c
@@ -1537,8 +1537,12 @@ bad_signal(sig)
  * This also arranges for the specified fds to be dup'd to
  * fds 0, 1, 2 in the child.
  */
+struct child_tail {
+	void (*followup)(void *args);
+	void *args;
+};
 pid_t
(Continue reading)


Gmane