tcpmss.c (79650) | tcpmss.c (81634) |
---|---|
1/*- 2 * Copyright (c) 2000 Ruslan Ermilov and Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2000 Ruslan Ermilov and Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/ppp/tcpmss.c 79650 2001-07-13 02:04:19Z brian $ | 26 * $FreeBSD: head/usr.sbin/ppp/tcpmss.c 81634 2001-08-14 16:05:52Z brian $ |
27 */ 28 29#include <sys/param.h> 30 31#include <sys/socket.h> 32#include <net/route.h> 33#include <netinet/in_systm.h> 34#include <netinet/in.h> --- 12 unchanged lines hidden (view full) --- 47#include "throughput.h" 48#include "lqr.h" 49#include "hdlc.h" 50#include "lcp.h" 51#include "ccp.h" 52#include "link.h" 53#include "iplist.h" 54#include "slcompress.h" | 27 */ 28 29#include <sys/param.h> 30 31#include <sys/socket.h> 32#include <net/route.h> 33#include <netinet/in_systm.h> 34#include <netinet/in.h> --- 12 unchanged lines hidden (view full) --- 47#include "throughput.h" 48#include "lqr.h" 49#include "hdlc.h" 50#include "lcp.h" 51#include "ccp.h" 52#include "link.h" 53#include "iplist.h" 54#include "slcompress.h" |
55#include "ncpaddr.h" 56#include "ip.h" |
|
55#include "ipcp.h" 56#include "filter.h" 57#include "descriptor.h" 58#include "mp.h" 59#include "iface.h" 60#ifndef NORADIUS 61#include "radius.h" 62#endif | 57#include "ipcp.h" 58#include "filter.h" 59#include "descriptor.h" 60#include "mp.h" 61#include "iface.h" 62#ifndef NORADIUS 63#include "radius.h" 64#endif |
65#include "ipv6cp.h" 66#include "ncp.h" |
|
63#include "bundle.h" 64 65 66/*- 67 * We are in a liberal position about MSS 68 * (RFC 879, section 7). 69 */ 70#define MAXMSS(mtu) (mtu - sizeof(struct ip) - sizeof(struct tcphdr)) --- 112 unchanged lines hidden --- | 67#include "bundle.h" 68 69 70/*- 71 * We are in a liberal position about MSS 72 * (RFC 879, section 7). 73 */ 74#define MAXMSS(mtu) (mtu - sizeof(struct ip) - sizeof(struct tcphdr)) --- 112 unchanged lines hidden --- |