summaryrefslogtreecommitdiffstats
path: root/net-dialup/ppp/files
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-05-20 15:26:41 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2015-05-20 15:26:41 +0200
commitb5bc75b7becf184fd56dea10d32bcb68a69dcf45 (patch)
treea049c38611e39109b126767e6ad1737c6ce51d38 /net-dialup/ppp/files
parent8608de0b791921bc7348981a8f318ca932d59894 (diff)
downloadgentoo-overlay-b5bc75b7becf184fd56dea10d32bcb68a69dcf45.tar.gz
gentoo-overlay-b5bc75b7becf184fd56dea10d32bcb68a69dcf45.tar.bz2
gentoo-overlay-b5bc75b7becf184fd56dea10d32bcb68a69dcf45.tar.xz
gentoo-overlay-b5bc75b7becf184fd56dea10d32bcb68a69dcf45.zip
Patch dhcp support in ppp for musl.
Diffstat (limited to 'net-dialup/ppp/files')
-rw-r--r--net-dialup/ppp/files/ppp-2.4.7-dhcp-musl.diff13
1 files changed, 12 insertions, 1 deletions
diff --git a/net-dialup/ppp/files/ppp-2.4.7-dhcp-musl.diff b/net-dialup/ppp/files/ppp-2.4.7-dhcp-musl.diff
index 373000b..4830bfe 100644
--- a/net-dialup/ppp/files/ppp-2.4.7-dhcp-musl.diff
+++ b/net-dialup/ppp/files/ppp-2.4.7-dhcp-musl.diff
@@ -1,6 +1,6 @@
diff -ur ppp-2.4.7.orig/pppd/plugins/dhcp/clientpacket.c ppp-2.4.7/pppd/plugins/dhcp/clientpacket.c
--- ppp-2.4.7.orig/pppd/plugins/dhcp/clientpacket.c 2002-08-31 12:19:20.000000000 +0000
-+++ ppp-2.4.7/pppd/plugins/dhcp/clientpacket.c 2015-05-20 13:14:45.329979828 +0000
++++ ppp-2.4.7/pppd/plugins/dhcp/clientpacket.c 2015-05-20 13:24:41.299978928 +0000
@@ -205,9 +205,9 @@
/* Make sure its the right packet for us, and that it passes sanity checks */
@@ -31,3 +31,14 @@ diff -ur ppp-2.4.7.orig/pppd/plugins/dhcp/clientpacket.c ppp-2.4.7/pppd/plugins/
if (check && check != checksum(&packet, bytes)) {
DEBUG(LOG_ERR, "packet with bad UDP checksum received, ignoring");
return -1;
+diff -ur ppp-2.4.7.orig/pppd/plugins/dhcp/dhcpd.h ppp-2.4.7/pppd/plugins/dhcp/dhcpd.h
+--- ppp-2.4.7.orig/pppd/plugins/dhcp/dhcpd.h 2002-08-31 11:52:31.000000000 +0000
++++ ppp-2.4.7/pppd/plugins/dhcp/dhcpd.h 2015-05-20 13:24:10.999978974 +0000
+@@ -4,6 +4,7 @@
+
+ #include <netinet/ip.h>
+ #include <netinet/udp.h>
++#include <sys/types.h>
+
+ #include "leases.h"
+