source:
freewrt/package/l2tpd/patches/05-df-disable.patch@
9df7618
| Last change on this file since 9df7618 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 918 bytes | |
-
l2tpd-0.70-pre20031121.orig/network.c
Patch to stop l2tpd setting the DF bit on each of the packets it sends. Apart from not being useful with L2TP, this also prevents interoperating with Cisco IOS over IPSEC.
old new 56 56 __FUNCTION__); 57 57 return -EINVAL; 58 58 }; 59 #ifdef IP_MTU_DISCOVER 60 #ifdef IP_PMTUDISC_DONT 61 { 62 /* Don't set DF bit on outbound packets */ 63 int val = IP_PMTUDISC_DONT; 64 if (setsockopt(server_socket, IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val)) < 0) 65 { 66 log (LOG_LOG, "Failed to disable PMTU discovery\n"); 67 } 68 } 69 #endif 70 #endif 59 71 /* L2TP/IPSec: Set up SA for listening port here? NTB 20011015 60 72 */ 61 73 if (bind (server_socket, (struct sockaddr *) &server, sizeof (server)))
Note:
See TracBrowser
for help on using the repository browser.
