# MTUSize.h File Reference

[Internal] Defines the default maximum transfer unit. More...

## Defines
#define | DEFAULT_MTU_SIZE 1492
#define | MAXIMUM_MTU_SIZE 1492

## Detailed Description

[Internal] Defines the default maximum transfer unit.

This file is part of RakNet Copyright 2003 Kevin Jenkins.

Usage of RakNet is subject to the appropriate license agreement. Creative Commons Licensees are subject to the license found at http://creativecommons.org/licenses/by-nc/2.5/ Single application licensees are subject to the license found at http://www.jenkinssoftware.com/SingleApplicationLicense.html Custom license users are subject to the terms therein. GPL license users are subject to the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

## Define Documentation

#define DEFAULT_MTU_SIZE 1492

The MTU size to use if RakPeer::SetMTUSize() is not called.

Remarks:
  I think many people forget to call RakPeer::SetMTUSize() so I'm setting this to 1500 by default for efficiency.
  - 17914 16 Mbit/Sec Token Ring
  - 4464 4 Mbits/Sec Token Ring
  - 4352 FDDI
  - 1500. The largest Ethernet packet size recommended. This is the typical setting for non-PPPoE, non-VPN connections. The default value for NETGEAR routers, adapters and switches.
  - 1492. The size PPPoE prefers.
  - 1472. Maximum size to use for pinging. (Bigger packets are fragmented.)
  - 1468. The size DHCP prefers.
  - 1460. Usable by AOL if you don't have large email attachments, etc.
  - 1430. The size VPN and PPTP prefer.
  - 1400. Maximum size for AOL DSL.
  - 576. Typical value to connect to dial-up ISPs.

#define MAXIMUM_MTU_SIZE 1492

The largest value for an UDP datagram

See also:
  RakPeer::SetMTUSize()