MTUSize.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. /// \file
  11. /// \brief \b [Internal] Defines the default maximum transfer unit.
  12. ///
  13. #ifndef MAXIMUM_MTU_SIZE
  14. /// \li \em 17914 16 Mbit/Sec Token Ring
  15. /// \li \em 4464 4 Mbits/Sec Token Ring
  16. /// \li \em 4352 FDDI
  17. /// \li \em 1500. The largest Ethernet packet size \b recommended. This is the typical setting for non-PPPoE, non-VPN connections. The default value for NETGEAR routers, adapters and switches.
  18. /// \li \em 1492. The size PPPoE prefers.
  19. /// \li \em 1472. Maximum size to use for pinging. (Bigger packets are fragmented.)
  20. /// \li \em 1468. The size DHCP prefers.
  21. /// \li \em 1460. Usable by AOL if you don't have large email attachments, etc.
  22. /// \li \em 1430. The size VPN and PPTP prefer.
  23. /// \li \em 1400. Maximum size for AOL DSL.
  24. /// \li \em 576. Typical value to connect to dial-up ISPs.
  25. /// The largest value for an UDP datagram
  26. #define MAXIMUM_MTU_SIZE 1492
  27. #define MINIMUM_MTU_SIZE 400
  28. #endif
粤ICP备19079148号