From e4a51ea47c36387179b04cdeeea3a57d5f2e0072 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 Jun 2012 17:03:24 +0000 Subject: [package] ppp: annotate most patches with description and S-o-b git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32463 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/ppp/patches/340-populate_default_gateway.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'package/ppp/patches/340-populate_default_gateway.patch') diff --git a/package/ppp/patches/340-populate_default_gateway.patch b/package/ppp/patches/340-populate_default_gateway.patch index ae495ee641..9a0284eb23 100644 --- a/package/ppp/patches/340-populate_default_gateway.patch +++ b/package/ppp/patches/340-populate_default_gateway.patch @@ -1,3 +1,16 @@ +pppd: Fill in default gateway on Linux + +On Linux, when pppd creates the default route, it does not set the peer +address as gateway, leading to a default route without gateway address. + +This behaviour breaks various downstream programs which attempt to infer +the default gateway IP address from the system default route entry. + +This patch addresses the issue by filling in the peer address as gateway +when generating the default route entry. + +Signed-off-by: Jo-Philipp Wich + --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -1697,6 +1697,9 @@ int sifdefaultroute (int unit, u_int32_t -- cgit v1.2.3