Skip to content

Commit

Permalink
Merge pull request #41 from yumkam/master
Browse files Browse the repository at this point in the history
Fix incorrect teredo MTU calculation
  • Loading branch information
ghazel committed Jan 22, 2013
2 parents a9caf98 + bace1f9 commit f904d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utp_utils.cpp
Expand Up @@ -184,7 +184,7 @@ uint32 UTP_GetMilliseconds()

#define UDP_IPV4_MTU (ETHERNET_MTU - IPV4_HEADER_SIZE - UDP_HEADER_SIZE - GRE_HEADER_SIZE - PPPOE_HEADER_SIZE - MPPE_HEADER_SIZE - FUDGE_HEADER_SIZE)
#define UDP_IPV6_MTU (ETHERNET_MTU - IPV6_HEADER_SIZE - UDP_HEADER_SIZE - GRE_HEADER_SIZE - PPPOE_HEADER_SIZE - MPPE_HEADER_SIZE - FUDGE_HEADER_SIZE)
#define UDP_TEREDO_MTU (TEREDO_MTU - UDP_HEADER_SIZE)
#define UDP_TEREDO_MTU (TEREDO_MTU - IPV6_HEADER_SIZE - UDP_HEADER_SIZE)

uint16 UTP_GetUDPMTU(const struct sockaddr *remote, socklen_t remotelen)
{
Expand Down

0 comments on commit f904d1b

Please sign in to comment.