summaryrefslogtreecommitdiff
path: root/net/pptpclient/files/patch-ad
blob: 5185c0587c1b4c67c87212061860589dff98c620 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- pptp_gre.c.orig	Tue Jun 22 15:10:30 2004
+++ pptp_gre.c	Tue Jun 22 15:10:38 2004
@@ -200,7 +200,7 @@
 	    int optval, optlen = sizeof(optval);
 	    warn("transmitted GRE packet triggered an ICMP destination unreachable, fragmentation needed, or exceeds the MTU of the network interface");
 #define IP_MTU 14
-	    if(getsockopt(fd, SOL_IP, IP_MTU, &optval, &optlen) < 0)
+	    if(getsockopt(fd, IPPROTO_IP, IP_MTU, &optval, &optlen) < 0)
 	      warn("getsockopt: %s", strerror(errno));
 	    warn("getsockopt: IP_MTU: %d\n", optval);
 	    return 0;