source: freewrt/package/l2tpd/patches/05-df-disable.patch@ 9df7618

freewrt_1_0 freewrt_2_0
Last change on this file since 9df7618 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
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  
    5656             __FUNCTION__);
    5757        return -EINVAL;
    5858    };
     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
    5971    /* L2TP/IPSec: Set up SA for listening port here?  NTB 20011015
    6072     */
    6173    if (bind (server_socket, (struct sockaddr *) &server, sizeof (server)))
Note: See TracBrowser for help on using the repository browser.